Closed O-O1024 closed 3 months ago
另外文生图也出错了
/root/miniconda3/lib/python3.10/site-packages/diffusers/models/transformers/transformer_2d.py:34: FutureWarning: `Transformer2DModelOutput` is deprecated and will be removed in version 1.0.0. Importing `Transformer2DModelOutput` from `diffusers.models.transformer_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.modeling_outputs import Transformer2DModelOutput`, instead.
deprecate("Transformer2DModelOutput", "1.0.0", deprecation_message)
model_name= models/Diffusion_Transformer/EasyAnimateV3-XL-2-InP-512x512
loaded 2D transformer's pretrained weights from models/Diffusion_Transformer/EasyAnimateV3-XL-2-InP-512x512/transformer ...
The config attributes {'casual_3d': False, 'casual_3d_upsampler_index': None, 'decay': 0.9999, 'enable_uvit': True, 'fake_3d': False, 'inv_gamma': 1.0, 'min_decay': 0.0, 'motion_module_kwargs_even': {'attention_block_types': ['Temporal_Self', 'Temporal_Self'], 'block_size': 1, 'num_attention_heads': 16, 'num_transformer_block': 1, 'temporal_attention_dim_div': 1, 'temporal_position_encoding': True, 'temporal_position_encoding_max_len': 4096}, 'motion_module_kwargs_odd': {'attention_block_types': ['Temporal_Self', 'Global_Self'], 'block_size': 1, 'num_attention_heads': 16, 'num_transformer_block': 1, 'temporal_attention_dim_div': 1, 'temporal_position_encoding': True, 'temporal_position_encoding_max_len': 4096}, 'motion_module_type': 'Vanilla', 'optimization_step': 4400, 'patch_3d': False, 'power': 0.6666666666666666, 'time_patch_size': None, 'time_position_encoding_before_transformer': False, 'update_after_step': 0, 'use_ema_warmup': False} were passed to Transformer2DModel, but are not expected and will be ignored. Please verify your config.json configuration file.
Traceback (most recent call last):
File "/root/EasyAnimate/predict_t2i.py", line 57, in <module>
transformer = Transformer2DModel.from_pretrained(
File "/root/EasyAnimate/easyanimate/models/transformer2d.py", line 518, in from_pretrained
model = cls.from_config(config, **transformer_additional_kwargs)
File "/root/miniconda3/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 260, in from_config
model = cls(**init_dict)
File "/root/miniconda3/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 658, in inner_init
init(self, *args, **init_kwargs)
File "/root/EasyAnimate/easyanimate/models/transformer2d.py", line 199, in __init__
basic_block = {
KeyError: 'global_motionmodule'
另外文生图也出错了
Traceback (most recent call last): File "/root/EasyAnimate/predict_t2i.py", line 57, in <module> transformer = Transformer2DModel.from_pretrained( File "/root/EasyAnimate/easyanimate/models/transformer2d.py", line 518, in from_pretrained model = cls.from_config(config, **transformer_additional_kwargs) File "/root/miniconda3/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 260, in from_config model = cls(**init_dict) File "/root/miniconda3/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 658, in inner_init init(self, *args, **init_kwargs) File "/root/EasyAnimate/easyanimate/models/transformer2d.py", line 199, in __init__ basic_block = { KeyError: 'global_motionmodule'
是不是没有载入模型
The config attributes
在这里出错了:
transformer = Transformer2DModel.from_pretrained(
model_name,
subfolder="transformer"
).to(weight_dtype)
t2i, t2v, i2v 运行时都有有一句 The config attributes {..................} were passed to Transformer2DModel, but are not expected and will be ignored. Please verify your config.json configuration file.
不知道是不是模型的问题,我用的是 https://huggingface.co/Kijai/EasyAnimate-bf16,
第一个问题是图片格式导致的吗?
The config attributes
在这里出错了:
transformer = Transformer2DModel.from_pretrained( model_name, subfolder="transformer" ).to(weight_dtype)
t2i, t2v, i2v 运行时都有有一句 The config attributes {..................} were passed to Transformer2DModel, but are not expected and will be ignored. Please verify your config.json configuration file.
不知道是不是模型的问题,我用的是 https://huggingface.co/Kijai/EasyAnimate-bf16,
第一个问题是图片格式导致的吗?
你知道的,是模型的问题,下面才是我们模型在hf上的地址
https://huggingface.co/alibaba-pai/EasyAnimateV3-XL-2-InP-768x768
如果只设置起始图片,是可以生成视频的。但是加上结尾图片,就出错了,图片是 png 格式