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

Meet error when using torch hub #7

Open
HLinChen opened this issue Apr 26, 2024 · 3 comments
Open

Meet error when using torch hub #7

HLinChen opened this issue Apr 26, 2024 · 3 comments

Comments

@HLinChen
Copy link

Meet error when using torch hub:
image
I think replacing utils.pad_input with utils.get_padding can solve this error.

@oliver-batchelor
Copy link

Not the only problem there..

  File "/home/oliver/.cache/torch/hub/hugoycj_DSINE-hub_main/hubconf.py", line 45, in infer_pil
    intrins = utils.get_intrins_from_fov(new_fov=60.0, H=orig_H, W=orig_W, device=self.device).unsqueeze(0)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'utils.utils' has no attribute 'get_intrins_from_fov'

@hugoycj
Copy link
Contributor

hugoycj commented Apr 29, 2024

@oliver-batchelor @HLinChen I discovered that the error mentioned earlier was caused by the removal of some functions, namely rename and remove, from the utils.py. To address this issue, I have added these utility functions back into the hubconf.py.

Moving forward, I plan to refactor hubconf.py to support the latest version DSINE and support loading of different version DSINE models

@HLinChen
Copy link
Author

Thanks for your reply. By the way, what's the difference between different version saving_iterations?

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

3 participants