Important
You are viewing the NeMo 2.0 documentation. This release introduces significant changes to the API and a new library, NeMo Run. We are currently porting all features from NeMo 1.0 to 2.0. For documentation on previous versions or features not yet available in 2.0, please refer to the NeMo 24.07 documentation.
Framework Inference#
For NSFW models, the inference script generates image scores for NSFW content. Values closer to 1 are strong NSFW while -1 are strong safe.
To enable inference stage with a NSFW model, configure the configuration files:
In the
defaults
section ofconf/config.yaml
, update thefw_inference
field to point to the desired NSFW inference configuration file. For example, if you want to use thensfw/nsfw.yaml
configuration, change thefw_inference
field tonsfw/nsfw
.defaults: - fw_inference: nsfw/nsfw ...
In the
stages
field ofconf/config.yaml
, make sure thefw_inference
stage is included. For example,stages: - fw_inference ...
Configure
image_path
field ofconf/fw_inference/nsfw/nsfw.yaml
.Execute the launcher pipeline:
python3 main.py
.