ayoolaolafenwa / PixelLib

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

What are the correct corresponding versions of pixlib and TensorFlow? #170

Open xuanxianyou opened 1 year ago

xuanxianyou commented 1 year ago

When I downloaded TensorFlow=2.12 and PixelLib=0.7.1, then run Visualize file, error: IsADirectoryError: [Errno 21] Is a directory: '/data/demo/Feature/train. json'. Afterwards, I updated TensorFlow version to 2.4 and found that the version of Numpy did not match. An error was reported: ValueError: numpy.ndarray size changed, may indicate binary incompatibility Expected 88 from C header, got 80 from PyObject

Guide4Ever commented 1 year ago

This is solved with:

  1. On Google Collab (or other service) you need to make sure to restart your runtime. Delete folder train.json which has dataset.json in it. It is error with labelcoco.
  2. Run this - downgrading: !pip install pixellib==0.5.2 !pip install labelme2coco==0.1.0
  3. Run again.
  4. Profit.