Cuberick-Orion / CIRPLANT

Official implementation of the Composed Image Retrieval using Pretrained LANguage Transformers (CIRPLANT) | ICCV 2021 - Image Retrieval on Real-life Images with Pre-trained Vision-and-Language Models
MIT License
36 stars 8 forks source link

which version of transformers to use ?? #9

Closed complete-dope closed 1 year ago

complete-dope commented 1 year ago

I am unable to import transformers.pytorch_transformers

Please provide a compatible version in the requirements file

Cuberick-Orion commented 1 year ago

Hi,

transformers is not a package to be installed via pip (though I am aware that there is a package with the same name), it is a module inside OSCAR, as below:

(Pdb++) transformers.__path__
_NamespacePath(['<some directory>/Oscar/transformers'])

(Pdb++) transformers.pytorch_transformers.__path__
['<some directory>/Oscar/transformers/pytorch_transformers']

(Pdb++) from transformers.pytorch_transformers import AdamW, WarmupLinearSchedule
# no error, imported successfully

For details on the OSCAR version, see this issue.