conda create -n RAG python==3.9 conda activate RAG pip install xformers==0.0.28.post1 diffusers peft torchvision==0.19.1 opencv-python==4.10.0.84 sentencepiece==0.2.0 protobuf==5.28.1 scipy==1.13.1 ...
Thanks to @zjysteven for his efforts. Below shows an example with stable-diffusion-2-1-base. import torch from PIL import Image, ImageDraw from copy import deepcopy ...