Open nbansal90 opened 7 months ago
Hello, please update this repo and try to modify CKPT_PTH.py
like this:
LLAVA_CLIP_PATH = '/opt/clip-vit-large-patch14-336'
LLAVA_MODEL_PATH = '/opt/llava-v1.5-13b'
SDXL_CLIP1_PATH = '/opt/clip-vit-large-patch14'
SDXL_CLIP2_CACHE_DIR = '/opt/CLIP-ViT-bigG-14-laion2B-39B-b160k/open_clip_pytorch_model.bin'
Same problem. Not sure why the proposed solution above would work... seems to be changing SDXL_CLIP2_CKPT_PTH to SDXL_CLIP2_CACHE_DIR in CKPT_PTH.py, but the problem seems to stem from SDXL_CLIP1_PATH
So, I updated my paths to the following and it worked for me:
LLAVA_CLIP_PATH = './opt/LLaVA1.5/clip-vit-large-patch14-336'
LLAVA_MODEL_PATH = './opt/LLaVA1.5 /llava-v1.5-13b'
SDXL_CLIP1_PATH = './opt/clip-vit-large-patch14'
SDXL_CLIP2_CACHE_DIR = './opt/CLIP-ViT-bigG-14-laion2B-39B-b160k/' ```
Thanks.. that makes sense. I had some luck with
LLAVA_CLIP_PATH = './opt/LLaVA1.5/clip-vit-large-patch14-336' LLAVA_MODEL_PATH = 'opt/LLaVA1.5 /llava-v1.5-13b' SDXL_CLIP1_PATH = 'opt/clip-vit-large-patch14' SDXL_CLIP2_CACHE_DIR = 'opt/CLIP-ViT-bigG-14-laion2B-39B-b160k/'
Seems like a leading / is what causes the issue
I am trying to run inference:
python test.py --img_dir './inputs/' --save_dir ./results --SUPIR_sign Q --upscale 2
Getting this error:
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/opt/clip-vit-large-patch14'. Use `repo_type` argument if needed.
I presume this looks like this has something to do with location, but not sure what changes should be done?
Path For the downloaded models. LLAVA_CLIP_PATH = '/opt/clip-vit-large-patch14-336' LLAVA_MODEL_PATH = '/opt/llava-v1.5-13b' SDXL_CLIP1_PATH = '/opt/clip-vit-large-patch14' SDXL_CLIP2_CACHE_DIR = '/opt/CLIP-ViT-bigG-14-laion2B-39B-b160k/'
Regards Nitin