Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oh c’mon you guys... #2

Open
kcrosley-leisurelabs opened this issue Jun 18, 2020 · 15 comments
Open

Oh c’mon you guys... #2

kcrosley-leisurelabs opened this issue Jun 18, 2020 · 15 comments

Comments

@kcrosley-leisurelabs
Copy link

Colab notebook?

(OpenAI’s dedication to crap documentation never ceases to amaze, amirite?)

@Kreijstal
Copy link

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

@JonathanFly
Copy link

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

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

@methescripter
Copy link

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

@JonathanFly
Copy link

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

@Kreijstal
Copy link

backlink huggingface/transformers#5088

@apeguero1
Copy link

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

colab

@JonathanFly
Copy link

Thanks @apeguero1 you improved it a lot.

@apeguero1
Copy link

No problem @JonathanFly glad to help (:

@dryn27
Copy link

dryn27 commented Sep 2, 2020

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

@apeguero1
Copy link

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

@Randy-H0
Copy link

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?

@eyalbetzalel
Copy link

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

@apeguero1
Copy link

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

@proudbatdan
Copy link

proudbatdan commented Oct 12, 2020 via email

@apeguero1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants