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

Test output is black #133

Open
ZH3nGsQ opened this issue May 22, 2024 · 2 comments
Open

Test output is black #133

ZH3nGsQ opened this issue May 22, 2024 · 2 comments

Comments

@ZH3nGsQ
Copy link

ZH3nGsQ commented May 22, 2024

I want to test StableSR using your test_example, the result is a black image.
I download pretrained_SDmodel v2-1_512-ema-pruned.ckpt ,pretrained_CFWmodel vqgan_cfw_00011.ckpt and stablesr_000117.ckpt.
And I run the code python scripts/sr_val_ddpm_text_T_vqganfin_oldcanvas_tile.py --config configs/stableSRNew/v2-finetune_text_T_512.yaml --ckpt pretrained_turbo/stablesr_000117.ckpt --init-img inputs/test_example --outdir OUT_PATH --ddpm_steps 4 --dec_w 0.5 --seed 42 --n_samples 1 --vqgan_ckpt pretrained_CFWmodel/vqgan_cfw_00011.ckpt --colorfix_type wavelet --upscale 1
The input is 720720
image
The output is also 720
720 but black
image
I don't know which part went wrong.

@ZH3nGsQ
Copy link
Author

ZH3nGsQ commented May 22, 2024

I changed ckpt_path to pretrained_SDmodel/v2-1_512-ema-pruned.ckpt in v2-finetune_text_T_512.yaml

@IceClear
Copy link
Owner

Hi. I did not meet such a problem. You may check if the output is None. If so, you may need to avoid using autocasting for the autoencoder part. This is not very common.

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

2 participants