-
Notifications
You must be signed in to change notification settings - Fork 16
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
单GPU训练问题 #76
Comments
Please check #11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,非常感谢您分享的工作,我尝试在kinetics数据集上进行测试,并将GPU数量设置为1,但是在slowfast/datasets/utils.py->sampler = DistributedSampler(dataset) if cfg.NUM_GPUS >= 1 else None处报错没有初始化RuntimeError: Default process group has not been initialized, please make sure to call init_process_group.
于是我在该函数前面添加初始化功能:
os.environ['MASTER_ADDR'] = 'localhost'
os.environ['MASTER_PORT'] = '12355'
dist.init_process_group(backend='nccl', rank=0, world_size=1)
结果在dist.init_process_group处报错初始化了两次RuntimeError: trying to initialize the default process group twice!
对于该问题没什么头绪,想寻求一些建议。
The text was updated successfully, but these errors were encountered: