thunderyan opened this issue 10 months ago · 1 comments
cfg.py 中, device = "cuda" if os.getenv('CUDA','')=='CUDA' and torch.cuda.is_available() else "cpu"
device = "cuda" if os.getenv('CUDA','')=='CUDA' and torch.cuda.is_available() else "cpu"
应该改为: device = "cuda" if os.getenv('DEVICE','')=='CUDA' and torch.cuda.is_available() else "cpu"
device = "cuda" if os.getenv('DEVICE','')=='CUDA' and torch.cuda.is_available() else "cpu"
ok,多谢反馈