Versions in this module Expand all Collapse all v1 v1.0.0 Oct 27, 2025 Changes in this version + const ImageDimensions + var DefaultCachePath = envStr("NSFW_MODEL_CACHE_DIR", "./.models/") + var ErrNoneCached = errors.New("no cached models") + type Path string + func GetLatestModelPath() (Path, error) + func GetLocalModelPath() (Path, error) + func (p Path) GetModel() *tg.Model + func (p Path) String() string + type Prediction struct + Drawings float32 + Hentai float32 + Neutral float32 + Porn float32 + Sexy float32 + func (p Prediction) Describe() string + type Predictor struct + func NewLatestPredictor() (*Predictor, error) + func NewPredictor(model *tg.Model) *Predictor + func (p *Predictor) NewImage(filepath string, channels int64) *image.Image + func (p *Predictor) Predict(img *image.Image) Prediction + func (p *Predictor) UseScope(s *op.Scope)