Git Product home page Git Product logo

image-to-image's Introduction

Sample App with an image-to-image flow using Bing Search 🔍, Azure AI Vision 👁️ and DALL·E 2 🎨 from Azure OpenAI

"Flow for this use case"

There are several ways to accomplish the image-to-image pattern. Here I explore the following flow where a caption is extracted from the source image and then the caption is injected into a prompt to generate the target image:

  • 🔍 Bing Search retrieves images based on a user query (this step may be replaced with a custom image upload)
  • 👁️ Azure AI Vision analyzes the image and detects recognizable attributes
  • 🎨 DALL·E 2 from Azure OpenAI generates a new image with a prompt composed by the detected attributes and instructions such as clipart

Prerequisites

  • Node.js 8 or later
  • A valid subscription key for the Bing Search APIs
  • A valid subscription key for the Azure AI Vision APIs
  • A valid subscription key for the Azure OpenAI APIs with DALL·E 2 enabled

Get started

  1. Clone the repository.

  2. Navigate to the cloned directory.

  3. Install Express.js: npm install

  4. Run the sample app: node app.js

  5. Navigate to the provided URL and have fun doing image-to-image with Bing Search, AI Vision, and DALL·E 2!

Demo

"Flow for this use case"

image-to-image's People

Contributors

vieiraae avatar

Watchers

 avatar

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.