Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
c486bb14
Unverified
Commit
c486bb14
authored
Aug 23, 2023
by
vfdev
Committed by
GitHub
Aug 23, 2023
Browse files
Update coco_utils.py (#7869)
Co-authored-by:
Nicolas Hug
<
nh.nicolas.hug@gmail.com
>
parent
5c1e62ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
references/detection/coco_utils.py
references/detection/coco_utils.py
+1
-1
No files found.
references/detection/coco_utils.py
View file @
c486bb14
...
@@ -129,7 +129,7 @@ def convert_to_coco_api(ds):
...
@@ -129,7 +129,7 @@ def convert_to_coco_api(ds):
# find better way to get target
# find better way to get target
# targets = ds.get_annotations(img_idx)
# targets = ds.get_annotations(img_idx)
img
,
targets
=
ds
[
img_idx
]
img
,
targets
=
ds
[
img_idx
]
image_id
=
targets
[
"image_id"
]
.
item
()
image_id
=
targets
[
"image_id"
]
img_dict
=
{}
img_dict
=
{}
img_dict
[
"id"
]
=
image_id
img_dict
[
"id"
]
=
image_id
img_dict
[
"height"
]
=
img
.
shape
[
-
2
]
img_dict
[
"height"
]
=
img
.
shape
[
-
2
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment