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

How to solve the problem of loss NAN? #15

Open
xiaoxiAries opened this issue Oct 6, 2022 · 3 comments
Open

How to solve the problem of loss NAN? #15

xiaoxiAries opened this issue Oct 6, 2022 · 3 comments

Comments

@xiaoxiAries
Copy link

Hi,

I reprocess this code on SSv2 datatset. I follow the blr 0.1, and use 2 gpus with batchsize of 7 (the valid total batchsize is 14). But the loss is Nan when epoch is 14. How to solve this problem? Thanks~

@ShoufaChen
Copy link
Owner

Hi,

Which configuration do you use? Full-tuning baseline or AdaptFormer?

@xiaoxiAries
Copy link
Author

Hi,
I follow this configuration:

OMP_NUM_THREADS=1 python3 -m torch.distributed.launch
--nproc_per_node=2
--use_env main_video.py
--finetune /path/to/pre_trained/mae.pyth
--output_dir /path/to/output
--batch_size 7 --epochs 90 --blr 0.1 --weight_decay 0.0 --dist_eval
--data_path /path/to/SSV2 --data_set SSV2
--ffn_adapt

@ShoufaChen
Copy link
Owner

I am sorry I didn't experiment with your specific configuration. Reduce the learning rate and have a try.

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

2 participants