diffsynth-engine 0.6.1.dev3__py3-none-any.whl → 0.6.1.dev4__py3-none-any.whl
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.
- diffsynth_engine/pipelines/hunyuan3d_shape.py +4 -0
- {diffsynth_engine-0.6.1.dev3.dist-info → diffsynth_engine-0.6.1.dev4.dist-info}/METADATA +1 -1
- {diffsynth_engine-0.6.1.dev3.dist-info → diffsynth_engine-0.6.1.dev4.dist-info}/RECORD +6 -6
- {diffsynth_engine-0.6.1.dev3.dist-info → diffsynth_engine-0.6.1.dev4.dist-info}/WHEEL +0 -0
- {diffsynth_engine-0.6.1.dev3.dist-info → diffsynth_engine-0.6.1.dev4.dist-info}/licenses/LICENSE +0 -0
- {diffsynth_engine-0.6.1.dev3.dist-info → diffsynth_engine-0.6.1.dev4.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import torch
|
|
2
|
+
from typing import Optional, Callable
|
|
2
3
|
from tqdm import tqdm
|
|
3
4
|
from PIL import Image
|
|
4
5
|
from diffsynth_engine.algorithm.noise_scheduler.flow_match.recifited_flow import RecifitedFlowScheduler
|
|
@@ -179,6 +180,7 @@ class Hunyuan3DShapePipeline(BasePipeline):
|
|
|
179
180
|
num_inference_steps: int = 50,
|
|
180
181
|
guidance_scale: float = 7.5,
|
|
181
182
|
seed: int = 42,
|
|
183
|
+
progress_callback: Optional[Callable] = None, # def progress_callback(current, total, status)
|
|
182
184
|
):
|
|
183
185
|
image_emb = self.encode_image(image)
|
|
184
186
|
|
|
@@ -197,4 +199,6 @@ class Hunyuan3DShapePipeline(BasePipeline):
|
|
|
197
199
|
noise_pred, noise_pred_uncond = model_outputs.chunk(2)
|
|
198
200
|
model_outputs = noise_pred_uncond + guidance_scale * (noise_pred - noise_pred_uncond)
|
|
199
201
|
latents = self.sampler.step(latents, model_outputs, i)
|
|
202
|
+
if progress_callback is not None:
|
|
203
|
+
progress_callback(i, len(timesteps), "DENOISING")
|
|
200
204
|
return self.decode_latents(latents)
|
|
@@ -141,7 +141,7 @@ diffsynth_engine/models/wan/wan_vae.py,sha256=ogXrVlwmzXR4iLxjSCkBPtYW8KWebnvvd2
|
|
|
141
141
|
diffsynth_engine/pipelines/__init__.py,sha256=jh-4LSJ0vqlXiT8BgFgRIQxuAr2atEPyHrxXWj-Ud1U,604
|
|
142
142
|
diffsynth_engine/pipelines/base.py,sha256=7x7gEdCk_DRnGDMdPGLvNPlk-Yn2p0yQ8pNvr59i-hU,14199
|
|
143
143
|
diffsynth_engine/pipelines/flux_image.py,sha256=LET1gPlkXJN2xE22GRVjUgWJH0ZZBFnAe3bIvJrjb1s,49726
|
|
144
|
-
diffsynth_engine/pipelines/hunyuan3d_shape.py,sha256=
|
|
144
|
+
diffsynth_engine/pipelines/hunyuan3d_shape.py,sha256=5wTn3pqqhn19THVbM0oxxcMZb8YUdoQY1GeiQgqS6hU,8176
|
|
145
145
|
diffsynth_engine/pipelines/qwen_image.py,sha256=vWe1M3FU-aqckvrVeJlZgMIN55qnRz9hZ2AxGCxro1Y,24134
|
|
146
146
|
diffsynth_engine/pipelines/sd_image.py,sha256=nr-Nhsnomq8CsUqhTM3i2l2zG01YjwXdfRXgr_bC3F0,17891
|
|
147
147
|
diffsynth_engine/pipelines/sdxl_image.py,sha256=FaihRd9Rt_qtqup2xEbHViVIFwFZVyvekYW4lCodNKY,21692
|
|
@@ -185,8 +185,8 @@ diffsynth_engine/utils/video.py,sha256=GoMyc2as4_VqfWX4pjQyAWh9QObsFMov42zADVZNa
|
|
|
185
185
|
diffsynth_engine/utils/memory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
186
186
|
diffsynth_engine/utils/memory/linear_regression.py,sha256=oW_EQEw13oPoyUrxiL8A7Ksa5AuJ2ynI2qhCbfAuZbg,3930
|
|
187
187
|
diffsynth_engine/utils/memory/memory_predcit_model.py,sha256=EXprSl_zlVjgfMWNXP-iw83Ot3hyMcgYaRPv-dvyL84,3943
|
|
188
|
-
diffsynth_engine-0.6.1.
|
|
189
|
-
diffsynth_engine-0.6.1.
|
|
190
|
-
diffsynth_engine-0.6.1.
|
|
191
|
-
diffsynth_engine-0.6.1.
|
|
192
|
-
diffsynth_engine-0.6.1.
|
|
188
|
+
diffsynth_engine-0.6.1.dev4.dist-info/licenses/LICENSE,sha256=x7aBqQuVI0IYnftgoTPI_A0I_rjdjPPQkjnU6N2nikM,11346
|
|
189
|
+
diffsynth_engine-0.6.1.dev4.dist-info/METADATA,sha256=TW2wclPSmra3hOTVtR1hef2-XuaaP61xjnss7y3r4SM,1163
|
|
190
|
+
diffsynth_engine-0.6.1.dev4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
191
|
+
diffsynth_engine-0.6.1.dev4.dist-info/top_level.txt,sha256=6zgbiIzEHLbhgDKRyX0uBJOV3F6VnGGBRIQvSiYYn6w,17
|
|
192
|
+
diffsynth_engine-0.6.1.dev4.dist-info/RECORD,,
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev3.dist-info → diffsynth_engine-0.6.1.dev4.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev3.dist-info → diffsynth_engine-0.6.1.dev4.dist-info}/top_level.txt
RENAMED
|
File without changes
|