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

FileNotFoundError: [Errno 2] No such file or directory: 'data/xxx/images\\xxx.jpg' #535

Open
whuyyc opened this issue Nov 28, 2024 · 1 comment

Comments

@whuyyc
Copy link

whuyyc commented Nov 28, 2024

我在自己数据集fine-tune,但总是报错说找不到图像文件(如标题)
实际图像就在这个路径下,我也尝试将config文件里的coco_train_dataset的data_root改成绝对路径,还是报一样的错误
这是为什么呢?debug也没法进去看到底哪一步出错了,这个runner封装的很高

@whuyyc
Copy link
Author

whuyyc commented Nov 29, 2024

I have solved this problem. The image path in the json files generated by tools/dataset_converters/labelme2coco.py are connected using double "\" which cann't be recognized in Linux. So I changed the double "\" to "/" and now the train.py can run normally.

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