Skip to content

Releases: bhky/opennsfw2

0.10.1

03 Jun 03:35
Compare
Choose a tag to compare
  • Remove grad_cam_height and grad_cam_width settings, the output grad-cam image will always be the same size as the input image
  • Default alpha is 0.8

0.9.2

21 May 02:15
Compare
Choose a tag to compare
  • Add progress bar for predicting video frames.
  • Set all default batch sizes to 8.

0.8.0

17 May 13:06
Compare
Choose a tag to compare

Add aggregation support for predicting video frames.

0.7.0

04 Jan 08:29
Compare
Choose a tag to compare
  • Drop support for Python 3.7.
  • Use numpy.typing from NumPy 1.22.0.
  • Use Pillow 9.0.0, note that this leads to some small floating point differences to the results.
  • Fix Grad-CAM tools.

0.6.1

06 Dec 04:36
Compare
Choose a tag to compare

Add matplotlib to required packages.

0.6.0

23 Nov 00:55
Compare
Choose a tag to compare

New features:

  • predict_image and predict_images can now also produce Grad-CAM plots that highlight the important regions which lead to the predictions.

0.5.3

21 Nov 01:13
Compare
Choose a tag to compare

Clean up code for model architecture to improve readability.

0.5.2

17 Nov 07:44
Compare
Choose a tag to compare

Fix mypy re-export errors

0.5.1

16 Nov 23:30
Compare
Choose a tag to compare

Save output video, if enabled, as MP4 instead of AVI.

0.5.0

14 Nov 12:31
Compare
Choose a tag to compare

New:

  • predict_video_frames for getting the NSFW probability of each video frame
  • predict_image for getting the NSFW probability of a single image

Breaking changes:

  • predict is removed, and replaced by predict_images, which returns a list of NSFW probabilities of the input images