Keras implementation of the Yahoo Open-NSFW model
KerasTensor
is defined instead of using keras.KerasTensor
directly, as the latter is only available in Keras 3.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
.tf.keras
to keras_core
grad_cam_height
and grad_cam_width
settings, the output grad-cam image will always be the same size as the input imagealpha
is 0.8Add aggregation support for predicting video frames.