drawthings-py 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/PKG-INFO +1 -1
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/pyproject.toml +1 -1
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/gen_config.py +44 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/LICENSE +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/README.md +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/__init__.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/_dt_service.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/_errors.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/_metadata.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/_png_writer.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/_preview_decoders.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/_util.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/cli_service.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/__init__.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/config_dict.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/config_prop.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/configs.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/enums.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/presets.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/prop_schema.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/types.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/drawthings.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/filename_pattern.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/generated/dt_grpc/__init__.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/generated/dt_grpc/config_generated.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/generated/dt_grpc/config_generated.pyi +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/generated/dt_grpc/image_service/__init__.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/grpc_service.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/image_buffer.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/py.typed +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/request_builder.py +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/config_props.yaml +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/anima_preview_3.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/chroma_hd.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/default.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/ernie_image_base.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/ernie_image_turbo.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_1_dev.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_1_fill_dev.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_1_schnell.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_dev_with_turbo.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_klein_4b.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_klein_4b_base.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_klein_9b.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_klein_9b_base.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_klein_9b_kv.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/qwen_image_2512.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/qwen_image_2512_lightning.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/qwen_image_edit_2511.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/qwen_image_edit_2511_lightning.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/sdxl.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/stable_diffusion.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/z_image_base.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/z_image_turbo.json +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/enums.yaml +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/root_ca.crt +0 -0
- {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/seed_provider.py +0 -0
|
@@ -233,6 +233,50 @@ class GenConfig(MutableMapping[ConfigKey, ConfigValue]):
|
|
|
233
233
|
"Invalid arguments for set_hires_fix. Either provide no arguments to disable, or width, height, and optionally strength to enable."
|
|
234
234
|
)
|
|
235
235
|
|
|
236
|
+
@overload
|
|
237
|
+
def set_tiled_diffusion(self, value: None, /) -> None: ...
|
|
238
|
+
@overload
|
|
239
|
+
def set_tiled_diffusion(self, width: int, height: int, overlap: int, /) -> None: ...
|
|
240
|
+
def set_tiled_diffusion(
|
|
241
|
+
self,
|
|
242
|
+
arg1: None | int = None,
|
|
243
|
+
height: int | None = None,
|
|
244
|
+
overlap: int | None = None,
|
|
245
|
+
/,
|
|
246
|
+
) -> None:
|
|
247
|
+
if arg1 is None:
|
|
248
|
+
self["tiled_diffusion"] = False
|
|
249
|
+
del self["diffusion_tile_width"]
|
|
250
|
+
del self["diffusion_tile_height"]
|
|
251
|
+
del self["diffusion_tile_overlap"]
|
|
252
|
+
elif height is not None and overlap is not None:
|
|
253
|
+
self["tiled_diffusion"] = True
|
|
254
|
+
self["diffusion_tile_width"] = arg1
|
|
255
|
+
self["diffusion_tile_height"] = height
|
|
256
|
+
self["diffusion_tile_overlap"] = overlap
|
|
257
|
+
|
|
258
|
+
@overload
|
|
259
|
+
def set_tiled_decoding(self, value: None, /) -> None: ...
|
|
260
|
+
@overload
|
|
261
|
+
def set_tiled_decoding(self, width: int, height: int, overlap: int, /) -> None: ...
|
|
262
|
+
def set_tiled_decoding(
|
|
263
|
+
self,
|
|
264
|
+
arg1: None | int = None,
|
|
265
|
+
height: int | None = None,
|
|
266
|
+
overlap: int | None = None,
|
|
267
|
+
/,
|
|
268
|
+
) -> None:
|
|
269
|
+
if arg1 is None:
|
|
270
|
+
self["tiled_decoding"] = False
|
|
271
|
+
del self["decoding_tile_width"]
|
|
272
|
+
del self["decoding_tile_height"]
|
|
273
|
+
del self["decoding_tile_overlap"]
|
|
274
|
+
elif height is not None and overlap is not None:
|
|
275
|
+
self["tiled_decoding"] = True
|
|
276
|
+
self["decoding_tile_width"] = arg1
|
|
277
|
+
self["decoding_tile_height"] = height
|
|
278
|
+
self["decoding_tile_overlap"] = overlap
|
|
279
|
+
|
|
236
280
|
def add_lora(self, file: str, weight: float = 1.0, mode: LoraMode = "All"):
|
|
237
281
|
"""Add a LoRA to the configuration."""
|
|
238
282
|
# checking for existence is not necessaary - __getitem__ assigns the default
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/generated/dt_grpc/config_generated.py
RENAMED
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/generated/dt_grpc/config_generated.pyi
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/anima_preview_3.json
RENAMED
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/chroma_hd.json
RENAMED
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/default.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_1_dev.json
RENAMED
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_1_fill_dev.json
RENAMED
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_1_schnell.json
RENAMED
|
File without changes
|
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_klein_4b.json
RENAMED
|
File without changes
|
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_klein_9b.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/qwen_image_2512.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/z_image_base.json
RENAMED
|
File without changes
|
{drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/z_image_turbo.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|