Giter Club home page Giter Club logo

sgdiff's Introduction

sgdiff's People

Contributors

maelic avatar yangling0818 avatar zerinhwang03 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sgdiff's Issues

About Masked Contrastive Pre-Training

Dear authors,
Thanks for sharing this amazing work, are you planning to also share the training code for the Masked Contrastive Pre-Training part? This would be very helpful to correctly reproduce the full approach.
Thank you

VG Links broken, Hardware information

Hi, thank you for your work. While testing your model, I recognized some VG links in scripts/download_vg.sh are not working. These are okay for me:

wget https://homes.cs.washington.edu/~ranjay/visualgenome/data/dataset/objects.json.zip -O $VG_DIR/objects.json.zip
wget https://homes.cs.washington.edu/~ranjay/visualgenome/data/dataset/attributes.json.zip -O $VG_DIR/attributes.json.zip
wget https://homes.cs.washington.edu/~ranjay/visualgenome/data/dataset/relationships.json.zip -O $VG_DIR/relationships.json.zip
wget https://homes.cs.washington.edu/~ranjay/visualgenome/data/dataset/object_alias.txt -O $VG_DIR/object_alias.txt
wget https://homes.cs.washington.edu/~ranjay/visualgenome/data/dataset/relationship_alias.txt -O $VG_DIR/relationship_alias.txt
wget https://homes.cs.washington.edu/~ranjay/visualgenome/data/dataset/image_data.json.zip -O $VG_DIR/image_data.json.zip

I tried with GPUs of 3GB, 16GB and 24GB memory. Only 24 GB could run the training. Maybe this information is worth to mention in the readme.

About Variational Autoencoder Pre-Training

Dear authors,
Thanks for the excellent work! About VQVAE for embedding image to latent, you have provided the pre-trained model. Could you please share the training and testing code and instruction for the VQVAE part? In my understanding, the VQVAE part determines the upper bound of the image generation quality. It would be very helpful for me to train the whole model from scratch.
Thanks a lot!

About VG data preprocess

When I run preprocess.py, I get the vocab.json file, which looks like this. It shows that the number of objects is 260, not 179 as stated in the paper, and the number of relations is 66, not 46. I think it may be because object_alias.txt and relationships_alias.txt are downloaded from other links, resulting in the wrong number of objects and relationships. We would appreciate it if you could provide a download of these two files, or provide the pre-processed.h5 files directly.
ๅฑๅน•ๆˆชๅ›พ 2023-11-29 194750

Testing problems: pretrained model fails to load

I am trying to run the inference code (sampler) and the loading of the pretrained models fails. I tried some of the suggestions from another submitted issue, but run into different error with the vq-f8 model:

LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 395.77 M params.
Keeping EMAs of 630.
making attention of type 'vanilla' with 512 in_channels
making attention of type 'vanilla' with 512 in_channels
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
making attention of type 'vanilla' with 512 in_channels
making attention of type 'vanilla' with 512 in_channels
making attention of type 'vanilla' with 512 in_channels
Restored from pretrained/vq-f8-model.ckpt with 0 missing and 49 unexpected keys
_pickle.UnpicklingError: invalid load key, '<'.

Can you suggest what to do? I am using the code available as of today.

scene graph encoding choice

From paper, it seems that scene graph is in form of text triplet and you encode the text triplet using Graph encoder. Is my assumption true or image features is also used for Scene graph encoding? if yes what kind of graph model you are using to encode textual scene graph information. From code it seems like BERT is used for processing of text in the scene graph.

about the number of training epoch

I have been training the model for more than a day, and it has reached the 27th epoch without stopping. Does the training automatically stop when using trainer.py? If it doesn't stop automatically, how many epochs should I train it for? Thank you!

Taming version and testing problems

Which version of Taming-transformers should be installed? Is model.ckpt with sip_vg enough for running the test code?

I set line.22 in test_set_ddim_sampler.py and line.44 in config_vg as pretrained/model.ckpt. But the error info shows that the model and the checkpoints do not match.

About Evaluation

Dear authors,

After training the model for 335 epochs with image size 256,256 and performing evaluation using the testset_ddim_sampler.py script, I managed to obtain an FID of 23.86 on the test set of Visual Genome. This is better than the 26 reported in the paper, could you please provide details on how you evaluate your work? I used the pytorch-fid project for evaluation.

image

Test custom scene graph

Hi๏ผŒ Ling Yang
If I want to test generating an image from a custom scene graph, What data should I need to prepare and which part of the code should I change?

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.