ryouchinsa / Rectlabel-support

RectLabel is an offline image annotation tool for object detection and segmentation.
https://rectlabel.com
515 stars 73 forks source link

Currently Cannot Import COCO Json File #266

Closed ajenez closed 1 month ago

ajenez commented 2 months ago

Currently seeing this error every time I try to import a coco json file. Makes that feature unusable. I have closed the app and restarted.

Screenshot 2024-09-20 at 11 01 21 AM
ryouchinsa commented 2 months ago

Thanks for writing the issue.

In our environment, using the importing a coco json file feature, instances_val2017.json can be imported.

Could you show us the sample COCO JSON file to reproduce the problem?

rromanchuk commented 2 months ago

@ryouchinsa also getting this, looking for helpful clues for you, but haven't found any yet.

Thought it might be external drive related issue like unmounting/mounting, but not it.

On opening Images + Annotations/PASCAL VOC XML/Last modified

Screenshot 2024-09-23 at 1 00 02 AM

Tried some sanity tests like only opening images folder, no difference.

I don't see anything that seems abnormal/interesting in Console.app for RectLabel. I did purge some thumbnail cache not long ago, but like 4-5 days ago, but doesn't seem related. I run /Volumes/[foo]/Applications/RectLabel.app but getting same results with ~/Applications/RectLabel.app

If you have a TestFlight build and want to put traces around it or even throw so you can get the stack, happy to trigger it for you. Or if you have anything you want me to try in order to rule out something let me know. Im trying out the most simple cases, so it might be early in "Open"

rromanchuk commented 2 months ago

(on macos 15.0 (24A335), but has been no issue Betas through RC)

ryouchinsa commented 2 months ago

Thanks for sharing additional information. We updated to macOS 15.0, but could not reproduce the problem yet. We will dig into our code.

How about clearing cache files.

  1. RectLabel menu -> Export settings file,
  2. RectLabel menu -> Open app folder, and remove the Data folder.
  3. Close folder.
  4. Open images and annotations folder again.
rromanchuk commented 2 months ago

@ryouchinsa i just needed to restart 🤣

ajenez commented 1 month ago

@ryouchinsa In my case it continues to happen after restart and after clearing the cache files as you mentioned above. It also happens when trying to "replace labels". Also to be clear I can't ever select a file to import. The error shows up after I pick a folder to put the backup labels. I'm not on macos 15 yet so I'll try updating there and see if anything improves.

ryouchinsa commented 1 month ago

To fix the problem, in the current version, File -> Move/Copy images, change the folder for "Output images folder", then import COCO or process all images using a Core ML model. The point is, when backup, only annotations folder is necessary, but as a bug, both folders are needed to be set up to complete the backup process.

We submitted the new update version 2024.09.28 to Apple. When the new update is released, we will let you know.

We apologize for your inconvenience.

ryouchinsa commented 1 month ago

In the latest version 2024.10.06, the problem of showing the "cannot get url from bookmark" message when backup was solved.

ajenez commented 1 month ago

@ryouchinsa thank you! I appreciate your hard work!