YuxinWenRick / hard-prompts-made-easy

MIT License
601 stars 54 forks source link

import pez.open_clip problem? ModuleNotFoundError: No module named 'pez' #26

Closed marseve closed 5 months ago

marseve commented 5 months ago

I am using a fork of this.. and I am terrible at code, but I do use GPT to help LOL

anyway, when I run, it says "ModuleNotFoundError: No module named 'pez'"

image

What code can I add to update? thanks!!!

YuxinWenRick commented 5 months ago

Hi, I assume you are running this on colab. You can cd to the repository first, and just import them, like:

!git clone https://github.com/YuxinWenRick/hard-prompts-made-easy
%cd hard-prompts-made-easy
import open_clip
from optim_utils import *
marseve commented 5 months ago

thanks!!! works!