Struct stable_diffusion_trainer::trainer::parameters::Parameters
source · pub struct Parameters {
pub prompt: Prompt,
pub dataset: TrainingDataSet,
pub output: Output,
pub network: Network,
pub training: Training,
}Expand description
The parameters structure.
Fields§
§prompt: PromptThe prompt to use for the training process.
dataset: TrainingDataSetThe dataset to use for the training process.
output: OutputThe output to use for the training process.
network: NetworkThe network to use for the training process.
training: TrainingThe training to use for the training process.
Implementations§
source§impl Parameters
impl Parameters
sourcepub fn from_file(path: impl Into<PathBuf>) -> Result<Self, Box<dyn Error>>
pub fn from_file(path: impl Into<PathBuf>) -> Result<Self, Box<dyn Error>>
Get the parameters from a file.
sourcepub fn new(prompt: Prompt, dataset: TrainingDataSet, output: Output) -> Self
pub fn new(prompt: Prompt, dataset: TrainingDataSet, output: Output) -> Self
Create a new parameters structure.
sourcepub fn with_network(self, network: Network) -> Self
pub fn with_network(self, network: Network) -> Self
Set the network configuration to use for the training process.
sourcepub fn with_training(self, training: Training) -> Self
pub fn with_training(self, training: Training) -> Self
Set the training configuration to use for the training process.
Trait Implementations§
source§impl Debug for Parameters
impl Debug for Parameters
source§impl<'de> Deserialize<'de> for Parameters
impl<'de> Deserialize<'de> for Parameters
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more