DCGAN-tensorflow icon indicating copy to clipboard operation
DCGAN-tensorflow copied to clipboard

There are two bugs in the transform function in the utils.py

Open Jiang-maomao opened this issue 5 years ago • 2 comments

def transform(image, input_height, input_width, resize_height=64, resize_width=64, crop=True): if crop: cropped_image = center_crop(image, input_height, input_width, resize_height, resize_width) else: im = Image.fromarray(image[j:j+crop_h, i:i+crop_w]) return np.array(im.resize([resize_h, resize_w]), PIL.Image.BILINEAR)/127.5 - 1.

  1. if crop,cropped_image doesn't return
  2. j,i are not defined

Jiang-maomao avatar Sep 21 '20 11:09 Jiang-maomao

Yes, but how to fix it?

panjijun123 avatar Oct 12 '20 13:10 panjijun123

Yes, but how to fix it?

issue #366

Jiang-maomao avatar Oct 12 '20 13:10 Jiang-maomao