-
Notifications
You must be signed in to change notification settings - Fork 140
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
testing any other size image #17
Comments
other size is 3K*4K |
Ohohoh, I previously set the --vqgantile_size is 512, but error: And then I forgot about this restriction, I just made it smaller. What size GPU is required for the --vqgantile_size of 512? |
but now, My Test Script: |
Hi. |
Hello, thank you very much for your kind reply, image size6K*8K, Is this related to image size? What I understand is that GPU needs to only be related to vqgantile_size ? |
With upscale 4.0 by default, the output will be 24k*32k. I do not know why you need such a large image. But it is identical to loading about 3k images with 512x512 all at once in the GPU memory. I conjecture you need at least 10G VRAM to store the input even if you do nothing else. |
Uh huh, I made the test image smaller, but I still encountered errors during the test: Sampling t: 96%|█████████▋| 193/200 [02:08<00:04, 1.52it/s]�[A Sampling t: 97%|█████████▋| 194/200 [02:09<00:03, 1.51it/s]�[A Sampling t: 98%|█████████▊| 195/200 [02:09<00:03, 1.51it/s]�[A Sampling t: 98%|█████████▊| 196/200 [02:10<00:02, 1.51it/s]�[A Sampling t: 98%|█████████▊| 197/200 [02:11<00:01, 1.51it/s]�[A Sampling t: 99%|█████████▉| 198/200 [02:11<00:01, 1.51it/s]�[A Sampling t: 100%|█████████▉| 199/200 [02:12<00:00, 1.51it/s]�[A Sampling t: 100%|██████████| 200/200 [02:13<00:00, 1.50it/s]�[A Sampling: 0%| | 0/146 [7:19:17<?, ?it/s] |
Fixed |
I tested the 128 * 128 input image with This script:
python scripts/sr_val_ddpm_text_T_vqganfin_old.py --config configs/stableSRNew/v2-finetune_text_T_512.yaml --ckpt /data/work/StableSR-main/model/stablesr_000117.ckpt --vqgan_ckpt /data/work/StableSR-main/model/vqgan_cfw_00011.ckpt --init-img /data/work/StableSR/datasetoyj/plant/ --outdir /data/work/StableSR/datasetoyj/plant_out --ddpm_steps 200 --dec_w 0.5
there were no problem.
but I encountered an error when testing any other size image with This script:
python scripts/sr_val_ddpm_text_T_vqganfin_oldcanvas_tile.py --config configs/stableSRNew/v2-finetune_text_T_512.yaml --ckpt /data/work/StableSR-main/model/stablesr_000117.ckpt --vqgan_ckpt /data/work/StableSR-main/model/vqgan_cfw_00011.ckpt --init-img /data/work/StableSR/datasetoyj/human_all/ --outdir /data/work/StableSR/datasetoyj/human_all_out --ddpm_steps 200 --dec_w 0.5 --vqgantile_size 256 --vqgantile_stride 200
the error is:
...
│ /data/work/StableSR/ldm/models/diffusion/ddpm.py:2621 in │
│ p_mean_variance_canvas │
│ │
│ 2618 │ │ │ │ # print(noise_preds[row][col].size()) │
│ 2619 │ │ │ │ # print(tile_weights.size()) │
│ 2620 │ │ │ │ # print(noise_pred.size()) │
│ ❱ 2621 │ │ │ │ noise_pred[:, :, input_start_y:input_end_y, input_sta │
│ 2622 │ │ │ │ contributors[:, :, input_start_y:input_end_y, input_s │
│ 2623 │ │ # Average overlapping areas with more than 1 contributor │
│ 2624 │ │ noise_pred /= contributors │
╰──────────────────────────────────────────────────────────────────────────────╯
RuntimeError: The size of tensor a (32) must match the size of tensor b (64) at
non-singleton dimension 3
The text was updated successfully, but these errors were encountered: