Update engineers/deformes3D.py
Browse files- engineers/deformes3D.py +5 -3
engineers/deformes3D.py
CHANGED
|
@@ -96,12 +96,14 @@ class Deformes3DEngine:
|
|
| 96 |
logger.info(f" - Step B: Generating enrichment with LTX...")
|
| 97 |
|
| 98 |
ltx_context_paths = []
|
|
|
|
|
|
|
|
|
|
| 99 |
ltx_context_paths = list(reversed(context_paths))
|
| 100 |
logger.info(f" - LTX Context Order (Reversed): {[os.path.basename(p) for p in ltx_context_paths]}")
|
| 101 |
|
| 102 |
|
| 103 |
ltx_conditioning_items = []
|
| 104 |
-
context_paths = [current_base_image_path] + [p for p in general_ref_paths if p != current_base_image_path][:3]
|
| 105 |
|
| 106 |
weight = 0.6
|
| 107 |
for idx, path in enumerate(ltx_context_paths):
|
|
@@ -115,12 +117,12 @@ class Deformes3DEngine:
|
|
| 115 |
if idx >= 0:
|
| 116 |
weight -= 0.1
|
| 117 |
|
| 118 |
-
ltx_base_params = {"guidance_scale":
|
| 119 |
generated_latents, _ = ltx_manager_singleton.generate_latent_fragment(
|
| 120 |
height=height, width=width,
|
| 121 |
conditioning_items_data=ltx_conditioning_items,
|
| 122 |
motion_prompt=flux_prompt,
|
| 123 |
-
video_total_frames=
|
| 124 |
video_fps=24,
|
| 125 |
**ltx_base_params
|
| 126 |
)
|
|
|
|
| 96 |
logger.info(f" - Step B: Generating enrichment with LTX...")
|
| 97 |
|
| 98 |
ltx_context_paths = []
|
| 99 |
+
context_paths = []
|
| 100 |
+
context_paths = [current_base_image_path] + [p for p in general_ref_paths if p != current_base_image_path][:3]
|
| 101 |
+
|
| 102 |
ltx_context_paths = list(reversed(context_paths))
|
| 103 |
logger.info(f" - LTX Context Order (Reversed): {[os.path.basename(p) for p in ltx_context_paths]}")
|
| 104 |
|
| 105 |
|
| 106 |
ltx_conditioning_items = []
|
|
|
|
| 107 |
|
| 108 |
weight = 0.6
|
| 109 |
for idx, path in enumerate(ltx_context_paths):
|
|
|
|
| 117 |
if idx >= 0:
|
| 118 |
weight -= 0.1
|
| 119 |
|
| 120 |
+
ltx_base_params = {"guidance_scale": 1.0, "stg_scale": 0.001, "num_inference_steps": 25}
|
| 121 |
generated_latents, _ = ltx_manager_singleton.generate_latent_fragment(
|
| 122 |
height=height, width=width,
|
| 123 |
conditioning_items_data=ltx_conditioning_items,
|
| 124 |
motion_prompt=flux_prompt,
|
| 125 |
+
video_total_frames=48,
|
| 126 |
video_fps=24,
|
| 127 |
**ltx_base_params
|
| 128 |
)
|