OpenGVLab / unmasked_teacher

[ICCV2023 Oral] Unmasked Teacher: Towards Training-Efficient Video Foundation Models
https://arxiv.org/abs/2303.16058
MIT License
285 stars 15 forks source link

single_modality pip install raise AssertionError: Unable to pre-compile ops without torch installed. Please install torch before attempting to pre-compile ops. #32

Closed vba34520 closed 7 months ago

vba34520 commented 7 months ago
cd single_modality

pip install -r requirements.txt

It raised AssertionError: Unable to pre-compile ops without torch installed. Please install torch before attempting to pre-compile ops.

Andy1621 commented 7 months ago

Thanks for your question. You can change the order in requirements.txt and install torch firstly.

vba34520 commented 7 months ago

Thank you for your job!

I find a solution like this:

pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113

references Previous PyTorch Versions