frankchieng / ComfyUI_MagicClothing

unofficial implementation of Comfyui magic clothing
Other
501 stars 42 forks source link

Complete Installation Guide #73

Open Amazon90 opened 2 months ago

Amazon90 commented 2 months ago
conda create -n mcloth python=3.10 -y
conda activate mcloth
git clone https://github.com/comfyanonymous/ComfyUI.git
git clone https://github.com/frankchieng/ComfyUI_MagicClothing.git ComfyUI\custom_nodes
pip install -r ComfyUI\custom_nodes\ComfyUI_MagicClothing\requirements.txt
pip install -r ComfyUI\requirements.txt

Create a text file, rename it to "run_gui.ps1", and use a text editor to add the following content:

$env:HF_HOME = "D:\MagicClothing\.cache"
conda activate mcloth
cd D:\MagicClothing\ComfyUI\custom_nodes\ComfyUI_MagicClothing
git pull
pip install -r requirements.txt
cd D:\MagicClothing\ComfyUI
git pull
pip install -r requirements.txt
python main.py --front-end-version Comfy-Org/ComfyUI_frontend@latest

To use a custom model, please modify the content of line 16 in the following file: "ComfyUI\custom_nodes\ComfyUI_MagicClothing\nodes.py” pipe_path = ["Add your preferred model", "SG161222/Realistic_Vision_V4.0_noVAE", "Lykon/dreamshaper-8", "redstonehero/xxmix_9realistic_v40"]

Thank Frank Chieng for his response to the following issues. https://github.com/frankchieng/ComfyUI_MagicClothing/issues/31#issuecomment-2090007965 https://github.com/frankchieng/ComfyUI_MagicClothing/issues/39#issuecomment-2095379433 https://github.com/frankchieng/ComfyUI_MagicClothing/issues/47#issuecomment-2132509615

water110 commented 3 weeks ago

Where should I put the custom model, and how should I change the code if I want to use the model in the checkpoints folder

Amazon90 commented 3 weeks ago

Where should I put the custom model, and how should I change the code if I want to use the model in the checkpoints folder

To use a custom model, please modify the content of line 16 in the following file: "ComfyUI\custom_nodes\ComfyUI_MagicClothing\nodes.py” pipe_path = ["Add your preferred model", "SG161222/Realistic_Vision_V4.0_noVAE", "Lykon/dreamshaper-8", "redstonehero/xxmix_9realistic_v40"]

water110 commented 3 weeks ago

Where should I put the custom model, and how should I change the code if I want to use the model in the checkpoints folder

To use a custom model, please modify the content of line 16 in the following file: "ComfyUI\custom_nodes\ComfyUI_MagicClothing\nodes.py” pipe_path = ["Add your preferred model", "SG161222/Realistic_Vision_V4.0_noVAE", "Lykon/dreamshaper-8", "redstonehero/xxmix_9realistic_v40"]

I think my previous expression caused you to misunderstand. I understand that the code at this location should be modified, but I don’t know how to fill in my model path. Do I need to fill in the absolute path? The example gives a relative path, and the model is placed In the cache directory of huggingface, my current model is placed under models/checkpoints.

Amazon90 commented 3 weeks ago

For example, if you want to use the "majicMIX_realistic_v6" model, you can modify pipe_path = ["Add your preferred model", "SG161222/Realistic_Vision_V4.0_noVAE", "Lykon/dreamshaper-8", "redstonehero/xxmix_9realistic_v40"] to: pipe_path = ["digiplay/majicMIX_realistic_v6", "SG161222/Realistic_Vision_V4.0_noVAE", "Lykon/dreamshaper-8", "redstonehero/xxmix_9realistic_v40"]