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

单GPU训练问题 #76

Open
liwsng opened this issue Jun 19, 2024 · 1 comment
Open

单GPU训练问题 #76

liwsng opened this issue Jun 19, 2024 · 1 comment

Comments

@liwsng
Copy link

liwsng commented Jun 19, 2024

您好,非常感谢您分享的工作,我尝试在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!
对于该问题没什么头绪,想寻求一些建议。

@Andy1621
Copy link
Collaborator

Andy1621 commented Jul 2, 2024

Please check #11

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