pub struct StyleTransferSystem { /* private fields */ }Expand description
Main style transfer system that orchestrates the style transfer pipeline.
This system coordinates content-style decomposition, style encoding/decoding, quality assessment, and caching for efficient style transfer operations.
Implementations§
Source§impl StyleTransferSystem
impl StyleTransferSystem
Sourcepub fn new(config: StyleTransferConfig) -> Self
pub fn new(config: StyleTransferConfig) -> Self
Create new style transfer system
Sourcepub fn transfer_style(
&mut self,
source_audio: &[f32],
target_style_id: &str,
sample_rate: u32,
) -> Result<Vec<f32>>
pub fn transfer_style( &mut self, source_audio: &[f32], target_style_id: &str, sample_rate: u32, ) -> Result<Vec<f32>>
Transfer style from source to target
Sourcepub fn add_style_model(&mut self, model: StyleModel) -> Result<()>
pub fn add_style_model(&mut self, model: StyleModel) -> Result<()>
Add style model to repository
Sourcepub fn remove_style_model(&mut self, model_id: &str) -> Result<()>
pub fn remove_style_model(&mut self, model_id: &str) -> Result<()>
Remove style model from repository
Sourcepub fn metrics(&self) -> &StyleTransferMetrics
pub fn metrics(&self) -> &StyleTransferMetrics
Get style transfer metrics
Sourcepub fn update_config(&mut self, config: StyleTransferConfig)
pub fn update_config(&mut self, config: StyleTransferConfig)
Update configuration
Auto Trait Implementations§
impl Freeze for StyleTransferSystem
impl !RefUnwindSafe for StyleTransferSystem
impl Send for StyleTransferSystem
impl Sync for StyleTransferSystem
impl Unpin for StyleTransferSystem
impl UnsafeUnpin for StyleTransferSystem
impl !UnwindSafe for StyleTransferSystem
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more