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

Why is the output of the model NaN when running train.py? #8

Open
AlexZzy1985 opened this issue Dec 18, 2024 · 0 comments
Open

Why is the output of the model NaN when running train.py? #8

AlexZzy1985 opened this issue Dec 18, 2024 · 0 comments

Comments

@AlexZzy1985
Copy link

When i run the follwoing commant: python lmpt/train.py
--dataset 'voc-lt'
--seed '0'
--pretrain_clip 'ViT16'
--batch_size 64
--epochs 50
--class_token_position 'end'
--ctx_init ''
--n_ctx 16
--m_ctx 2
--training_method 'lmpt'
--lr 5e-4
--loss_function dbl
--cseloss softmargin
--optimizer sgd
--neg_scale 2.0
--gamma 0.2
--lam 0.5
the output of 'CustomCLIP' is NaN. I've carefully checked the code and found that in CustomCLIP, there are NaNs in the result of prompts = self.prompt_learner(). I'm wondering if there are any friends who have encountered similar problems. I'm really looking forward to getting your help. Also, thanks to the author for the outstanding work!

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