Code Monkey home page Code Monkey logo

Comments (15)

apeguero1 avatar apeguero1 commented on August 25, 2024 12

Hey guys, I modified @JonathanFly 's notebook to support conditional input such as cropped images.

colab

from image-gpt.

JonathanFly avatar JonathanFly commented on August 25, 2024 6

Here you go. Just does sampling, I didn't implement image completion.

https://gist.github.com/JonathanFly/eb61f0d31680e1b890f3a53fbaf31384

from image-gpt.

apeguero1 avatar apeguero1 commented on August 25, 2024 4

@proudbatdan you might be signed up to watch this repo for any activity. You can always disable this.

from image-gpt.

Randy-H0 avatar Randy-H0 commented on August 25, 2024 2

Hey guys, I modified @JonathanFly 's notebook to support conditional input such as cropped images.

colab

Hi, Is there any way to sample with a higher resolution?

from image-gpt.

apeguero1 avatar apeguero1 commented on August 25, 2024 1

No problem @JonathanFly glad to help (:

from image-gpt.

proudbatdan avatar proudbatdan commented on August 25, 2024 1

from image-gpt.

Kreijstal avatar Kreijstal commented on August 25, 2024

I'd like a colab notebook too but it's probably too much to ask.

from image-gpt.

methescripter avatar methescripter commented on August 25, 2024

@JonathanFly on the codelab How can I pass images as input? thanks

from image-gpt.

JonathanFly avatar JonathanFly commented on August 25, 2024

@JonathanFly on the codelab How can I pass images as input? thanks

That wasn't built in to the code released. It shouldn't be too hard to add but someone will have to do it. They do provide an encoding function for their cluster palette. I'll probably add it if I play more with this in the future.

from image-gpt.

Kreijstal avatar Kreijstal commented on August 25, 2024

backlink huggingface/transformers#5088

from image-gpt.

JonathanFly avatar JonathanFly commented on August 25, 2024

Thanks @apeguero1 you improved it a lot.

from image-gpt.

dryn27 avatar dryn27 commented on August 25, 2024

@apeguero1 I tried Runtime>Run All, but it doesn't work. GPU is not the problem, and I cannot understand what the problem is. On "Functions from run.py", on "import tensorflow as tf", it shows an error and it says:


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

from image-gpt.

apeguero1 avatar apeguero1 commented on August 25, 2024

Thanks for pointing this out @dryn27. Somehow bumping up to tensorflow version 1.15.0 fixes the import error. Just updated the colab.

from image-gpt.

eyalbetzalel avatar eyalbetzalel commented on August 25, 2024

@apeguero1

Hi! thanks for the colab with the conditional sampling.

is it possible to generate samples from a specific class from ImageNet?

Generating photos of cars for example.

from image-gpt.

apeguero1 avatar apeguero1 commented on August 25, 2024

@eyalbetzalel hmm... in theory you could just finetune the whole model on a subset of the images with a particular label. Haven't tried this yet though.

Alternatively, Maybe you could make an adapter per class starting with the HF model made here which would seem to be more efficient.

Ideally, there would be a way to train a single slightly modified architecture of the model that just adds a learned class conditional embedding to the token and positional embeddings. That would be pretty cool.

from image-gpt.

Related Issues (18)

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.