Spaces:
Running
on
Zero
Running
on
Zero
Update hy3dshape/hy3dshape/pipelines.py
Browse files
hy3dshape/hy3dshape/pipelines.py
CHANGED
|
@@ -602,7 +602,7 @@ class Hunyuan3DDiTPipeline:
|
|
| 602 |
batch_size = image.shape[0]
|
| 603 |
|
| 604 |
t_dtype = torch.long
|
| 605 |
-
inner_scheduler = copy.deepcopy(scheduler)
|
| 606 |
timesteps, num_inference_steps = retrieve_timesteps(
|
| 607 |
inner_scheduler, num_inference_steps, device, timesteps, sigmas)
|
| 608 |
|
|
@@ -735,7 +735,7 @@ class Hunyuan3DDiTFlowMatchingPipeline(Hunyuan3DDiTPipeline):
|
|
| 735 |
|
| 736 |
batch_size = image.shape[0]
|
| 737 |
|
| 738 |
-
inner_scheduler = copy.deepcopy(scheduler)
|
| 739 |
|
| 740 |
# 5. Prepare timesteps
|
| 741 |
# NOTE: this is slightly different from common usage, we start from 0.
|
|
|
|
| 602 |
batch_size = image.shape[0]
|
| 603 |
|
| 604 |
t_dtype = torch.long
|
| 605 |
+
inner_scheduler = copy.deepcopy(self.scheduler)
|
| 606 |
timesteps, num_inference_steps = retrieve_timesteps(
|
| 607 |
inner_scheduler, num_inference_steps, device, timesteps, sigmas)
|
| 608 |
|
|
|
|
| 735 |
|
| 736 |
batch_size = image.shape[0]
|
| 737 |
|
| 738 |
+
inner_scheduler = copy.deepcopy(self.scheduler)
|
| 739 |
|
| 740 |
# 5. Prepare timesteps
|
| 741 |
# NOTE: this is slightly different from common usage, we start from 0.
|