tamarott / SinGAN

Official pytorch implementation of the paper: "SinGAN: Learning a Generative Model from a Single Natural Image"
https://tamarott.github.io/SinGAN.htm
Other
3.3k stars 612 forks source link

Harmonization Output size decreased #98

Open sabaina-Haroon opened 4 years ago

sabaina-Haroon commented 4 years ago

Hi, I have trained SinGan on my input image that is of 2048x1024 size , for harmonization , my naively pasted image and mask image is also of the same size, i have used scale=6 but my output image is of size 250x125 , this size is much smaller size for me and it blurs the output a lot. How can I increase the output size from 250x125 ?

tamarott commented 4 years ago

You need to change --max_size (the default is 250), however your desire image size is challenging and you may encounter run time error.

On Sat, Apr 11, 2020, 22:27 sabaina-Haroon notifications@github.com wrote:

Hi, I have trained SinGan on my input image that is of 2048x1024 size , for harmonization , my naively pasted image and mask image is also of the same size, i have used scale=6 but my output image is of size 250x125 , this size is much smaller size for me and it blurs the output a lot. How can I increase the output size from 250x125 ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tamarott/SinGAN/issues/98, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM5V37ILU6UPGIUPNIP5SITRMDAAJANCNFSM4MGDV4KA .

sabaina-Haroon commented 4 years ago

You need to change --max_size (the default is 250), however your desire image size is challenging and you may encounter run time error. On Sat, Apr 11, 2020, 22:27 sabaina-Haroon @.***> wrote: Hi, I have trained SinGan on my input image that is of 2048x1024 size , for harmonization , my naively pasted image and mask image is also of the same size, i have used scale=6 but my output image is of size 250x125 , this size is much smaller size for me and it blurs the output a lot. How can I increase the output size from 250x125 ? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#98>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM5V37ILU6UPGIUPNIP5SITRMDAAJANCNFSM4MGDV4KA .

Thank you. It worked, I changed max size to 500 and didn't get any run time error. FYI I was trying to add snow to an image thank you for this great work. real_scale start_scale=6 start_scale=9

tamarott commented 4 years ago

Nice!

On Sun, Apr 12, 2020, 09:38 sabaina-Haroon notifications@github.com wrote:

You need to change --max_size (the default is 250), however your desire image size is challenging and you may encounter run time error. … <#m3033190005724323012> On Sat, Apr 11, 2020, 22:27 sabaina-Haroon @.***> wrote: Hi, I have trained SinGan on my input image that is of 2048x1024 size , for harmonization , my naively pasted image and mask image is also of the same size, i have used scale=6 but my output image is of size 250x125 , this size is much smaller size for me and it blurs the output a lot. How can I increase the output size from 250x125 ? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#98 https://github.com/tamarott/SinGAN/issues/98>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM5V37ILU6UPGIUPNIP5SITRMDAAJANCNFSM4MGDV4KA .

Thank you. It worked, I changed max size to 500 and didn't get any run time error. FYI I was trying to add snow to an image thank you for this great work. [image: real_scale] https://user-images.githubusercontent.com/58717184/79062262-8fd79480-7c66-11ea-955b-0a6cec7f9487.png [image: start_scale=6] https://user-images.githubusercontent.com/58717184/79062263-9108c180-7c66-11ea-8d39-f52296bca1bc.png [image: start_scale=9] https://user-images.githubusercontent.com/58717184/79062264-91a15800-7c66-11ea-8a66-e2634baf360f.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tamarott/SinGAN/issues/98#issuecomment-612571745, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM5V37JLMTEP2WFWKZZAJ7TRMFOVZANCNFSM4MGDV4KA .

ChaoWei0606 commented 3 years ago

Hello,tamarott! Thank you for this great work.I want to use the function of harmony, but I don't know how to operate it in detail. Could you please teach me again?I used Run harmonization.py, and I changed the parameters inside it. I set harmonization Injection Scale to 1 and it reacts to an error.How do I set it up?

image

@tamarott @SharkEzz @alemelis QQ截图20201027162041