I have to withdraw my statement. I didn’t notice I was working with the changes I mentioned earlier in this forum.
[my fix]
I still get the error:
spatial_reshape_sizes = [output_shape[1], output_shape[2]]
IndexError: list index out of range
@nina-vilela, do you have another idea where my error is?
Please try again from a fresh clean venv, and make sure that you install clip the recommended way:
pip install git+https://github.com/openai/CLIP.git
Also. please try exactly this snippet:
Hey @nina-vilela,
I made a fresh venv and installed the following packages:
pip install torch
pip install torch.onnx
pip install git+https://github.com/openai/CLIP.git
Then i executed your Code but i again had to adjust the opset_version = 14`
The result is this: