DeblurGANv2
DeblurGANv2 copied to clipboard
Perceptual Loss computation
Hi, thanks for sharing your code. I was reading the implementation of the PerceptualLoss and I am wondering why only the first image of the batch is normalized: https://github.com/VITA-Group/DeblurGANv2/blob/c5bbf780b152d5b877d9911b8323898d5f2e0a50/models/losses.py#L50-L51
Is the code intended to only work with batchsize=1?
Hi @rogertrullo, have you found the answer?
Hi @rogertrullo, have you found the answer?
Hi @diyar-m although I never got a reply, I assumed it was a bug. I made some mods to the code but I haven’t tested it
I'm gonna change it and test it too.
I'll let you know if I'd got a better result.
Great! Let me know how it went once you have it :)
I got this error message. @rogertrullo
Traceback (most recent call last): |
File "train.py", line 256, in
I dont have the code at hand now, but yeah the thing is that the transform
expects individial images and not a batch of images, I cant remember exactly how I handled it but it is definetly doable
Yeah. I'm using a for to iterate between images and transform each one individially.
yeah I think I did the same with a map or sth but escentially the same
是的,我想我在地图或某物上做了相同的操作,但在外观上却是相同的 你好,请问您是如何修改的代码