Description
/usr/local/lib/python3.11/dist-packages/timm/models/layers/init.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
warnings.warn(f"Importing from {name} is deprecated, please import via timm.layers", FutureWarning)
Traceback (most recent call last):
File "/content/Semi-supervised-learning/train.py", line 16, in
from semilearn.algorithms import get_algorithm, name2alg
File "/content/Semi-supervised-learning/semilearn/init.py", line 4, in
from .core.utils import get_dataset, get_data_loader, get_net_builder
File "/content/Semi-supervised-learning/semilearn/core/init.py", line 5, in
from .algorithmbase import AlgorithmBase, ImbAlgorithmBase
File "/content/Semi-supervised-learning/semilearn/core/algorithmbase.py", line 15, in
from semilearn.core.hooks import Hook, get_priority, CheckpointHook, TimerHook, LoggingHook, DistSamplerSeedHook, ParamUpdateHook, EvaluationHook, EMAHook, WANDBHook, AimHook
File "/content/Semi-supervised-learning/semilearn/core/hooks/init.py", line 12, in
from .ema import EMAHook
File "/content/Semi-supervised-learning/semilearn/core/hooks/ema.py", line 6, in
from semilearn.core.utils import EMA
File "/content/Semi-supervised-learning/semilearn/core/utils/init.py", line 5, in
from .build import *
File "/content/Semi-supervised-learning/semilearn/core/utils/build.py", line 12, in
from semilearn.nets.utils import param_groups_layer_decay, param_groups_weight_decay
File "/content/Semi-supervised-learning/semilearn/nets/init.py", line 6, in
from .vit import vit_base_patch16_224, vit_small_patch16_224, vit_small_patch2_32, vit_tiny_patch2_32, vit_base_patch16_96
File "/content/Semi-supervised-learning/semilearn/nets/vit/init.py", line 4, in
from .vit import vit_tiny_patch2_32, vit_small_patch2_32, vit_small_patch16_224, vit_base_patch16_224, vit_base_patch16_96
File "/content/Semi-supervised-learning/semilearn/nets/vit/vit.py", line 13, in
from timm.models.layers.helpers import to_2tuple
ModuleNotFoundError: No module named 'timm.models.layers.helpers'
I just set up the initial environment on Colab to run the test code (!python train.py --c config/usb_cv/fixmatch/fixmatch_cifar100_200_0.yaml) and this error had occurred.