question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I have trained DiscreteVEE on 128x128 FFHQ dataset. using this configration:

vae = DiscreteVAE(
    num_layers = 2,
    num_tokens = 4096,
    dim = 1024,
    hidden_dim = 256
)

Here are the results after 3 epochs (top original, bottom reconstructed):

image image image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:18
  • Comments:57 (27 by maintainers)

github_iconTop GitHub Comments

11reactions
htoyrylacommented, Jan 11, 2021

I have added to my repo a script to generate images from text input with a trained VAE and DALLE https://github.com/htoyryla/DALLE-pytorch/blob/main/genDALLE.py

Using my models trained with landscapes, results at least look like landscapes. The semantics then do not really match, mainly because the generated captions are not really descriptive of the content.

Images generated during training Dalle:

dallevae-cdim256_epoch_227

Image generated from text input:

gendallevae-cdim256_epoch_220-1610364710

8reactions
htoyrylacommented, Jan 10, 2021

I’ve just put together quick and dirty code to train dalle. Not directly usable for anyone, I am afraid. I am using a small dataset of 2000+ landscapes, for which I automatically generated captions into a text files. This script reads the image filenames and captions from a text file, builds a vocabulary and uses it to convert text tokens into numeric.

There is not even a proper pytorch dataset, just quick code iterate through the data. So far, it appears to be learning. Loss is decreasing and the generated images are starting to rougly resemble landscapes. dallevae-cdim256_epoch_20

https://github.com/htoyryla/DALLE-pytorch/blob/main/trainDALLE.py

PS. The vocabulary class is missing from my repo. My code uses one from this page https://www.kdnuggets.com/2019/11/create-vocabulary-nlp-tasks-python.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

RESULTS - Raise Your Voice to End Poverty
RESULTS is a movement of passionate, committed everyday people who use their voices to influence political decisions that will bring an end to...
Read more >
Result Definition & Meaning - Merriam-Webster
1 · to come about as an effect, consequence, or conclusion. disease results from infection ; 2 · to have as an effect....
Read more >
Results (2015) - IMDb
 Results stars Guy Pearce, Cobie Smulders, and Kevin Corrigan. Pearce and Smulders play personal trainers for an up and coming gym called...
Read more >
RESULT | definition in the Cambridge English Dictionary
result meaning: 1. something that happens or exists because of something else: 2. because of something: 3. a good…. Learn more.
Read more >
RESULTS (Official Movie Site) - Magnolia Pictures
A love triangle develops out of a momentous trip to the gym in Andrew Bujalski's hilarious romantic comedy, RESULTS. Danny [Kevin Corrigan] is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found