I cannot upload the annotated files for the images. The annotated files are in txt format. I have also tried uploading XML format. It did not happen. It’s not even taking the files, and not annotating the images.
Am I doing something wrong. Please let me know if any more info is needed for resolving this issue
Please share the following so we may better assist you:
Project type (Object detection, Classification, Polygon, etc.): Object detection
The operating system & browser you are using and their versions: Windows (doesn’t matter)
The screenshot of the error being triggered in your browser’s developer tools/console. Please copy/paste the url below to watch how to pull up your devtools
Whenever I’ve had trouble with uploading annotation files, it’s usually because they were formatted wrong or were referencing image file names or file paths that were different from what is being uploaded.
Can you check whether the filename in your annotation file and the file name in your uploaded Roboflow image match? Also, check if the file path references an image that’s actually there when it’s uploading. (I’m not sure if Roboflow uses this to match image files, but it might be good to check)
You can check the image name in a Pascal VOC XML here:
<filename>** the name of the file should be here **</filename>
<path>** the path of the file should be here **</path>
*rest of the annotation file ...*
and check the image name on an uploaded Roboflow image under the “Attributes” tab:
If that doesn’t solve your issue, did you manually create the annotation files yourself or were they created in a different app or website? (if so what was that app or website) If you could also send the text contents of the annotation files, that might be helpful for troubleshooting.
For annotation my dataset is in Pascal VOC format, as shown below:
1 58 78 427 627
1 440 84 813 627
1 822 86 1257 633
1 70 636 593 1175
1 608 644 1251 1183
1 60 1194 703 1735
1 718 1190 1253 1741
Here there are 7 lines, which means 7 different annotations are present. Let’s consider the first line.
→ ‘1’ represents the name of the annotation
→ ‘58’ represents xmin, ‘78’ represents ymin, ‘427’ represents xmax, and ‘627’ represents ymax.
→ We also need to know the width and height of the actual image (not the annotated one).
For this it was 1280x1826.
What we want is Xc, Yc, width and height from xmin, xmax,ymin,ymax, height_of_image, width_of_image, as shown in the figure below: