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

ModuleNotFoundError: No module named 'timm' #13

Closed
Logan-lu opened this issue Aug 19, 2022 · 2 comments
Closed

ModuleNotFoundError: No module named 'timm' #13

Logan-lu opened this issue Aug 19, 2022 · 2 comments

Comments

@Logan-lu
Copy link

Following setup steps in README.md, when running training script (python train.py --data coco128.yaml --cfg configs/yolov5/yolov5s.yaml), met the following errors:

Downloading https://ultralytics.com/assets/Arial.ttf to /home/logan/.config/Ultralytics/Arial.ttf...
Traceback (most recent call last):
File "/home/logan/dev/pyfarm/pytorch/yoloair/train.py", line 41, in
import val # for end-of-epoch mAP
File "/home/logan/dev/pyfarm/pytorch/yoloair/val.py", line 38, in
from models.common import DetectMultiBackend
File "/home/logan/dev/pyfarm/pytorch/yoloair/models/common.py", line 35, in
from models.Models.muitlbackbone import conv_bn_hswish, MobileNetV3_InvertedResidual, DepthSepConv,
File "/home/logan/dev/pyfarm/pytorch/yoloair/models/Models/muitlbackbone.py", line 26, in
from models.Models.SwinTransformer import SwinTransformerLayer
File "/home/logan/dev/pyfarm/pytorch/yoloair/models/Models/SwinTransformer.py", line 9, in
from timm.models.layers import DropPath, to_2tuple, trunc_normal_
ModuleNotFoundError: No module named 'timm'

Any help?

P.S. My env: Ubuntu22.04.1, python 3.10.4

@iscyy
Copy link
Owner

iscyy commented Aug 19, 2022

you can use pip install timm

@iscyy iscyy closed this as completed Sep 4, 2022
@zhongsir771
Copy link

pip is useful

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

3 participants