pub struct ServerConfig {Show 18 fields
pub default_rmbg_model: ForegroundModel,
pub default_synthesis_models: Vec<SynthesisModel>,
pub default_backend: InferenceBackend,
pub weights_root: Option<PathBuf>,
pub trellis_weights_root: Option<PathBuf>,
pub trellis_image_large_root: Option<PathBuf>,
pub trellis_python_bin: Option<PathBuf>,
pub trellis_bridge_script: Option<PathBuf>,
pub trellis_quality: TrellisQuality,
pub quality: QualityPreset,
pub bg_weights_root: Option<PathBuf>,
pub num_steps: usize,
pub num_tokens: usize,
pub guidance_scale: f32,
pub flash_octree_depth: usize,
pub flash_min_resolution: usize,
pub flash_mini_grid_num: usize,
pub flash_num_chunks: usize,
}Fields§
§default_rmbg_model: ForegroundModel§default_synthesis_models: Vec<SynthesisModel>§default_backend: InferenceBackend§weights_root: Option<PathBuf>§trellis_weights_root: Option<PathBuf>§trellis_image_large_root: Option<PathBuf>§trellis_python_bin: Option<PathBuf>§trellis_bridge_script: Option<PathBuf>§trellis_quality: TrellisQuality§quality: QualityPreset§bg_weights_root: Option<PathBuf>§num_steps: usize§num_tokens: usize§guidance_scale: f32§flash_octree_depth: usize§flash_min_resolution: usize§flash_mini_grid_num: usize§flash_num_chunks: usizeImplementations§
Source§impl ServerConfig
impl ServerConfig
pub fn from_args(args: ServerArgs) -> Self
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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