R
Runpod16mo ago
lexicon

Running into this error while running idm-vton on runpod

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'.
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
17 Replies
Madiator2011
Madiator201116mo ago
are you asking about serverless or pods?
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
lexicon
lexiconOP16mo ago
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
# 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
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
lexicon
lexiconOP16mo ago
lexicon
lexiconOP16mo ago
worker_runpod.py
Madiator2011
Madiator201116mo ago
mayby you need to set ./workspace/IDM-VTON though would need to know full dockerfile structure
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
lexicon
lexiconOP16mo ago
maybe yes, let me try that
Madiator2011
Madiator201116mo ago
I mean ./IDM-VTON would look at folder IDM-VTON in current workdir
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
lexicon
lexiconOP16mo ago
this is the setup in the dockerfile
WORKDIR /workspace/IDM-VTON
WORKDIR /workspace/IDM-VTON
Madiator2011
Madiator201116mo ago
If you set ./workspace/IDM-VTON it would look at files in /workspace/workspace/IDM-VTON @sumansid want me to clean up your dockerfile?
lexicon
lexiconOP16mo ago
sure actually same error after makeing it ./workspace/idm-vton
Madiator2011
Madiator201116mo ago
let me help you is code public open source?
lexicon
lexiconOP16mo ago
nope let me send you the code in a pastebin ?
Madiator2011
Madiator201116mo ago
if you nopt want to share public you can send on DM

Did you find this page helpful?