F-LSeSim
F-LSeSim copied to clipboard
Selecting query-key patches
@lyndonzheng Hi, thanks for your great work. After reading your paper and source code, I have a question about selecting query-key patches. In your source codes, the selecting codes are as below.
In line 246, left, top = pos_x - int(pw/2), pos_y - int(ph/2). What's the reason to subtracts int(pw/2) from pos_x ?
Watching codes from line 244 to line 259, It seems like a strategy to select query-key patches. Is there some reason to use this strategy or we could use other strategy to get same results ?
Hi @YangGangZhiQi, thanks for your interesting. This strategy is applied to ensure the valid sample patches. Without this processing, the patch may be out of the original feature scale.
Get it. Thanks for your quick answer. These days a question often troubles me when working in Image-to-Image transfer field. How to explain the correctness of the generated results? Is there some other way except just observation to declare there is no error in the generated images? I would appreciate it if someone could help me.