Skip to content

Commit

Permalink
Update predict.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rajangyawali authored Dec 14, 2023
1 parent 8da3fc6 commit 4e9df1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def make_predictions(model, image_path):
# image = image.T
# image = np.rot90(image)
image = cv2.imread(image_path, 0)
image = denoise_jpg_image(image)
mask = cv2.imread(mask_path, 0)
height, width = image.shape
orig_image = copy.deepcopy(image)
Expand Down Expand Up @@ -137,4 +136,4 @@ def make_predictions(model, image_path):
images_path = list(glob.glob(f"{config.test_dataset_path}/{config.empiar_id}/images/*.jpg"))

for i in range(0, len(images_path), 1):
make_predictions(model, images_path[i])
make_predictions(model, images_path[i])

0 comments on commit 4e9df1a

Please sign in to comment.