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

question of depth_model #10

Open
baekhyun77 opened this issue Oct 24, 2023 · 1 comment
Open

question of depth_model #10

baekhyun77 opened this issue Oct 24, 2023 · 1 comment

Comments

@baekhyun77
Copy link

Thank you for your work. When processing data, in the 'depth_model' section, I run:

1. Run `python scripts/run.py`
2. The output will be saved in data/scenes/depths

The program encountered the following error during execution. Can you please help me identify where the issue occurred?

removed 0 old files in output folder
Save image 37/39
Save image 38/39
Save image 39/39
Save image 39/39
Traceback (most recent call last):
File "scripts/YORO_1CAM_PIPELINE_REFINE.py", line 810, in
one_cam_process(args)
File "scripts/YORO_1CAM_PIPELINE_REFINE.py", line 441, in one_cam_process
msg = model.load_state_dict(torch.load(args.model)['state_dict'], strict=False)
File "/root/miniconda3/envs/S-NeRF/lib/python3.8/site-packages/torch/serialization.py", line 607, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "/root/miniconda3/envs/S-NeRF/lib/python3.8/site-packages/torch/serialization.py", line 882, in _load
result = unpickler.load()
File "/root/miniconda3/envs/S-NeRF/lib/python3.8/site-packages/torch/serialization.py", line 857, in persistent_load
load_tensor(data_type, size, key, _maybe_decode_ascii(location))
File "/root/miniconda3/envs/S-NeRF/lib/python3.8/site-packages/torch/serialization.py", line 846, in load_tensor
loaded_storages[key] = restore_location(storage, location)
File "/root/miniconda3/envs/S-NeRF/lib/python3.8/site-packages/torch/serialization.py", line 175, in default_restore_location
result = fn(storage, location)
File "/root/miniconda3/envs/S-NeRF/lib/python3.8/site-packages/torch/serialization.py", line 151, in _cuda_deserialize
device = validate_cuda_device(location)
File "/root/miniconda3/envs/S-NeRF/lib/python3.8/site-packages/torch/serialization.py", line 135, in validate_cuda_device
raise RuntimeError('Attempting to deserialize object on a CUDA '
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.

@FooAuto
Copy link

FooAuto commented Feb 21, 2024

I also encounter the same problem and I haven't fixed it.

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