Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GenVQA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vision
GenVQA
Commits
5a257b12
Commit
5a257b12
authored
8 years ago
by
tgupta6
Browse files
Options
Downloads
Patches
Plain Diff
multi hot object label vector in cropped_regions_cached_features.py
parent
2216f3bc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
data/cropped_regions_cached_features.py
+3
-2
3 additions, 2 deletions
data/cropped_regions_cached_features.py
with
3 additions
and
2 deletions
data/cropped_regions_cached_features.py
+
3
−
2
View file @
5a257b12
...
...
@@ -204,10 +204,11 @@ class data():
if
object_labels
:
for
object
in
object_labels
:
if
object
not
in
self
.
object_labels_dict
:
label_id
=
self
.
object_labels_dict
[
_unknown_token
]
pass
#label_id = self.object_labels_dict[_unknown_token]
else
:
label_id
=
self
.
object_labels_dict
[
object
]
object_label_encoding
[
0
,
label_id
]
=
1.0
object_label_encoding
[
0
,
label_id
]
=
1.0
# else:
# label_id = self.object_labels_dict[_unknown_token]
# object_label_encoding[0,label_id] = 1.0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment