mlhubber / mlhub

Machine Learning Model Repository Hub Command Line Tool.
MIT License
20 stars 12 forks source link

cvbp : Import error from fastai.vision #274

Open shashank-gv opened 2 years ago

shashank-gv commented 2 years ago

Steps to recreate: (tested on ubuntu 22.04.1 LTS server)

ml install cvbp
ml configure cvbp
ml demo cvbp

Full error message:

Microsoft Computer Vision Best Practice
=======================================

Welcome to a demo of the Microsoft open source Computer Vision
toolkit. This is a Microsoft open source project and is not a
supported product. Pull requests are most welcome at
https://github.com/microsoft/cvbp.

This demo runs several examples of computer vision tasks. All of the
functionality is also available as command line tools as part of this
MLHub package.

Traceback (most recent call last):
  File "/home/shashankg/.mlhub/cvbp/demo.py", line 30, in <module>
    from fastai.vision import models, Image
ImportError: cannot import name 'Image' from 'fastai.vision' (/home/shashankg/.mlhub/cvbp/.python/fastai/vision/__init__.py)
gjwgit commented 2 years ago

Reproduced on Ubuntu 22.04 TLS. Seems to be a fastai version dependency issue. Fastai is now at version 2. Some simple changes and changinging version dependencies has not helped. Just getting more version dependency hell.