pub struct CATVTONInput {
pub cloth_type: String,
pub garment_image_url: String,
pub guidance_scale: Option<f64>,
pub human_image_url: String,
pub image_size: Option<ImageSizeProperty>,
pub num_inference_steps: Option<i64>,
pub seed: Option<i64>,
}Fields§
§cloth_type: StringType of the Cloth to be tried on.
Options: upper: Upper body cloth lower: Lower body cloth overall: Full body cloth inner: Inner cloth, like T-shirt inside a jacket outer: Outer cloth, like a jacket over a T-shirt/// Type of the Cloth to be tried on.
Options: upper: Upper body cloth lower: Lower body cloth overall: Full body cloth inner: Inner cloth, like T-shirt inside a jacket outer: Outer cloth, like a jacket over a T-shirt/// “upper” “lower” “overall” “inner” “outer”
garment_image_url: StringUrl to the garment image./// Url to the garment image./// “https://storage.googleapis.com/falserverless/catvton/tshirt.jpg”
guidance_scale: Option<f64>The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you.
human_image_url: StringUrl for the human image./// Url for the human image./// “https://storage.googleapis.com/falserverless/catvton/man5.jpg”
image_size: Option<ImageSizeProperty>The size of the generated image.
num_inference_steps: Option<i64>The number of inference steps to perform.
seed: Option<i64>The same seed and the same input given to the same version of the model will output the same image every time.
Trait Implementations§
Source§impl Debug for CATVTONInput
impl Debug for CATVTONInput
Source§impl Default for CATVTONInput
impl Default for CATVTONInput
Source§fn default() -> CATVTONInput
fn default() -> CATVTONInput
Source§impl<'de> Deserialize<'de> for CATVTONInput
impl<'de> Deserialize<'de> for CATVTONInput
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>,
Auto Trait Implementations§
impl Freeze for CATVTONInput
impl RefUnwindSafe for CATVTONInput
impl Send for CATVTONInput
impl Sync for CATVTONInput
impl Unpin for CATVTONInput
impl UnwindSafe for CATVTONInput
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
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().