aigc-apps / sd-webui-EasyPhoto

πŸ“· EasyPhoto | Your Smart AI Photo Generator.
Apache License 2.0
4.71k stars 369 forks source link

Feature Requests: use Auto1111 base models for generate and training #392

Closed mykeehu closed 4 months ago

mykeehu commented 4 months ago

Is there an existing issue for this?

Is EasyPhoto the latest version?

What happened?

I check "The base checkpoint you use." list, but no use my model folder. I have custom model folder path with many models, I need this. Or use base model list from Auto1111's checkpoints. You can also use the predefined Controlnet folder, I don't want to duplicate the models.

Steps to reproduce the problem

  1. set a custom path to your models
  2. Open Easyphoto
  3. check "The base checkpoint you use." list
  4. your models no there

What should have happened?

Load your own models in "The base checkpoint you use." list.

Commit where the problem happens

EastPhoto:

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--api --xformers --medvram-sdxl --no-half-vae --ckpt-dir M:\\!SDModels --lora-dir I:\\!Lora --ui-config-file 1my/ui-config-my.json --embeddings-dir I:\\!Embeddings --hypernetwork-dir I:\\!Hypernetworks --gfpgan-dir I:\\GFPGAN --esrgan-models-path I:\\ESRGAN --realesrgan-models-path I:\\RealESRGAN --vae-dir I:\\VAE --ui-settings-file 1my/config-my.json --autolaunch

List of enabled extensions

image

Console logs

venv "I:\Stable-Diffusion-Automatic\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
is_installed check for tensorflow-cpu failed as 'spec is None'
Installing requirements for easyphoto-webui
Installing requirements for tensorflow
Installing requirements for easyphoto-webui
Installing requirements for modelscope
Installing requirements for easyphoto-webui
Installing requirements for fsspec
Installing requirements for easyphoto-webui
Installing requirements for invisible-watermark
CUDA 11.8
Launching Web UI with arguments: --api --xformers --medvram-sdxl --no-half-vae --ckpt-dir M:\!SDModels --lora-dir I:\!Lora --ui-config-file 1my/ui-config-my.json --embeddings-dir I:\!Embeddings --hypernetwork-dir I:\!Hypernetworks --gfpgan-dir I:\GFPGAN --esrgan-models-path I:\ESRGAN --realesrgan-models-path I:\RealESRGAN --vae-dir I:\VAE --ui-settings-file 1my/config-my.json --autolaunch
[-] ADetailer initialized. version: 24.1.2, num models: 25
Loading booru2prompt settings
2024-02-20 06:41:27,650 - modelscope - INFO - PyTorch version 2.0.1+cu118 Found.
2024-02-20 06:41:27,650 - modelscope - INFO - TensorFlow version 2.12.0 Found.
2024-02-20 06:41:27,650 - modelscope - INFO - Loading ast index from C:\Users\Mykee\.cache\modelscope\ast_indexer
2024-02-20 06:41:27,712 - modelscope - INFO - No valid ast index found from C:\Users\Mykee\.cache\modelscope\ast_indexer, generating ast index from prebuilt!
2024-02-20 06:41:27,743 - modelscope - INFO - Loading done! Current index file version is 1.9.3, with md5 4a6593eac1e6dbc977e4f691f0a44c61 and a total number of 943 components indexed
[AddNet] Updating model hashes...
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 932/932 [00:00<00:00, 59668.94it/s]
[AddNet] Updating model hashes...
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 932/932 [00:00<00:00, 59634.35it/s]
ControlNet preprocessor location: I:\annotator
2024-02-20 06:41:29,740 - ControlNet - INFO - ControlNet v1.1.440
2024-02-20 06:41:30,298 - ControlNet - INFO - ControlNet v1.1.440
06:41:32 - ReActor - STATUS - Running v0.7.0-a1 on Device: CUDA
Started the depthmap API. DO NOT HOST PUBLICLY - SECURITY RISKS!
Loading weights [e6bb9ea85b] from M:\!SDModels\SDXL\sd_xl_base_1.0_0.9vae.safetensors
2024-02-20 06:41:36,112 - AnimateDiff - INFO - Injecting LCM to UI.
AnimateDiffScript init
AnimateDiffScript init
2024-02-20 06:41:36,408 - AnimateDiff - INFO - Hacking i2i-batch.
2024-02-20 06:41:36,455 - ControlNet - INFO - ControlNet UI callback registered.
2024-02-20 06:41:38,027 - EasyPhoto - Start Downloading: https://pai-vision-data-sh.oss-cn-shanghai.aliyuncs.com/aigc-data/easyphoto/tryon/template/boy.jpg
Creating model from config: I:\Stable-Diffusion-Automatic\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_base.yaml
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 533k/533k [00:00<00:00, 725kB/s]
2024-02-20 06:41:41,733 - EasyPhoto - Start Downloading: https://pai-vision-data-sh.oss-cn-shanghai.aliyuncs.com/aigc-data/easyphoto/tryon/template/girl.jpg
Applying attention optimization: xformers... done.
No Image data blocks found.
No Image data blocks found.
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 496k/496k [00:00<00:00, 688kB/s]
2024-02-20 06:41:43,734 - EasyPhoto - Start Downloading: https://pai-vision-data-sh.oss-cn-shanghai.aliyuncs.com/aigc-data/easyphoto/tryon/template/dress.jpg
Model loaded in 8.3s (load weights from disk: 4.6s, create model: 0.3s, apply weights to model: 1.0s, load textual inversion embeddings: 1.4s, calculate empty prompt: 0.8s).
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 154k/154k [00:00<00:00, 490kB/s]
2024-02-20 06:41:45,329 - EasyPhoto - Start Downloading: https://pai-vision-data-sh.oss-cn-shanghai.aliyuncs.com/aigc-data/easyphoto/tryon/template/short.jpg
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.99M/1.99M [00:01<00:00, 1.32MB/s]
[tag-editor] Settings has been read from config.json
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 87.4s (prepare environment: 55.9s, import torch: 3.5s, import gradio: 0.6s, setup paths: 0.4s, initialize shared: 0.2s, other imports: 1.0s, setup codeformer: 0.2s, list SD models: 1.3s, load scripts: 11.4s, create ui: 12.6s, gradio launch: 0.3s, app_started_callback: 0.2s).
No Image data blocks found.
No Image data blocks found.
No Image data blocks found.
No Image data blocks found.
Reusing loaded model SDXL\sd_xl_base_1.0_0.9vae.safetensors [e6bb9ea85b] to load NSFW\juggernaut_reborn.safetensors [338b85bc4f]
Loading weights [338b85bc4f] from M:\!SDModels\NSFW\juggernaut_reborn.safetensors
Creating model from config: I:\Stable-Diffusion-Automatic\stable-diffusion-webui\configs\v1-inference.yaml
Applying attention optimization: xformers... done.
No Image data blocks found.
No Image data blocks found.
Model loaded in 1.1s (create model: 0.3s, apply weights to model: 0.4s, load textual inversion embeddings: 0.3s).

Additional information

No response

hkunzhe commented 4 months ago

@mykeehu, You can use the symbolic link or create a shortcut in windows. Sorry for the inconvenience.