Git Product home page Git Product logo

referring-manipulation's Introduction

Referring Object Manipulation

[Paper(TBU)] [Project]

This is the authors' code release for:

Referring Object Manipulation of Natural Images using Conditional Classifier-free Guidance

Myungsub Choi

teaser-image

Disclaimer: This is not an officially supported Google product.

Setup

  1. Clone this repository:

    git clone https://github.com/google/referring-manipulation.git
  2. Install a Conda environment with all dependencies:

    cd referring-manipulation
    conda env create -f environment.yml
    conda activate referman

Tips:

  • You can find the PyTorch, cuDNN, and CUDA versions in environment.yml.

Running the Code

Run the main script: ./run.sh

You can find the sample inference options in run.sh and the full options list in third_party/blended_diffusion/optimization/arguments.py.

To test with your own examples, change refer_prompt, target_prompt, and the input_image in run.sh. The output files will be saved in output_path.

The main part of the code lies in image_editor_glide.py. Please check edit_image_by_prompt function where the referring segmentation and image editing is performed sequentially.

architecture

Issues or Questions?

If the issue is code-related, please open an issue here.

For questions, please also consider opening an issue as it may benefit future reader. Otherwise, email Myungsub Choi.

Acknowledgments

This repository builds upon the MDETR referring image segmentation repository, the GLIDE repository, and the Blended-Diffusion repository. We thank the authors for making their code publicly available.

Changelog

  • 04/22/2022: Initial release.

referring-manipulation's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

referring-manipulation's Issues

Paper's PDF link

Dear author, can you release a pdf link or BibTeX of this paper?

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.