Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望添加打包可移植选项 #154

Closed
yunwuhai opened this issue Oct 10, 2023 · 3 comments
Closed

希望添加打包可移植选项 #154

yunwuhai opened this issue Oct 10, 2023 · 3 comments

Comments

@yunwuhai
Copy link

目前的插件内似乎并没有合理的可移植选项,即当在A电脑训练出模型后,将Lora模型导入B电脑后,并不能直接使用本插件。希望能有一种比较方便或通用的方式,能够比较快速打包本插件所需的所有数据。

@yunkchen
Copy link
Collaborator

项目依赖的模型比较多,如果B电脑是个新环境,可以把整个stable-diffusion-webui目录迁移过去;
如果B电脑已经有webui,那可以把A电脑下面extension和models 拷贝过去

@wuziheng
Copy link
Collaborator

如果你需要的是在两个都部署好可以运行EasyPhoto的环境下迁移某个指定用户的数据例如Lora,参考图片,这个是可以做到的,参考这个函数

def check_id_valid(user_id, user_id_outpath_samples, models_path):

如果是希望整体运行环境的迁移,参考@yunkchen的答案。

@yunwuhai
Copy link
Author

#154 (comment)

我参考了这个方法,然后将‘outputs/easyphoto-user-id-infos’中的文件打包进行了迁移,同时将‘models\Lora’文件也进行了迁移(直接用'easyphoto-user-id-infos'里面存储的safetensors似乎也是一样的),测试可以使用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants