ayoolaolafenwa / PixelLib

Visit PixelLib's official documentation https://pixellib.readthedocs.io/en/latest/
MIT License
1.05k stars 264 forks source link

Google Colab and PixelLib #137

Open ruanpm opened 2 years ago

ruanpm commented 2 years ago

PixelLib creates "train.json" file in Google Colab, but it creates as a directory thus causing further errors. Ps: Also occurs in the notebook shared in documentation: Google Colab’s notebook

Any solution? Thank you in advance.

darlannakamura commented 2 years ago

I found the solution on this issue. Basically, you have to downgrade labelme2coco.

Run the following command:

!pip install pixellib==0.5.2
!pip install labelme2coco==0.1.0

After this, click to "Restart runtime", delete the directory train.json running rm-rf path-to-/train.json and try again.

Guide4Ever commented 1 year ago

Bro, you are the man, the living legend among the legends. @darlannakamura It's very important to restart the runtime.