RAFT-Stereo icon indicating copy to clipboard operation
RAFT-Stereo copied to clipboard

During training process, there is a size error

Open hillaric opened this issue 2 years ago • 3 comments

When I run "python3 train_stereo.py --batch_size 8 --train_iters 22 --valid_iters 32 --spatial_scale -0.2 0.4 --saturation_range 0 1.4 --n_downsample 2 --num_steps 200000 --mixed_precision --train_datasets middlebury_F --restore_ckpt models/raftstereo-sceneflow.pth --num_steps 5000",here is the error:

截屏2022-04-14 下午8 06 20

hillaric avatar Apr 14 '22 12:04 hillaric

I can't reproduce this issue. From the root directory, I can obtain the file information for a Middlebury GT using the following command:

(raftstereo) llipson@node803 RAFT-Stereo$ identify datasets/Middlebury/MiddEval3/trainingF/PianoL/disp0GT.pfm
datasets/Middlebury/MiddEval3/trainingF/PianoL/disp0GT.pfm PFM 2828x1924 2828x1924+0+0 32-bit Grayscale Gray 20.7561MiB 0.160u 0:00.194

Do you get the same result?

lahavlipson avatar Apr 14 '22 18:04 lahavlipson

yes, I got the same result, but I still have the same error.

hillaric avatar Apr 21 '22 07:04 hillaric

Are you setting test_mode=True in the forward pass? I get the same error in this case.

lahavlipson avatar Apr 22 '22 02:04 lahavlipson