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

Issue regarding DinoVisionTransformer #391

Open
sima111b opened this issue Mar 10, 2024 · 3 comments
Open

Issue regarding DinoVisionTransformer #391

sima111b opened this issue Mar 10, 2024 · 3 comments

Comments

@sima111b
Copy link

Hi,

I am trying to run the training code
"python dinov2/run/train/train.py
--nodes 4
--config-file dinov2/configs/train/vitl16_short.yaml
--output-dir <PATH/TO/OUTPUT/DIR>
train.dataset_path=ImageNet:split=TRAIN:root=<PATH/TO/DATASET>:extra=<PATH/TO/DATASET>"

but face to this error:
AttributeError: "DinoVisionTransformer' has no attribute '_streams'.

Could you please advise me regarding it?
Thanks!

@MichaelDoron
Copy link

I have the same issue, is there a solution for this?

@MrPeterJin
Copy link

Same problem here, any solution?

@joreeves
Copy link

joreeves commented Jun 3, 2024

I was getting the same error. Here is what fixed it for me:

Environment: Ubuntu (WSL)

First, I was using python 3.11, I cleared conda and started fresh with 3.10

If you have cuda 117 then you can likely skip the next steps and jump to the install:

Next, I modified requirements file to use my correct cuda version. (cu117 -> cu121)

This creates a dependency error for torchvision 0.15 since it relies on torch+cu117. So i removed the version dependency for torchvision.

This is what my requirements looked like.

--extra-index-url https://download.pytorch.org/whl/cu121
torch==2.0.0
torchvision
omegaconf
torchmetrics==0.10.3
fvcore
iopath
xformers==0.0.18
submitit
--extra-index-url https://pypi.nvidia.com
cuml-cu11

Then installed the requirements with pip install -r requirements.txt and everything worked as it should.

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