fabiotosi92 / NeRF-Supervised-Deep-Stereo

A novel paradigm for collecting and generating stereo training data using neural rendering
https://nerfstereo.github.io/
MIT License
348 stars 19 forks source link

Python problems #39

Open luuude opened 11 months ago

luuude commented 11 months ago

I am trying to run the demo.py. I have follwed the instructions but I get lots of errors. Like this: File "/home/ai/Documents/nerfstereo/demo.py", line 15 from models.raft-stereo import RAFTStereo ^ SyntaxError: invalid syntax

So I change name and code to raft_stereo.

then new error

File "/home/ai/Documents/nerfstereo/demo.py", line 114, in main() File "/home/ai/Documents/nerfstereo/demo.py", line 85, in main model = load_pretrained_model(args) File "/home/ai/Documents/nerfstereo/demo.py", line 21, in load_pretrained_model model = RAFTStereo(args) File "/home/ai/Documents/nerfstereo/models/raft_stereo.py", line 27, in init context_dims = args.hidden_dims AttributeError: 'Namespace' object has no attribute 'hidden_dims'

ZYX-lang-lang commented 9 months ago

Hello, I get the same error as you. Have you found a solution yet?

luuude commented 9 months ago

Nope no solution yet. Trying to fix it today

luuude commented 9 months ago

I added all the arguments from https://github.com/princeton-vl/RAFT-Stereo/blob/main/demo.py that helped with that problem. But I got a new one. I must be doing somethig wrong but what?

New error is: File "/home/ai/Documents/NeRF-Supervised-Deep-Stereo_old/models/raft_stereo/extractor.py", line 231, in init nn.Conv2d(128, dim[2], 3, padding=1))


TypeError: 'int' object is not subscriptable
GrimaceLittleBoss commented 5 months ago

I met the same error, have you solved it?@luuude

I added all the arguments from https://github.com/princeton-vl/RAFT-Stereo/blob/main/demo.py that helped with that problem. But I got a new one. I must be doing somethig wrong but what?

New error is: File "/home/ai/Documents/NeRF-Supervised-Deep-Stereo_old/models/raft_stereo/extractor.py", line 231, in init nn.Conv2d(128, dim[2], 3, padding=1)) ~~~^^^ TypeError: 'int' object is not subscriptable

csmab commented 3 months ago

@luuude I also encountered the same problem when I reproduced this paper today. Have you solved this problem? If so, can you tell me how it was solved? Thank you very much