DPVO icon indicating copy to clipboard operation
DPVO copied to clipboard

Error when implementing demo

Open RaymonHE opened this issue 2 years ago • 4 comments

Hi, @zachteed @lahavlipson, sorry to bother you again. After almost one-week-long, I made some breakthroughs. After I created the virtual environment on my Ubunutu20.04 and succeeded in installing CUDA 11.8 and the corresponding cudnn (8.50 for CUDA 11.X), I finally solved the problem of the failure to download DPViewer, which is not that easy as it sounded, especially for me who might had no background of how to implement learning on Ubuntu before. I still encountered some problems when testing the demo given. After I inputted the python demo.py --imagedir=movies/IMG_0494.MOV --calib=calib/iphone.txt --stride=5 --viz, the outcome is given below. The error is the failure to locate the file "dpvo.pth", I wonder if I miss something or not. I would be very grateful if you could do me a favor. `(dpvo) ➜ DPVO git:(main) ✗ python demo.py --imagedir=movies/IMG_0494.MOV --calib=calib/iphone.txt --stride=5 --viz Running with config... BUFFER_SIZE: 2048 GRADIENT_BIAS: False KEYFRAME_INDEX: 4 KEYFRAME_THRESH: 15.0 MIXED_PRECISION: True MOTION_DAMPING: 0.5 MOTION_MODEL: DAMPED_LINEAR OPTIMIZATION_WINDOW: 10 PATCHES_PER_FRAME: 96 PATCH_LIFETIME: 13 REMOVAL_WINDOW: 22 Traceback (most recent call last): File "/home/rui/workspace/DPVO/demo.py", line 78, in run(cfg, args.network, args.imagedir, args.calib, args.stride, args.skip, args.viz, args.timeit) File "/home/rui/anaconda3/envs/dpvo/lib/python3.10/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context return func(*args, **kwargs) File "/home/rui/workspace/DPVO/demo.py", line 42, in run slam = DPVO(cfg, network, ht=image.shape[1], wd=image.shape[2], viz=viz) File "/home/rui/workspace/DPVO/dpvo/dpvo.py", line 21, in init self.load_weights(network) File "/home/rui/workspace/DPVO/dpvo/dpvo.py", line 93, in load_weights state_dict = torch.load(network) File "/home/rui/anaconda3/envs/dpvo/lib/python3.10/site-packages/torch/serialization.py", line 699, in load with _open_file_like(f, 'rb') as opened_file: File "/home/rui/anaconda3/envs/dpvo/lib/python3.10/site-packages/torch/serialization.py", line 230, in _open_file_like return _open_file(name_or_buffer, mode) File "/home/rui/anaconda3/envs/dpvo/lib/python3.10/site-packages/torch/serialization.py", line 211, in init super(_open_file, self).init(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: 'dpvo.pth'

`

RaymonHE avatar Nov 20 '22 11:11 RaymonHE