X-StereoLab icon indicating copy to clipboard operation
X-StereoLab copied to clipboard

Error in code

Open Bidski opened this issue 4 years ago • 3 comments

I am trying to train the network and I am getting the following errors

Traceback (most recent call last):
  File "./main8Xmulti.py", line 22, in <module>
    from models.StereoNet8Xmulti import StereoNet
ModuleNotFoundError: No module named 'models.StereoNet8Xmulti'

Changing from models.StereoNet8Xmulti import StereoNet to from models.StereoNet_single import StereoNet fixes that error, but then I get this error

Traceback (most recent call last):
  File "./main8Xmulti.py", line 365, in <module>
    main()
  File "./main8Xmulti.py", line 170, in main
    train(TrainImgLoader, model, optimizer, log, epoch)
  File "./main8Xmulti.py", line 223, in train
    losses[idx].update(loss[idx].item() / args.loss_weights[idx])
IndexError: list index out of range

loss only has 2 elements in the list, but losses has 4. How can I fix this?

Bidski avatar Jul 22 '20 06:07 Bidski

Hello, is the final output of this network a list? What do the two tensors in the list represent?

ymk1933230135 avatar Aug 20 '20 11:08 ymk1933230135

Hello, I got the same error as you.Have you solved that?

ChuyanYu21 avatar Oct 06 '20 18:10 ChuyanYu21

I got the same error too, and after I changed "from models.StereoNet8Xmulti import StereoNet " to "from models.StereoNet_single import StereoNet", the error became "exit 2", Have you solved that?

Overture-Y avatar Dec 02 '20 06:12 Overture-Y