Comments (8)
Hello, I want to edit image and don't change the mask rigion. If without any UI, which python file should I read.
I just change sam2Image.py by inputing a single point to segment-anything model, but the rigion still changed(as I want to use like inpaint). Can you teach me about this , thank you!
from editanything.
Hi, the sam2edit is renamed to editany. The class EditAnythingLoraModel can be used without UI. If you want to keep the unmasked region, you need to set the ‘mask_image’
from editanything.
Thank you! It shows inpaint can only used with SD1.5 , can I use sd2.1 to do this?
from editanything.
You can use sd2.1 by the following way. Due to the SD2.1 uses different inpainting method, it cannot support lora model for now.
model = EditAnythingLoraModel(
base_model_path="stabilityai/stable-diffusion-2",
controlmodel_name="LAION Pretrained(v0-4)-SD21",
extra_inpaint=False,
lora_model_path=None,
use_blip=True)
from editanything.
ok,but when using sd1.5 and LAION Pretrained SD1.5,I get an error: RuntimeError: mat1 and mat2 shapes cannot be multiplied (66x768 and 1024x320)_
and when I use sd2.1 and LAION Pretrained SD2.1(extra_inpaint = false) , I get a result like this(want to redraw the car)
By the way ,What's the parameter extra_inpaint means. thankyou for your reply.
from editanything.
My target is to replace the car according to my prompt(without blip), here is the result on your website ,it‘s great , What should I do to achieve this?I call model.procee but I failed.
from editanything.
Sorry,I tried successfully on SD1.5,The error I mentioned RuntimeError: mat1 and mat2 shapes cannot be multiplied (66x768 and 1024x320)_
is because I choose a wrong path of controlNet , 768 is embedding size of SD1.5 while 1024 is SD2.1. It's my mistake..
from editanything.
@SkyCol how/where exactly did you fix the RuntimeError?
from editanything.
Related Issues (20)
- sam2image.py can run on the gui,but when i click run,the html is always circling, and there is no log in the script HOT 1
- Filenotfound error HOT 1
- AttributeError: module 'keras.backend' has no attribute 'is_tensor' HOT 2
- serializer = serializing.COMPONENT_MAPPING[type]() KeyError: 'dataset' HOT 1
- 我部署时怎么提示app.py和editany_lora等文件里好多代码都是错的 HOT 1
- Colors for SAM mask based ControlNet during training
- How to install this project in a1111 sd webui?
- App.py run error
- fix demo HOT 2
- why should generate the mask again? HOT 1
- Unable to reproduce the dog's head example when using the same example image
- Replace pytorch 2.1+cu12.1 is ok? I found now version is 1.13, is too low
- Are we going to support SDXL-Turbo? HOT 2
- Weights creation HOT 3
- Has the author of this repository given up? HOT 3
- Which scripts if for Haircut editing? HOT 2
- ValueError at runtime HOT 2
- What is TEXT_ENCODER_TARGET_MODULES in utils/train_dreambooth_lora_inpaint.py HOT 1
- Why there is no strength parameter for StableDiffusionInpaintPipleline? HOT 3
- How to train text encoder for dreambooth inpaint lora?
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 editanything.