ayoolaolafenwa / PixelLib

Visit PixelLib's official documentation https://pixellib.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What are the correct corresponding versions of pixlib and TensorFlow?

xuanxianyou opened this issue · comments

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

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.