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

Where is train.py #10

Open
Lizhuoling opened this issue Aug 17, 2022 · 9 comments
Open

Where is train.py #10

Lizhuoling opened this issue Aug 17, 2022 · 9 comments

Comments

@Lizhuoling
Copy link

I do not see the file "train.py" for start training.

@wsy-yjys
Copy link

wsy-yjys commented Dec 9, 2022

where is the train.py?

@kevinz8866
Copy link

Hi,

Check this out. This fork fixes all the import issues. https://github.com/kevinz8866/MobileFormer

@lhl12395
Copy link

@kevinz8866 Hi,did you encounter RuntimeError: Unknown model (mobile_former_294m) in timm? and if so, can you share some experience?Please

@kevinz8866
Copy link

kevinz8866 commented Feb 25, 2023

@lhl12395 I can't recall that issue. Chechout my fork that fixes import issues or provide your steps to reproduce the issue so that I could take a closer look. Cheers.

@lhl12395
Copy link

@kevinz8866 Thanks for your reply. I resolve this problem just now. I forgot import mobile_former in _init.py. Have a good day. Cheers.

@wsy-yjys
Copy link

ok, thankyou

@syswyl
Copy link

syswyl commented Mar 15, 2023

@lhl12395

Hello, are you following

timm==0.6.12
torch==1.12.0+cu113
torchvision==0.13.0+cu113

environment configured?

I noticed the function create_scheduler_v2 in the code, but it seems that timm officially added this function only in the 0.8 dev version. When I upgraded the timm version, I got the Unknown model (mobile_former_294m) in timm issue you mentioned. In which __init.py file did you add mobile_former?

@lhl12395
Copy link

Hello,You should execute the following code:
git clone https://github.com/rwightman/pytorch-image-models
cd pytorch-image-models && pip install -e .

This makes the timm editable.

@syswyl
Copy link

syswyl commented Mar 15, 2023

pip install -e .
Thanks! I'll try it~

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

5 participants