DCGAN-tensorflow
DCGAN-tensorflow copied to clipboard
There are two bugs in the transform function in the utils.py
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.
- if crop,cropped_image doesn't return
- j,i are not defined
Yes, but how to fix it?
Yes, but how to fix it?
issue #366