timothybrooks / instruct-pix2pix

Other
6.28k stars 530 forks source link

How to keep image size? #60

Closed xzitlou closed 1 year ago

xzitlou commented 1 year ago

Is there any command to keep the same image size?

holynski commented 1 year ago

There's usually a crop/resize that happens in the code before passing the image to the model. This can be disabled by removing those lines of code, or pre-cropping your image before passing in.

Unfortunately, there's no single command-line parameter that controls this, so you'll have to dig into the code.