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
98f2b8b5
Commit
98f2b8b5
authored
8 years ago
by
tgupta6
Browse files
Options
Downloads
Patches
Plain Diff
if unknown then no gradient (changed object labels in cropped_regions_cached_features.py)
parent
f88c7cd9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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
-3
3 additions, 3 deletions
data/cropped_regions_cached_features.py
with
3 additions
and
3 deletions
data/cropped_regions_cached_features.py
+
3
−
3
View file @
98f2b8b5
...
@@ -208,9 +208,9 @@ class data():
...
@@ -208,9 +208,9 @@ class data():
else
:
else
:
label_id
=
self
.
object_labels_dict
[
object
]
label_id
=
self
.
object_labels_dict
[
object
]
object_label_encoding
[
0
,
label_id
]
=
1.0
object_label_encoding
[
0
,
label_id
]
=
1.0
else
:
#
else:
label_id
=
self
.
object_labels_dict
[
_unknown_token
]
#
label_id = self.object_labels_dict[_unknown_token]
object_label_encoding
[
0
,
label_id
]
=
1.0
#
object_label_encoding[0,label_id] = 1.0
return
object_label_encoding
/
np
.
sum
(
object_label_encoding
),
object_labels
return
object_label_encoding
/
np
.
sum
(
object_label_encoding
),
object_labels
...
...
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