Comments (6)
@leejet I believe that is done by adding noise only to the white part of the latent image, and in the decoder, keeping the pixels of the black part unchanged. However, the image-to-image mode is also causing quality issues, the images appear overly smoothed, blurred and distorted. Even with a strength setting of 0.05, the final image bears little resemblance to the original.
from stable-diffusion.cpp.
@leejet I believe that is done by adding noise only to the white part of the latent image, and in the decoder, keeping the pixels of the black part unchanged. However, the image-to-image mode is also causing quality issues, the images appear overly smoothed, blurred and distorted. Even with a strength setting of 0.05, the final image bears little resemblance to the original.
It seems that img2img has some issues and the results are inconsistent with sd-webui.
from stable-diffusion.cpp.
@leejet I think we should first solve that problem before considering adding the inpainting feature.
Inpainting models require a latent image with 9 input channels, 4 for the usual channels, 4 more for the latent noise with the applied mask, and 1 for the mask. There may also be a need for a slight modification in the autoencoder, but I will continue researching.
from stable-diffusion.cpp.
@leejet I think we should first solve that problem before considering adding the inpainting feature.
Inpainting models require a latent image with 9 input channels, 4 for the usual channels, 4 more for the latent noise with the applied mask, and 1 for the mask. There may also be a need for a slight modification in the autoencoder, but I will continue researching.
Yes, the first step is to fit the inpaint model. We can determine whether the weight currently loaded is the weight of the inpaint model according to the shape of the weight.
from stable-diffusion.cpp.
hope someone makes a cute gui for it as inpainting will be much easier to just mask it through the gui, not to mention cpp with gui will be great
from stable-diffusion.cpp.
@FSSRepo i see u r working on a webui [cant wait for it], if possible please add outpainting as well, it will be great to have it, also i have a question, i have dark reader on my browser, will the dark reader make ur webui's background dark too? as working with white background in the night is very hard imo
from stable-diffusion.cpp.
Related Issues (20)
- Stable Diffusion with LCM on Mac OS(Metal) produces black image HOT 1
- Metal backend doesn't gain a speed bonus from running with half precision HOT 1
- Problems with function "ggml_quantize_chunk" on M1 in ggml.c HOT 1
- Enhance:free_params_immediately can be infer again HOT 4
- Support for splitting buffers M1/M2/M3
- Enhance: can set options without load model again. HOT 2
- support for bigger seeds and token
- unsupported dtype 'F64' HOT 10
- lora can not free memory HOT 1
- IP Adapter Direct ML Errors Controlnet 1.1.431 and UP HOT 1
- "CUDA error" when set resolution higher than 1280 x 1280 HOT 5
- Support Segmind Stable Diffusion 1B HOT 2
- rocBLAS error: {...} No such file or directory for GPU arch : gfx1031 HOT 6
- In lora.hpp miss ggml_free(ctx0);
- Will Controlnet be supported in the future? HOT 2
- VAE-Tiling seems to be always enabled in the C-API of 36ec16a HOT 1
- How do specify the upscale size? HOT 2
- to do list remove the winograd conv 2d
- Getting always black image using XL models HOT 2
- Is there a way to use controlnet inpaint?
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 stable-diffusion.cpp.