-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
No Output #50
Comments
I am facing the same issue I modified the main section to if __name__ == '__main__':
source = 'COCO'
if source == 'COCO':
convert_coco_json('../datasets/json', # directory with *.json
use_segments=True,
cls91to80=False) And when I run the command
It creates a new folder called new_dir with no contents. |
Hey, Bjorn, thanks for helping, that happened once i changed as you told but I'm not getting the converted file anywhere, please help. |
hello, did you find a solution, please? |
Thanks for writing the issue. Looking at the global_json2yolo code, there are some flags.
Converting the COCO segmentation format to YOLO segmentation format.
Converting the COCO keypoints format to YOLO keypoints format.
To convert the COCO segmentation format to YOLO segmentation format.
This is the folder structure when we run the script. Please let us know your opinion. |
same here. it makes a new directory named "new_dir" and only create the directory structures in it. the problem is in this line: JSON2YOLO/general_json2yolo.py Line 306 in c38a43f
What about the images directory in the created directory called |
Thanks for reaching out! It appears that the issue might be occurring due to the usage of |
Same for me, the code is just creating an empty folder named 'new_dir' which contains two subfolders, 'images' and 'labels'. Both of these are empty. I have checked the values of the arguments use_segments and use_keypoints, both are correct as mentioned above. Could you suggest what could be the problem. |
Hi @SadeghPouriyanZadeh, please copy images by yourself. Do you have any other problems? Hi @AJAY31797, please show us your COCO JSON file. We can debug with the script. |
Find the section “Write”on line 308:
Add two lines of code:
|
Hello @ponnyWu, thank you for your patience. It seems like you've identified a potential fix by ensuring the directory exists before attempting to write the file. This is a good catch! The |
The Code just ran with no output.
The text was updated successfully, but these errors were encountered: