Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torchvision and opt_einsum not installed by requirements.txt #65

Open
jacksonthall22 opened this issue Feb 8, 2023 · 0 comments
Open

Comments

@jacksonthall22
Copy link

I get an error after running the installation instructions and trying the -h command:

python train.py spacetimeformer <any dataset> -h

Full tracebacks

Traceback (most recent call last):
  File "train.py", line 11, in <module>
    import spacetimeformer as stf
  File "c:\...\spacetimeformer\spacetimeformer\__init__.py", line 1, in <module>
    from . import data
  File "c:\...\spacetimeformer\spacetimeformer\data\__init__.py", line 7, in <module>
    from . import image_completion
  File "c:\...\spacetimeformer\spacetimeformer\data\image_completion\__init__.py", line 1, in <module>
    from .mnist import MNISTDset
  File "c:\...\spacetimeformer\spacetimeformer\data\image_completion\mnist.py", line 3, in <module>
    import torchvision
ModuleNotFoundError: No module named 'torchvision'

Then after pip install torchvision:

Traceback (most recent call last):
  File "train.py", line 11, in <module>
    import spacetimeformer as stf
  File "c:\...\spacetimeformer\spacetimeformer\__init__.py", line 14, in <module>
    from . import s4_model
  File "c:\...\spacetimeformer\spacetimeformer\s4_model\__init__.py", line 1, in <module>
    from .s4_model import S4_Forecaster
  File "c:\...\spacetimeformer\spacetimeformer\s4_model\s4_model.py", line 10, in <module>
    from . import s4_standalone
  File "c:\...\spacetimeformer\spacetimeformer\s4_model\s4_standalone.py", line 17, in <module>
    import opt_einsum as oe
ModuleNotFoundError: No module named 'opt_einsum'

Then after pip install opt_einsum the command runs as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant