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
ModelZoo
textmonkey_pytorch
Commits
0236234f
Unverified
Commit
0236234f
authored
Jan 28, 2024
by
echo840
Committed by
GitHub
Jan 28, 2024
Browse files
Rename grit.py to grit_generate.py
parent
fd7fc9ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
data_generation/grit_generate.py
data_generation/grit_generate.py
+1
-1
No files found.
data_generation/grit.py
→
data_generation/grit
_generate
.py
View file @
0236234f
...
...
@@ -129,4 +129,4 @@ if __name__ == "__main__":
height
,
width
=
batch
[
'image'
][
i
].
shape
[
0
],
batch
[
'image'
][
i
].
shape
[
1
]
objects
=
dense_pred_to_normcaption
(
predictions
[
i
],
width
,
height
)
json_save
.
append
({
"img_id"
:
batch
[
'img_id'
][
i
],
"objects"
:
objects
})
save_json
(
json_save
,
args
.
output_path
)
\ No newline at end of file
save_json
(
json_save
,
args
.
output_path
)
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