StyleStudioModel<T>
Models & Types · AiDotNet.Diffusion.StyleTransfer
StyleStudio model for text-driven style generation and transfer with disentangled control.
Inheritance: DiffusionModelBase<T> → LatentDiffusionModelBase<T> → StyleStudioModel<T>
For Beginners
StyleStudio lets you control style in detail — you can separately adjust how much of the style’s colors, textures, and patterns to apply. You can describe the style in words or provide a reference image.
How It Works
StyleStudio disentangles style from content in the text conditioning space, allowing independent control over style intensity, color palette, and texture properties. Supports both text-described styles and reference-image styles.
Example
var options = new DiffusionModelOptions<float> { LatentChannels = 4, DefaultInferenceSteps = 25 };
var input = Tensor<float>.CreateRandom(new[] { 1, 4, 64, 64 });
var trainX = Tensor<float>.CreateRandom(4, 8);
var trainY = Tensor<float>.CreateRandom(4, 2);
var result = new AiModelBuilder<float, Tensor<float>, Tensor<float>>()
.ConfigureModel(new StyleStudioModel<float>(options: options))
.Build(trainX, trainY);
var stylized = result.Predict(input);
Constructors
| Constructor | Summary |
|---|---|
StyleStudioModel(NeuralNetworkArchitecture<T> architecture, DiffusionModelOptions<T> options, INoiseScheduler<T> scheduler, UNetNoisePredictor<T> predictor, StandardVAE<T> vae, IConditioningModule<T> conditioner, int? seed) |
Properties
| Property | Summary |
|---|---|
IConditioningModule<T> Conditioner { get; } |
|
INoisePredictor<T> NoisePredictor { get; } |
|
IVAEModel<T> VAE { get; } |
|
int LatentChannels { get; } |
Methods
| Method | Summary |
|---|---|
ModelMetadata<T> GetModelMetadata() |