Code Monkey home page Code Monkey logo

art-rethinking-ai's Introduction

art-rethinking-ai

This project uses OpenAI's APIs to recreate famous paintings through an image-to-text-to-image process.

The goal is to evaluate how well AI can analyze and recreate paintings without explicitly naming the original title or artist.

By providing an image of a famous painting (e.g., the Mona Lisa), OpenAI's APIs generate a detailed description of the artwork, including the objects and colors depicted.

Using this description, the project then prompts the OpenAI APIs to produce a new, original painting.

The title and artist of the original masterpiece are intentionally omitted.

Examples

These are some examples of artworks we have created with this project:

ORIGINAL NEW

Usage

You can try this project locally.

Requirements

  • Node >= 18: you can download it here or using a Node Version Manager;
  • an OpenAI's account: you can create it here;
  • at least 5$ in your OpenAI's wallet: you can charge it here;
  • an OpenAI API key: you can create it here;

Get started

Once cloned this repository, install its dependencies:

npm i

Create a file called .env.local in the root folder of the repository, and add your OpenAI API key here:

NEXT_PUBLIC_OPENAI_API_KEY=(openai-api-key-here)

Now you can run the project

npm run dev

And test it on http://localhost:3000.

Contribute

To contribute to this project, you can follow the instructions reported in Usage above.

The technologies used in this projects:

TODO

  • Add the possibility to search a painting (e.g. using WikiArt APIs);
  • improve the UI components (migrate to Bulma?).

art-rethinking-ai's People

Contributors

aureliome avatar

Stargazers

 avatar  avatar  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.