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

num_gpu #60

Open
jihuan1203 opened this issue Mar 19, 2024 · 0 comments
Open

num_gpu #60

jihuan1203 opened this issue Mar 19, 2024 · 0 comments

Comments

@jihuan1203
Copy link

我添加了:

    os.environ["CUDA_VISIBLE_DEVICES"] = "1,2"

其中,指定

            "args": [
                "--config-file",
                "configs/FPN_R_50/CTW1500/finetune_96voc_50maxlen.yaml",
                "--num-gpus",
                "2"
            ],

在train_net.py中,并且torch.cuda.device_count() = 2
报错:

  File "/home/wit/anaconda3/envs/lj_py3.8pt1.10/lib/python3.8/site-packages/detectron2/engine/launch.py", line 119, in _distributed_worker
    assert num_gpus_per_machine <= torch.cuda.device_count()
AssertionError 

想知道num_gpus_per_machine 值与什么因素有关

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