Git Product home page Git Product logo

Comments (12)

gasvn avatar gasvn commented on July 18, 2024 1

Great idea. We will try it, or the pull request from your side is also very welcomed.

from editanything.

AmanKishore avatar AmanKishore commented on July 18, 2024 1

This would be wild!

from editanything.

alelordelo avatar alelordelo commented on July 18, 2024

Great idea. We will try it, or the pull request from your side is also very welcomed.

Would totally contribute if I could, but I come from Swift/iOS world, and super limited with Python : /

from editanything.

alelordelo avatar alelordelo commented on July 18, 2024

Hi again @gasvn!

I saw you added this:
Generate semantic labels for each SAM mask.
python sam2semantic.py

would it be possible to train the ControlNet with those segmentation labels for each prompt?

from editanything.

gasvn avatar gasvn commented on July 18, 2024

That's possible. We are working on it. For now, you can try our new gradio demo. It combines the inpainting and edit anything, so it can achieve most of the editing ability on a part under the guidance of text prompt.
https://huggingface.co/spaces/shgao/EditAnything

from editanything.

alelordelo avatar alelordelo commented on July 18, 2024

thanks @gasvn , just tested your demo, super cool! looking forward to test multi prompt train/inference! ; )

from editanything.

alelordelo avatar alelordelo commented on July 18, 2024

Hi @gasvn, any news on the segmented training? : )

from editanything.

gasvn avatar gasvn commented on July 18, 2024

Hi @gasvn, any news on the segmented training? : )
There is a concern about segmented training. I am afraid that lacking training data would makes the model collapse. So the segment with text prompt would be an important issue. For now, I am using blip2 generated text prompt. But I am not sure if this is suitable for stable diffusion. Any suggestions? Thanks~

from editanything.

alelordelo avatar alelordelo commented on July 18, 2024

I think the dataset would be:

Input image
Segmented masks
Prompt for each segmented mask (either manual label or automatically generated by OpenCLIP, Blip, etc)

then you have both text, image and segmentation as conditioning.

I have a dataset that like this that I could test. Do you see how I could test to train a model with this kind of setup?

from editanything.

alelordelo avatar alelordelo commented on July 18, 2024

Hi @gasvn, I did some research on this...

Abut "segment with text prompt" we could do a test with JSON COCO dataset:
https://cocodataset.org/#home

I want to give this. shot, but not sure if its currently possible to train with JSON -> image pairs?

from editanything.

gasvn avatar gasvn commented on July 18, 2024

training with text JSON -> image pairs is possible. I think it's needed to slightly change the controlnet to make each segment region has a unique text prompt instead of using just global text prompt.

from editanything.

alelordelo avatar alelordelo commented on July 18, 2024

hi @gasvn , any plans for multiple prompt per mask segment ?

from editanything.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.