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

Deprecated function in helper.py code - What is the workaround? #3

Open
ULELHAU opened this issue Feb 10, 2025 · 0 comments
Open

Deprecated function in helper.py code - What is the workaround? #3

ULELHAU opened this issue Feb 10, 2025 · 0 comments

Comments

@ULELHAU
Copy link

ULELHAU commented Feb 10, 2025

@jiangtaoxie

In the helpers.py function, the torch._six function is now deprecated. What is the workaround?

ModuleNotFoundError Traceback (most recent call last)

in <cell line: 0>()
17
18 # Import necessary SoT components
---> 19 from sot_src.model import Classifier, OnlyVisualTokensClassifier
20 from sot_src import TokenEmbed
21

8 frames

/usr/local/lib/python3.11/dist-packages/timm/models/layers/helpers.py in
4 """
5 from itertools import repeat
----> 6 from torch._six import container_abcs
7
8

ModuleNotFoundError: No module named 'torch._six'

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