CSAILVision / LabelMeAnnotationTool

Source code for the LabelMe annotation tool.
MIT License
1.39k stars 437 forks source link

No new xml files in the "Annotations" folder after labeling in the brower. #8

Open houz42 opened 9 years ago

houz42 commented 9 years ago

I am using a local server on Ubuntu 14.04.

The web page display well, and I can draw polygons and label names of objects. But I can't see any new xml file inside "Annotations" folder, or "annotationCache/TempAnnotation".

I am pretty sure these folders have write permissions.

z24 commented 9 years ago

Same here...

Is there a workable README or INSTALLATION GUIDE?

Apache/2.4.10 PHP 5.4.36

brussell123 commented 9 years ago

Thanks for raising these issues.

To help me debug, can you please respond with the output from the javascript console? You can copy and paste from Chrome by navigating via "View=>Developer=>Javascript Console". Thanks!

wzgwzg commented 7 years ago

I encountered the similar problem recently. I am using a local server with operating system centos 7.3. I can access LabelMe web page and draw polygons, but no xml annotations and log files are generated. Corresponding folders have write permissions, SSI and Perl/CGI also seem OK.

caleale90 commented 6 years ago

I am encountering the same error, but for a sligthly different problem. If I load images into the folder I can see xml files after tagging, but if I put into Annotations folder old xml files I can tag and see old tags on the screen, but new changes are not saved into xml files.

JMingKuo commented 6 years ago

My LabelMe did not save any modification at the web interface when I have hand-made xml file as initial. Currently, I solve this problem by modified the "data" in xml file to far future like '31-Dec-2099 11:59:59'. Hope this helps.

hkaraoguz commented 6 years ago

I recently saw a bug in the browser tool. This could be related. If the file names contain a "." before the extension then the annotations are not saved, e.g., if the image name is something like "asd.a.jpg".

q841496770 commented 4 years ago

I am encountering the same error, but for a sligthly different problem. If I load images into the folder I can see xml files after tagging, but if I put into Annotations folder old xml files I can tag and see old tags on the screen, but new changes are not saved into xml files.

Can U solved it?

samagra14 commented 3 years ago

Hey @brussell123

I was facing a similar issue. the thing is that it is possible that the XML files belong to a different user group or user.

Try running this inside the Annotation folder:

ls -l 

You should see an output like this

-rwxr-xr-x 1 samagra14 samagra14  482 Mar  2 17:06 PBbr79000312RP0118838553.xml
-rwxr-xr-x 1 samagra14 samagra14 482 Mar  2 17:06 PBbr79000322RP0118838559.xml
-rwxr-xr-x 1 www-data www-data 2553 Mar  2 17:34 img1.xml
-rwxr-xr-x 1 www-data www-data 1913 Mar  1 11:01 img2.xml

Just change the groups and users to www-data using the following command:

sudo chown www-data <filename>
sudo chgrp www-data <filename>

If there are multiple files do this:

for f in ./*;
do sudo chown www-data $f;
done;

Thanks.