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

Python problems #39

Open
luuude opened this issue Dec 1, 2023 · 5 comments
Open

Python problems #39

luuude opened this issue Dec 1, 2023 · 5 comments

Comments

@luuude
Copy link

luuude commented Dec 1, 2023

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
Copy link

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

@luuude
Copy link
Author

luuude commented Jan 30, 2024

Nope no solution yet. Trying to fix it today

@luuude
Copy link
Author

luuude commented Jan 30, 2024

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
Copy link

GrimaceLittleBoss commented May 9, 2024

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
Copy link

csmab commented Jul 11, 2024

@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

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

4 participants