Skip to content

inference erro #3

Open
Open

Description

@Winnie202

Thanks for your code contribution. Do I have to resize the picture to 256 when I use your pretrained checkpoint for the first stage of inference? My image size is 512*512 or other size, what should I do if I want to reconstruction it to the original size?

2023-06-12 18-33-19屏幕截图

Activity

  1. Corleone-Huang commented on Jun 12, 2023

    @Corleone-Huang
    Collaborator

    Hi, the pre-trained model is trained on 256 resolution. Therefore you need to resize the picture to 256. You can train the your own DQVAE on 512 resolution. We adopt the VQGAN's encoder and decoder structure to construct DQVAE. Therefore it should be easy to scale it to 512 resolution. Also, if you want to train the entropy-based DQVAE, you can firstly calculate the image entropy threshold by the script in scripts/tools/calculate_entropy_thresholds.py.

  2. Winnie202 commented on Jun 13, 2023

    @Winnie202
    Author

    Hi, the pre-trained model is trained on 256 resolution. Therefore you need to resize the picture to 256. You can train the your own DQVAE on 512 resolution. We adopt the VQGAN's encoder and decoder structure to construct DQVAE. Therefore it should be easy to scale it to 512 resolution. Also, if you want to train the entropy-based DQVAE, you can firstly calculate the image entropy threshold by the script in scripts/tools/calculate_entropy_thresholds.py.

    Thank you for your answer. But I'm wondering, are you saying that inference an image at a certain resolution requires training the image at same resolution? I know that VQGAN can deduce images of arbitrary resolution under the condition of fixed sampling factor training

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions