Opennsfw2 Versions Save

Keras implementation of the Yahoo Open-NSFW model

v0.13.7

5 months ago
  • For Keras 2 compatibility, a generic type var KerasTensor is defined instead of using keras.KerasTensor directly, as the latter is only available in Keras 3.
  • Relax version requirement for Keras in setup config

v0.13.4

5 months ago
  • Allow passing a model name to the make_open_nsfw_model function. This will be used as the name attribute of the returned Keras model object. The default name is opennsfw2.
  • Fix logic for updating the internal global model variable.

v0.13.2

5 months ago
  • Use Keras 3 instead of Keras Core
  • Drop support for Python 3.8; add support for Python 3.11

v0.12.1

5 months ago
  • Improve internal batching logic for predicting from image paths.

v0.12.0

6 months ago
  • Improve support for using the APIs in a loop, in particular, reduce the memory usage due to re-creating the model object.

v0.11.0

9 months ago
  • Switch from tf.keras to keras_core
  • Include test run for JAX backend
  • Update README
  • Other minor fixes

v0.10.2

1 year ago
  • Fixed model inference usage to avoid potential TF mem-leak

v0.10.1

1 year ago
  • 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

v0.9.2

2 years ago
  • Add progress bar for predicting video frames.
  • Set all default batch sizes to 8.

v0.8.0

2 years ago

Add aggregation support for predicting video frames.