Comments (16)
在使用EasyPhoto的时候,建议可以保留入口,把用户基于Lora训练的底模路径填入,这样就不需要从阿里云的oss下载chilloutMix了,而且大部分用户一般接触这个插件,基本上都安装过ControlNet了,也可以在外层保留ControlNet的模型自定义路径,这样也不需要重复去下载模型了,现在把底模和各个ControlNet都下载,既浪费作者的带宽,也浪费用户的存储空间。
抱歉,我们其实去检索了controlnet 模型所在的路径,如果没有文件才会开始下载,我们可能不太了解当前用户的情况,现在是一般把这些模型不放在models/ControlNet中吗?
其实这个下载主要是为了方便,因为中间有很多执行流程,为了防止同学们报错。
同步一下当前的情况,方便开发者理解
-
目前底模的存储路径一般是处于
__SD_INSTALL_DIR_\models\Stable-diffusion
没错,但是会出现两个通用问题:
1-1. 一个是用户因为下载模型太多,对各类模型做子文件夹分类,比如__SD_INSTALL_DIR_\models\Stable-diffusion\realtisc\ChilloutMix_Ni.ckpt
之类的二级子目录;
1-2. 另外一个原因是大家下载的大模型可能是该模型的其他版本,比如 chilloutMix-Ni 等; -
ControlNet 的存储目录大部分位于
__SD_INSTALL_DIR_\extensions\sd-webui-controlnet\models
目录中,并非上述目录。
from sd-webui-easyphoto.
我也指定了路径,下载了好几个小时,现在打开还是爆显存,不知如何是好呢
from sd-webui-easyphoto.
在使用EasyPhoto的时候,建议可以保留入口,把用户基于Lora训练的底模路径填入,这样就不需要从阿里云的oss下载chilloutMix了,而且大部分用户一般接触这个插件,基本上都安装过ControlNet了,也可以在外层保留ControlNet的模型自定义路径,这样也不需要重复去下载模型了,现在把底模和各个ControlNet都下载,既浪费作者的带宽,也浪费用户的存储空间。
抱歉,我们其实去检索了controlnet 模型所在的路径,如果没有文件才会开始下载,我们可能不太了解当前用户的情况,现在是一般把这些模型不放在models/ControlNet中吗?
其实这个下载主要是为了方便,因为中间有很多执行流程,为了防止同学们报错。
from sd-webui-easyphoto.
我也指定了路径,下载了好几个小时,现在打开还是爆显存,不知如何是好呢
莫急,我和你一样是两张3060,肯定是能跑通的,我看你之前的报错,我分析下来应该是因为输入图片分辨率非常大,是这样吗?
from sd-webui-easyphoto.
在使用EasyPhoto的时候,建议可以保留入口,把用户基于Lora训练的底模路径填入,这样就不需要从阿里云的oss下载chilloutMix了,而且大部分用户一般接触这个插件,基本上都安装过ControlNet了,也可以在外层保留ControlNet的模型自定义路径,这样也不需要重复去下载模型了,现在把底模和各个ControlNet都下载,既浪费作者的带宽,也浪费用户的存储空间。
自定义底模确实可以考虑开放出来,这个我需要和同事商量一下以怎样的形式。
from sd-webui-easyphoto.
controlnet的模型一般都在 \extensions\sd-webui-controlnet\models 下面吧。
from sd-webui-easyphoto.
理解了,我们已经知道问题了,其实就是原图太大导致超分爆显存,我们会在下个版本做个更新,如果现在试用的话可以把这行进行删除。
https://github.com/aigc-apps/sd-webui-EasyPhoto/blob/main/scripts/preprocess.py
123行开始。
# 根据质量得分、图像大小去判断哪些图片进行codeformer
if (selected_scores[index] < 0.60 or np.shape(sub_image)[0] < 512 or np.shape(sub_image)[1] < 512) and codeformer_num < max_codeformer_num:
sub_image = Image.fromarray(cv2.cvtColor(portrait_enhancement(sub_image)[OutputKeys.OUTPUT_IMG], cv2.COLOR_BGR2RGB))
codeformer_num += 1
from sd-webui-easyphoto.
不好意思,你的启动命令是什么
from sd-webui-easyphoto.
先执行set CUDA_VISIBLE_DEVICES=0
from sd-webui-easyphoto.
先执行set CUDA_VISIBLE_DEVICES=0
谢谢,终于可以跑通了,效果是有点像,如果有参数指引,多炼几个会好些。
from sd-webui-easyphoto.
先执行set CUDA_VISIBLE_DEVICES=0
谢谢,终于可以跑通了,效果是有点像,如果有参数指引,多炼几个会好些。
好,感谢支持,后续还有更多的优化,效果会更好一些,还没有merge hh
from sd-webui-easyphoto.
@bubbliiiing @newstargo
OOM 问题已通过PR20合入,大家可以看看是否还有这个问题。在完全修复这些建议之前我们会保留该ISSUE
- 考虑自定义底模路径
- 添加export 限定单卡
- enhance OOM 【已修复】
from sd-webui-easyphoto.
@LaowangNineTT @newstargo 我们试图在这个PR 引入自定义底模,并在测试中发现可以在训练完后直接更换适配新的底模也能有很好的效果 https://github.com/aigc-apps/sd-webui-EasyPhoto/pulls
from sd-webui-easyphoto.
from sd-webui-easyphoto.
在使用EasyPhoto的时候,建议可以保留入口,把用户基于Lora训练的底模路径填入,这样就不需要从阿里云的oss下载chilloutMix了,而且大部分用户一般接触这个插件,基本上都安装过ControlNet了,也可以在外层保留ControlNet的模型自定义路径,这样也不需要重复去下载模型了,现在把底模和各个ControlNet都下载,既浪费作者的带宽,也浪费用户的存储空间。
抱歉,我们其实去检索了controlnet 模型所在的路径,如果没有文件才会开始下载,我们可能不太了解当前用户的情况,现在是一般把这些模型不放在models/ControlNet中吗?
其实这个下载主要是为了方便,因为中间有很多执行流程,为了防止同学们报错。
我这里默认 ControlNet 模型在 extensions/sd-webui-controlnet/models 下。
from sd-webui-easyphoto.
@bubbliiiing 那我们是不是可以添加一个列表,默认去这些路径里面找模型control or base,然后列表让开源同学们不断补充
DONE with PR 50
from sd-webui-easyphoto.
Related Issues (20)
- [Bug]: 生成图片的时候经常被kill,但是gpu,显存,内存都没有达到
- How to call the virtual try on function in the SD webui easyPhoto plugin's API? How should parameters be transmitted?[Bug]:
- [Bug]: Failed to obtain Lora after training, please check the training process.没有发现具体的错误
- [Bug]: TypeError: '<' not supported between instances of 'int' and 'NoneType' HOT 1
- [Bug]: 我的训练无法保存,non-zero错误 HOT 1
- Template 1 error: Error info is list index out of range. HOT 2
- EasyPhoto - Template 1 error: Error info is too many indices for array: array is 1-dimensional, but 2 were indexed, skip it. HOT 5
- Please tell me how to create a template image that can be used with Photo2Photo.
- _face_id_retinaface_box = _face_id_retinaface_boxes[0] IndexError: index 0 is out of bounds for axis 0 with size 0 How to fix it HOT 1
- questions
- [Bug]: 首次安装完成后,重启sd时 log中报错
- [Bug]MAC M2安装最新版本,重启报错,看不到插件 HOT 6
- docker安装完之后,找不到try-on HOT 1
- easy photo generate photo error,show error as below HOT 5
- [Bug]: Cannot install EasyPhoto in Mac with M3 chip HOT 1
- [question] module(None) not found in supported modules. (type=value_error).Virtual Try On Use error.虚拟换衣使用出错 HOT 5
- KeyError: "ImageFaceFusionPipeline: KeyError('image-face-fusion is already registered in models[image-face-fusion]')"
- My V2V is very unclear, there are many light colored mosaics
- [Bug]: Image with two faces. Template 1 error: Error info is index 0 is out of bounds for axis 0 with size 0, skip it.
- 配置后不使用本地模型
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sd-webui-easyphoto.