YOPO-You-Only-Propagate-Once icon indicating copy to clipboard operation
YOPO-You-Only-Propagate-Once copied to clipboard

fix variable name and import errors; use cpu when no nvidia gpu.

Open userElaina opened this issue 9 months ago • 0 comments

fix: variable name and import errors.

If num_workers=2 in torch.utils.data.DataLoader(), an error will occur without nvidia gpu. So I let num_workers=2 if torch.cuda.is_available() else 0 to run use cpu when no nvidia gpu.

userElaina avatar Apr 28 '24 01:04 userElaina