Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

export_model.py - list_of_lines[165] = " [1344, 1344], 1344 \n" #5264

Open
kaustubhsapru opened this issue Apr 19, 2024 · 1 comment
Open
Labels
documentation Problems about existing documentation or comments

Comments

@kaustubhsapru
Copy link

馃摎 Documentation Issue

This issue category is for problems about existing documentation, not for asking how-to questions.

a_file = open("/content/detectron2/tools/deploy/export_model.py", "r")
list_of_lines = a_file.readlines()
list_of_lines[165] = " [1344, 1344], 1344 \n"

a_file = open("/content/detectron2/tools/deploy/export_model.py", "w")
a_file.writelines(list_of_lines)
a_file.close()
exit(1)

line 165 in export_model.py reads : "# get a first batch from dataset"
What has to change is this code for an error free conversion from .yaml to onnx ?

@kaustubhsapru kaustubhsapru added the documentation Problems about existing documentation or comments label Apr 19, 2024
@Huxwell
Copy link

Huxwell commented Apr 23, 2024

I'm not a maintainer, but what is the actual error you are getting?
You can manually change the relevant line in export_model.py as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Problems about existing documentation or comments
Projects
None yet
Development

No branches or pull requests

2 participants