ml4a / ml4a

A python library and collection of notebooks for making art with machine learning.

Home Page:https://ml4a.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named 'data_loader'

willnotremember opened this issue · comments

Hi there,
I´m facing issues installing ml4a on my Mac with Python 3.9.5. I tried to following:

  1. Installing ml4a with: python -m pip install ml4a --> but I got erros due to different tensorflow versions. Same happened with a new conda environment with python 3.10.8:
(base) ginas-macbook-pro-2:ml4a-master gina$ python -m pip install ml4a
Collecting ml4a
  Using cached ml4a-0.1.3-py3-none-any.whl (1.1 MB)
  Using cached ml4a-0.1.2-py3-none-any.whl (722 kB)
  Using cached ml4a-0.1.0-py3-none-any.whl (570 kB)
ERROR: Cannot install ml4a==0.1.0, ml4a==0.1.2 and ml4a==0.1.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    ml4a 0.1.3 depends on tensorflow-gpu==1.15.0
    ml4a 0.1.2 depends on tensorflow-gpu==1.15.0
    ml4a 0.1.0 depends on tensorflow-gpu==1.15.0
  1. I tried to run the example code as test.py of your Readme and installed all libs manually

But I got stuck with this error and I could not find a solution for this so far:

Warning! No GPU detected, so most models will fail... If you are in Colab, make sure you enable GPU in the menu: Runtime -> Change runtime type.
Traceback (most recent call last):
  File "/Users/gina/miniconda3/lib/python3.9/runpy.py", line 188, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/Users/gina/miniconda3/lib/python3.9/runpy.py", line 111, in _get_module_details
    __import__(pkg_name)
  File "/Users/gina/Downloads/ml4a-master/test.py", line 1, in <module>
    from ml4a import image
  File "/Users/gina/Downloads/ml4a-master/ml4a/__init__.py", line 1, in <module>
    from .canvas import canvas
  File "/Users/gina/Downloads/ml4a-master/ml4a/canvas/canvas.py", line 14, in <module>
    from .mask import *
  File "/Users/gina/Downloads/ml4a-master/ml4a/canvas/mask.py", line 10, in <module>
    from ..models import basnet
  File "/Users/gina/Downloads/ml4a-master/ml4a/models/basnet.py", line 14, in <module>
    from data_loader import RescaleT, ToTensorLab
ModuleNotFoundError: No module named 'data_loader'

Is data_loader a package or part of a lib? Because I could only find it in ml4a/models/basnet.py.

What am I missing here?

Thank you already in advance!