Skip to content

Commit

Permalink
Updated Predicted
Browse files Browse the repository at this point in the history
  • Loading branch information
rajangyawali committed Dec 13, 2023
1 parent c724b00 commit 8da3fc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion predict.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Code for making predictions on individual micrographs

import copy
from utils.denoise import denoise
from utils.denoise import denoise, denoise_jpg_image
import config
import matplotlib.pyplot as plt
import numpy as np
Expand Down Expand Up @@ -78,6 +78,7 @@ 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

0 comments on commit 8da3fc6

Please sign in to comment.