-
Notifications
You must be signed in to change notification settings - Fork 16
allow settings and dict for videoInference, add new settings params, update bytedance providerSettings #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -752,6 +752,18 @@ class ISettings(SerializableMixin): | |
| turbo: Optional[bool] = None | ||
| lyrics: Optional[str] = None | ||
| guidanceType: Optional[str] = None | ||
| # Video | ||
| draft: Optional[bool] = None | ||
| audio: Optional[bool] = None | ||
| promptUpsampling: Optional[bool] = None | ||
|
|
||
| def __post_init__(self): | ||
| if self.sparseStructure is not None and isinstance(self.sparseStructure, dict): | ||
| self.sparseStructure = ISparseStructure(**self.sparseStructure) | ||
| if self.shapeSlat is not None and isinstance(self.shapeSlat, dict): | ||
| self.shapeSlat = IShapeSlat(**self.shapeSlat) | ||
| if self.texSlat is not None and isinstance(self.texSlat, dict): | ||
| self.texSlat = ITexSlat(**self.texSlat) | ||
|
Comment on lines
+760
to
+766
|
||
|
|
||
| @property | ||
| def request_key(self) -> str: | ||
|
|
@@ -1217,6 +1229,7 @@ class IBytedanceProviderSettings(BaseProviderSettings): | |
| fastMode: Optional[bool] = None # When enabled, speeds up generation by sacrificing some effects. Default: false. RTF: 25-28 (fast) vs 35 (normal) | ||
| audio: Optional[bool] = None | ||
| draft: Optional[bool] = None | ||
| optimizePromptMode: Optional[str] = None | ||
|
|
||
| @property | ||
| def provider_key(self) -> str: | ||
|
|
@@ -1427,6 +1440,11 @@ class IVideoInference: | |
| inputs: Optional[IVideoInputs] = None | ||
| skipResponse: Optional[bool] = False | ||
| resolution: Optional[str] = None | ||
| settings: Optional[Union[ISettings, Dict[str, Any]]] = None | ||
|
|
||
| def __post_init__(self): | ||
Sirsho1997 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| if self.settings is not None and isinstance(self.settings, dict): | ||
Sirsho1997 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| self.settings = ISettings(**self.settings) | ||
|
Comment on lines
+1443
to
+1447
|
||
|
|
||
|
|
||
| I3dOutputFormat = Literal["GLB", "PLY"] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.