cvhciKIT / sloth

Sloth is a tool for labeling image and video data for computer vision research.
Other
608 stars 198 forks source link

Saving wrong path for 'filename' #95

Open rfarid opened 8 years ago

rfarid commented 8 years ago

Assume you have some pictures in ~/Pictures/sloth_pics. Using sloth, you can add them one by one and annotate them if you would like. Then save the result and close sloth. Run sloth again and open the saved json file. The annotations are there but sloth can NOT load images properly because the saved relative path for each file is wrong.

rfarid commented 8 years ago

Update: I have fixed this issue by updating the "filename" before serializeToFile() and after parseFromFile() using the path of the annotation (json) file. The change affects save() and load() in annotations/container.py. The change is available in branch "fixedRatioRect".

nilsonholger commented 7 years ago

@rfarid Could you please also include this in your pull request for #94?

nkma1989 commented 6 years ago

@rfarid Is it possible for you to elaborate on the exact changes you made? I have the same issue.