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

utils import issue - which library versions are used? #3

Closed
alimkarimi opened this issue Apr 2, 2024 · 3 comments
Closed

utils import issue - which library versions are used? #3

alimkarimi opened this issue Apr 2, 2024 · 3 comments

Comments

@alimkarimi
Copy link

Hi there. Very cool work!

Can you please post the versions of the libraries that are listed in the requirements.txt file? I am running into an issue with using the demo.ipynb as I get an issue loading the vit base model in the cell below "Load the pre-trained weights of DOFA base model" (in the import statement "from models_dwv import vit_base_patch16")

Specifically the error is "ModuleNotFoundError: No module named 'util'". I have kornia, numpy, rasterio, timm, and torch all in my environment. I am wondering if it may be an issue with which version of timm I am on, as timm is the only library in that list that has a built in function for sin/cos based 2d positional embeddings (as far as I am aware).

This is the full error message:
Screenshot 2024-04-01 at 10 12 44 PM

@alimkarimi
Copy link
Author

Is it possibly from the MAE library? https://github.com/facebookresearch/mae/blob/main/util/pos_embed.py . The pos_embed.py file here has a function called "get_1d_sincos_pos_embed_from_grid".

@xiong-zhitong
Copy link
Member

Hi @alimkarimi , we updated the repo and the problem should be fixed now.
The demo file has also been updated. Thanks for your interest.

@alimkarimi
Copy link
Author

Thanks! I am able to run inference now for the demo notebook examples.

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

2 participants