forked from mrq/DL-Art-School
Let noise be configurable
LQ noise is not currently configurable for some reason..
This commit is contained in:
parent
f9276007a8
commit
5ec04aedc8
|
@ -218,7 +218,7 @@ class LQGTDataset(data.Dataset):
|
|||
if img_GAN is not None:
|
||||
img_GAN = torch.from_numpy(np.ascontiguousarray(np.transpose(img_GAN, (2, 0, 1)))).float()
|
||||
|
||||
lq_noise = torch.randn_like(img_LQ) * 5 / 255
|
||||
lq_noise = torch.randn_like(img_LQ) * self.opt['lq_noise'] / 255
|
||||
img_LQ += lq_noise
|
||||
|
||||
if LQ_path is None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user