Comments (15)
Hey guys, I modified @JonathanFly 's notebook to support conditional input such as cropped images.
from image-gpt.
Here you go. Just does sampling, I didn't implement image completion.
https://gist.github.com/JonathanFly/eb61f0d31680e1b890f3a53fbaf31384
from image-gpt.
@proudbatdan you might be signed up to watch this repo for any activity. You can always disable this.
from image-gpt.
Hey guys, I modified @JonathanFly 's notebook to support conditional input such as cropped images.
Hi, Is there any way to sample with a higher resolution?
from image-gpt.
No problem @JonathanFly glad to help (:
from image-gpt.
from image-gpt.
I'd like a colab notebook too but it's probably too much to ask.
from image-gpt.
@JonathanFly on the codelab How can I pass images as input? thanks
from image-gpt.
@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.
backlink huggingface/transformers#5088
from image-gpt.
Thanks @apeguero1 you improved it a lot.
from image-gpt.
@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.
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.
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.
@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)
- What are the requirements for Inference of the pre trainned model? HOT 5
- As detailed in the paper, it generates image one pixel at a time. Won't that make it slow ? HOT 1
- size mismatch for centroids: copying a param with shape torch.Size([512, 3]) from checkpoint, the shape in current model is torch.Size([16, 3]). HOT 1
- [Figure 3] - Linear Probe Accuracy HOT 1
- Pre-trained models for Bert Objective? HOT 1
- HELPP ! ImportError: cannot import name 'function'
- learning rate for pretraining
- BERT objective on google colab
- It won’t download correctly.
- nft
- Hi, this might be related to [midjourney 】does it matter?
- some question HOT 1
- Naruto
- Dockerfile HOT 7
- How to run in windows or colab pro? HOT 2
- Model runs faster with Hugging Face Transformers HOT 11
- A quick question: the provided code does not include model training? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image-gpt.