carpedm20 / carpedm20/DCGAN-tensorflow

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

Open
#386 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Open utils.py and inspect transform, including its crop and non-crop branches and the call to center_crop. Verify that the crop path returns the cropped result and that the non-crop path does not use undefined j or i values. Done means both branches execute without these errors and produce the intended transformed array.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.