Closed kcltfask closed 3 months ago
An edited version (has been set as default branch in this project) is just released, which modifies the SCHP code to avoid JIT and localize DensePose to avoid installation. It may be helpful for you to solve this issue, but I'm not sure if all modules can be run on CPU only.
Thank you for the update. After working around the changes, I am still encountering issues due to SCHP or DensePose when CUDA is not available. However, I have decided to give up on a CPU-only solution. Thanks again for your assistance.
Using the CPU will significantly slow down the inference speed, generally consuming more than 10x of the time compared to a GPU. This means that a single try-on will take more than 5 minutes, which may be unacceptable for applications. However, you can use our Hugging Face Space or online demo.
Thank you for your advice, your online demo is fantastic.
Thanks for the great work. I am encountering a problem when running the script in a CPU-only environment (Colab with no GPU). Below are the error details:
I believe the issue arises because some dependencies of SCHP require CUDA and are only available in a CUDA environment. By the way, I have set
export TORCH_EXTENSIONS_DIR=/tmp
to overcome another issue, so you might see import errors from /tmp. Do you have a solution to run SCHP in a CPU-only environment?