add sample_size to transformer/config.json which is required by recent versions of diffusers
Browse filesTraceback (most recent call last):
File "/workspace/hyvideo_sqs_worker.py", line 59, in <module>
pipe = xFuserHunyuanDiTPipeline.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/xfuser/model_executor/pipelines/pipeline_hunyuandit.py", line 50, in from_pretrained
pipeline = HunyuanDiTPipeline.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/diffusers/pipelines/pipeline_utils.py", line 1031, in from_pretrained
model = pipeline_class(**init_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py", line 247, in __init__
self.transformer.config.sample_size
AttributeError: 'FrozenDict' object has no attribute 'sample_size'
- transformer/config.json +1 -0
|
@@ -10,6 +10,7 @@
|
|
| 10 |
"num_refiner_layers": 2,
|
| 11 |
"num_single_layers": 40,
|
| 12 |
"out_channels": 16,
|
|
|
|
| 13 |
"patch_size": 2,
|
| 14 |
"patch_size_t": 1,
|
| 15 |
"pooled_projection_dim": 768,
|
|
|
|
| 10 |
"num_refiner_layers": 2,
|
| 11 |
"num_single_layers": 40,
|
| 12 |
"out_channels": 16,
|
| 13 |
+
"sample_size": 128,
|
| 14 |
"patch_size": 2,
|
| 15 |
"patch_size_t": 1,
|
| 16 |
"pooled_projection_dim": 768,
|