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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片推理保存标签:demo/image_demo.py问题 #546

Open
ChongYSU opened this issue Dec 9, 2024 · 0 comments
Open

图片推理保存标签:demo/image_demo.py问题 #546

ChongYSU opened this issue Dec 9, 2024 · 0 comments

Comments

@ChongYSU
Copy link

ChongYSU commented Dec 9, 2024

在demo/image_demo.py的第145行:
ANNOTATIONS_DIRECTORY = os.makedirs(r"./annotations", exist_ok=True)
这一行的作用是创建一个目录,返回值给了ANNOTATIONS_DIRECTORY,返回为空,但是,这个返回值不是路径
在demo/image_demo.py的第154行:
annotations_directory_path=ANNOTATIONS_DIRECTORY,
在这里,却把ANNOTATIONS_DIRECTORY 这个值,当作路径使用。最终导致推理结束后,标签保存目录./annotations仍为空。

因此,建议这里改动一下ANNOTATIONS_DIRECTORY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant