R
RunPod3mo ago
sumansid

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
Madiator20113mo ago
are you asking about serverless or pods?
nerdylive
nerdylive3mo ago
Anyways it seems like the model repo isn't there So wrong path, or model not downloaded yet
sumansid
sumansid3mo 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
nerdylive
nerdylive3mo ago
What code cna make this error Try sending your code
sumansid
sumansid3mo ago
worker_runpod.py
Madiator2011
Madiator20113mo ago
mayby you need to set ./workspace/IDM-VTON though would need to know full dockerfile structure
nerdylive
nerdylive3mo ago
Maybe /workspace instead of ./workspace right?
sumansid
sumansid3mo ago
maybe yes, let me try that
Madiator2011
Madiator20113mo ago
I mean ./IDM-VTON would look at folder IDM-VTON in current workdir
nerdylive
nerdylive3mo ago
Yeah ./workspace looks weird to me unless you're putting the model inside of your image hahah
sumansid
sumansid3mo ago
this is the setup in the dockerfile
WORKDIR /workspace/IDM-VTON
WORKDIR /workspace/IDM-VTON
Madiator2011
Madiator20113mo 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?
sumansid
sumansid3mo ago
sure actually same error after makeing it ./workspace/idm-vton
Madiator2011
Madiator20113mo ago
let me help you is code public open source?
sumansid
sumansid3mo ago
nope let me send you the code in a pastebin ?
Madiator2011
Madiator20113mo ago
if you nopt want to share public you can send on DM
Want results from more Discord servers?
Add your server