dot-detect_model_type_config: Detect model type from a sibling config.json (diffusers-style...

.detect_model_type_configR Documentation

Detect model type from a sibling config.json (diffusers-style layout)

Description

Looks for config.json next to the model file and maps its model_type / architectures[1] / _class_name fields onto sd2R's type vocabulary. Pure R, no weights read.

Usage

.detect_model_type_config(path)

Arguments

path

Path to the model file

Value

Model type string, or NULL if not detectable


sd2R documentation built on June 19, 2026, 9:08 a.m.