GNU General Public License v3.0

项目介绍

mlinmg/ComfyUI-LaMA-Preprocessor 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 GNU General Public License v3.0 许可证,目前获得 67 个 Star、8 次 Fork。

仓库全名
mlinmg/ComfyUI-LaMA-Preprocessor
开源许可证
GNU General Public License v3.0
Star 数
67
Fork 数
8

README 摘要

⚠️⚠️⚠️ Due to lack of bandwidth this repo is going archived in favor of actually mantained repos like comfyui-inpaint-nodes ⚠️⚠️⚠️ LaMa Preprocessor Currenly only supports NVIDIA This preprocessor finally enable users to generate coherent inpaint and outpaint prompt-free For inpainting tasks, it's recommended to use the 'outpaint' function. Although the 'inpaint' function is still in the development phase, the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

ComfyUI-LaMA-Preprocessor 用什么语言开发?

主要使用 Python 编写,采用 GNU General Public License v3.0 许可证,目前有 67 个 Star。

ComfyUI-LaMA-Preprocessor 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 ComfyUI-LaMA-Preprocessor 的源码?

可以直接克隆仓库:git clone https://github.com/mlinmg/ComfyUI-LaMA-Preprocessor.git,默认分支为 main;安装与运行步骤见仓库 README。

ComfyUI-LaMA-Preprocessor 最近还在维护吗?

仓库最近一次更新为 2024年4月12日,当前没有未关闭的 Issue;Star 数为 67,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A LaMa preprocessor for ComfyUi

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
84
价值分
42
活跃状态
归档

语言占比

Python

README

⚠️⚠️⚠️ Due to lack of bandwidth this repo is going archived in favor of actually mantained repos like comfyui-inpaint-nodes ⚠️⚠️⚠️

LaMa Preprocessor

Currenly only supports NVIDIA

This preprocessor finally enable users to generate coherent inpaint and outpaint prompt-free

For inpainting tasks, it’s recommended to use the ‘outpaint’ function. Although the ‘inpaint’ function is still in the development phase, the results from the ‘outpaint’ function remain quite satisfactory.

The best results are given on landscapes, good results can still be achieved in drawings by lowering the controlnet end percentage to 0.7-0.8

Installation

  1. Manager installation (suggested): be sure to have ComfyUi Manager installed, then just search for lama preprocessor

  2. Manual Installation: clone this repo inside the custom_nodes folder

A LaMa prerocessor for ComfyUi

This is a simple workflow example.To use this, download workflows/workflow_lama.json and then drop it in a ComfyUI tab


This are some non cherry picked results, all obtained starting from this image startingImage


ComfyUI_01581_ ComfyUI_01580_ ComfyUI_01579_ ComfyUI_01578_

You can find the processor in image/preprocessors

Contributing

Everyone is invited to contribute, my school/work schedule seriously limit the time I can spend improving this project is any help is welcome.

If you would like to help to the development of this repo there are some missing features that still need to be implemented:

  • An unusual behavior is observed when providing an empty prompt to the drawing/cartoon outpainting system. Interestingly, the results appear to be significantly better when the two conditionings are prompted with “positive” and “negative” respectively. This is probably beacause when prompted with a blank prompt, the controlnet adds too much weights.
  • This workflow exibits some image darkening/color shifting, this should be further investigated in order to apply a color fix method
  • More consistent results. One of the problem might be in this function it seems that sometimes the image does not match the mask and if you pass this image to the LaMa model it make a noisy greyish mess this has been ruled out since the auto1111 preprocess gives approximately the same image as in comfyui. bit the consistency problem remain and the results are really different when compared to the automatic1111 repo. for anyone interested in contributing I have already inplemented a soft injection mechanism, you should start from here to see where it goes south. One of the problems I have seen is the difference in the clip embeddings
  • soft injection,since I cannot understand how to set different weights inside the sampling steps in comfyUI. At the moment the control seems too high all around, and this cause artifacts in more complex in/outpaint while I’ve been able to succesfully implement this, it seems to lower the weights of controlnet too much, using a soft injection will lead to broken results
  • LaMa preprocessing node
  • Basic workflow

Thanks

This code is inspired by Mikubill/sd-webui-controlnet

评论

暂无评论