#Running into this error while running idm-vton on runpod

28 messages · Page 1 of 1 (latest)

grizzled parcel
#
packages/huggingface_hub/utils/_validators.py", line 160, in validate_repo_id
2024-07-27T09:39:56.116114493Z     raise HFValidationError(
2024-07-27T09:39:56.116118532Z huggingface_hub.errors.HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: './IDM-VTON'.

2024-07-27T09:39:56.116182401Z OSError: We couldn't connect to 'https://huggingface.co' to load this model, couldn't find it in the cached files and it looks like ./IDM-VTON is not the path to a directory containing a config.json file.
2024-07-27T09:39:56.116187737Z Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/diffusers/installation#offline-mode'.

However, running it on google colab works fine
https://colab.research.google.com/github/camenduru/IDM-VTON-jupyter/blob/main/IDM_VTON_jupyter.ipynb#scrollTo=2nHpOSPfZKDW

graceful bramble
#

are you asking about serverless or pods?

fickle field
#

So wrong path, or model not downloaded yet

grizzled parcel
#

hmm model is there tho

#

# Download model files
RUN mkdir -p /workspace/IDM-VTON/ckpt/densepose && \
    aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/IDM-VTON/resolve/main/densepose/model_final_162be9.pkl -d /workspace/IDM-VTON/ckpt/densepose -o model_final_162be9.pkl

RUN mkdir -p /workspace/IDM-VTON/ckpt/humanparsing && \
    aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/IDM-VTON/resolve/main/humanparsing/parsing_atr.onnx -d /workspace/IDM-VTON/ckpt/humanparsing -o parsing_atr.onnx && \
    aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/IDM-VTON/resolve/main/humanparsing/parsing_lip.onnx -d /workspace/IDM-VTON/ckpt/humanparsing -o parsing_lip.onnx

RUN mkdir -p /workspace/IDM-VTON/ckpt/openpose/ckpts && \
    aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/IDM-VTON/resolve/main/openpose/ckpts/body_pose_model.pth -d /workspace/IDM-VTON/ckpt/openpose/ckpts -o body_pose_model.pth

#

I checked each of these links

#

serverless

fickle field
#

Try sending your code

grizzled parcel
#

worker_runpod.py

graceful bramble
#

mayby you need to set
./workspace/IDM-VTON

#

though would need to know full dockerfile structure

fickle field
#

Maybe /workspace instead of ./workspace right?

grizzled parcel
#

maybe yes, let me try that

graceful bramble
#

I mean ./IDM-VTON would look at folder IDM-VTON in current workdir

fickle field
#

Yeah

#

./workspace looks weird to me unless you're putting the model inside of your image hahah

grizzled parcel
#

this is the setup in the dockerfile

WORKDIR /workspace/IDM-VTON
graceful bramble
#

If you set ./workspace/IDM-VTON it would look at files in /workspace/workspace/IDM-VTON

#

@grizzled parcel want me to clean up your dockerfile?

grizzled parcel
#

sure

#

actually same error after makeing it ./workspace/idm-vton

graceful bramble
#

let me help you

#

is code public open source?

grizzled parcel
#

nope

#

let me send you the code in a pastebin ?