Skip to content

Commit

Permalink
Small rearrangement
Browse files Browse the repository at this point in the history
  • Loading branch information
bhky committed Aug 17, 2024
1 parent 3b9f495 commit 6f71a3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opennsfw2/_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def predict_images(
from ._inspection import make_and_save_nsfw_grad_cam

for image_handle, grad_cam_path in zip(image_handles, grad_cam_paths):
pil_image = _load_pil_image(image_handle)
make_and_save_nsfw_grad_cam(
_load_pil_image(image_handle), preprocessing, global_model,
grad_cam_path, alpha
pil_image, preprocessing, global_model, grad_cam_path, alpha
)

return nsfw_probabilities
Expand Down

0 comments on commit 6f71a3a

Please sign in to comment.