Recent Releases of opennsfw2

opennsfw2 - 0.14.0

  • Support parsing PIL.Image.Image object(s) directly other than image path(s) to predict_image and predict_images functions. Rename the original image_path/image_paths position arg to image_handle/image_handles (breaking change).
  • Add Python 3.12 to CI test.

- Python
Published by bhky almost 2 years ago

opennsfw2 - 0.13.10

  • Fix image overlay for GradCAM when using YAHOO preprocessing. The YAHOO preprocessing actually excludes from the model input certain pixels from each edge of the image, the GradCAM visualisation should take this into account.

- Python
Published by bhky almost 2 years ago

opennsfw2 - 0.13.9

  • Fix type annotation for PIL.Image.Image.
  • Use a fixed layer name global_average_pooling2d for the GlobalAveragePooling2D layer, to avoid Keras assigning a different name upon multiple model instantiations.

- Python
Published by bhky almost 2 years ago

opennsfw2 - 0.13.7

  • 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

- Python
Published by bhky over 2 years ago

opennsfw2 - 0.13.4

  • 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.

- Python
Published by bhky over 2 years ago

opennsfw2 - 0.13.2

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

- Python
Published by bhky over 2 years ago

opennsfw2 - 0.12.1

  • Improve internal batching logic for predicting from image paths.

- Python
Published by bhky over 2 years ago

opennsfw2 - 0.12.0

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

- Python
Published by bhky over 2 years ago

opennsfw2 - 0.11.0

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

- Python
Published by bhky almost 3 years ago

opennsfw2 - 0.10.2

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

- Python
Published by bhky over 3 years ago

opennsfw2 - 0.10.1

  • 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

- Python
Published by bhky about 4 years ago

opennsfw2 - 0.9.2

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

- Python
Published by bhky about 4 years ago

opennsfw2 - 0.8.0

Add aggregation support for predicting video frames.

- Python
Published by bhky about 4 years ago

opennsfw2 - 0.7.0

  • 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.

- Python
Published by bhky over 4 years ago

opennsfw2 - 0.6.1

Add matplotlib to required packages.

- Python
Published by bhky over 4 years ago

opennsfw2 - 0.6.0

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

- Python
Published by bhky over 4 years ago

opennsfw2 - 0.5.3

Clean up code for model architecture to improve readability.

- Python
Published by bhky over 4 years ago

opennsfw2 - 0.5.2

Fix mypy re-export errors

- Python
Published by bhky over 4 years ago

opennsfw2 - 0.5.1

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

- Python
Published by bhky over 4 years ago

opennsfw2 - 0.5.0

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

- Python
Published by bhky over 4 years ago

opennsfw2 - 0.4.1

Update dependencies.

- Python
Published by bhky over 4 years ago

opennsfw2 - 0.4.0

Add an end-to-end pipeline function, predict, that takes as input a list of image paths and other optional parameters.

- Python
Published by bhky over 4 years ago

opennsfw2 - 0.3.0

Updated required packages for installation.

- Python
Published by bhky over 4 years ago

opennsfw2 - 0.2.0

Breaking changes: remove load_and_preprocess_image, introduce preprocess_image that takes as input a PIL image.

- Python
Published by bhky over 4 years ago

opennsfw2 - 0.1.2

First complete release.

- Python
Published by bhky over 4 years ago

opennsfw2 - Pre-trained weights

The original pre-trained weights of the Yahoo Open-NSFW model were in Caffe format, and later being migrated to TensorFlow 1.

Here, we provide an HDFS 5 format of these pre-trained weights for our TensorFlow 2 implementation of the same model.

- Python
Published by bhky over 4 years ago