Instructions to use FredZhang7/google-safesearch-mini-tfjs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use FredZhang7/google-safesearch-mini-tfjs with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy) # See https://github.com/keras-team/tf-keras for more details. from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("FredZhang7/google-safesearch-mini-tfjs") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "InceptionV3ModelForImageClassification" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "Config.InceptionV3Config", | |
| "AutoModelForImageClassification": "Model.InceptionV3ModelForImageClassification" | |
| }, | |
| "classes": { | |
| "0": "nsfw_gore", | |
| "1": "nsfw_suggestive", | |
| "2": "safe" | |
| }, | |
| "classifier": "fc", | |
| "has_aux": true, | |
| "input_size": [ | |
| 3, | |
| 299, | |
| 299 | |
| ], | |
| "interpolation": "bicubic", | |
| "label_offset": 1, | |
| "mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "model_name": "google-safesearch-mini", | |
| "model_type": "inceptionv3", | |
| "num_classes": 3, | |
| "output_channels": 2048, | |
| "std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.25.1", | |
| "use_jit": true | |
| } | |