Closed Ivvvvvvvvvvy closed 1 year ago
I am not exactly how you visualize this, but one issue could be that you are doing B_img = np.load(B_path)
followed by B = torch.from_numpy(B_img).to(torch.float32).unsqueeze(0)
. The resulting tensor may not be of BCHW shape.
I am not exactly how you visualize this, but one issue could be that you are doing followed by . The resulting tensor may not be of BCHW shape.
B_img = np.load(B_path)``B = torch.from_numpy(B_img).to(torch.float32).unsqueeze(0)
Thank you very much for your answer! I'll give it a try!!
hi, I'm using the cycleGAN model for street view image (.jpg) to mel-spectrogram (.npy, range 0 to 1) conversion.So, I created the trainA folder to store jpg, and the trainB folder to store npy files .
So I changed the way of data loading, the code is as follows, but there is a problem, in some epochs, the generated real_A image becomes a mosaic of mel pictures and street view images, but in some epochs it is normal, do you know why will it be like this
normal image:
error image: