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

Import Error for slowfast/datasets/multigrid_helper.py #734

Open
sirzzang opened this issue Oct 20, 2024 · 0 comments
Open

Import Error for slowfast/datasets/multigrid_helper.py #734

sirzzang opened this issue Oct 20, 2024 · 0 comments

Comments

@sirzzang
Copy link

sirzzang commented Oct 20, 2024

To Reproduce

  • Follow instructions in INSTALL.md.
  • Run tools/run_net.py following GETTING_STARTED.md
  • Then, error below is raised.
Traceback (most recent call last):
  File "/home/eraser/projects/SlowFast/tools/run_net.py", line 9, in <module>
    from test_net import test
  File "/home/eraser/projects/SlowFast/tools/test_net.py", line 17, in <module>
    from slowfast.datasets import loader
  File "/home/eraser/projects/SlowFast/slowfast/datasets/loader.py", line 13, in <module>
    from slowfast.datasets.multigrid_helper import ShortCycleBatchSampler
  File "/home/eraser/projects/SlowFast/slowfast/datasets/multigrid_helper.py", line 16, in <module>
    from torch._six import int_classes as _int_classes
ModuleNotFoundError: No module named 'torch._six'

Reason for the error

  • The six module has been removed from PyTorch >= 2.0.0
  • The version statement in slowfast/datasets/multigrid_helper.py only works with PyTorch versions whose major version is 1.
  • The version check statement requires updates for PyTorch 2.x or later.
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