Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huggingface上的预训练权重 #22

Open
XiaoZong0 opened this issue Jul 2, 2024 · 0 comments
Open

huggingface上的预训练权重 #22

XiaoZong0 opened this issue Jul 2, 2024 · 0 comments

Comments

@XiaoZong0
Copy link

按照readme里给出的命令:git clone https://huggingface.co/HVSiniX/RawVideoDriven && ln -s RawVideoDriven/weights weights
下载完之后inference的时候报错:
WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
PyTorch 2.0.0+cu118 with CUDA 1108 (you have 1.13.0)
Python 3.10.11 (you have 3.10.13)
Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
Memory-efficient attention, SwiGLU, sparse and more won't be available.
Set XFORMERS_MORE_DETAILS=1 for more details
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:249: FutureWarning: AutoencoderTinyBlock is deprecated and will be removed in version 0.29. Importing AutoencoderTinyBlock from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AutoencoderTinyBlock, instead.
deprecate("AutoencoderTinyBlock", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:254: FutureWarning: UNetMidBlock2D is deprecated and will be removed in version 0.29. Importing UNetMidBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2D, instead.
deprecate("UNetMidBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:259: FutureWarning: UNetMidBlock2DCrossAttn is deprecated and will be removed in version 0.29. Importing UNetMidBlock2DCrossAttn from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2DCrossAttn, instead.
deprecate("UNetMidBlock2DCrossAttn", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:264: FutureWarning: UNetMidBlock2DSimpleCrossAttn is deprecated and will be removed in version 0.29. Importing UNetMidBlock2DSimpleCrossAttn from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2DSimpleCrossAttn, instead.
deprecate("UNetMidBlock2DSimpleCrossAttn", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:269: FutureWarning: AttnDownBlock2D is deprecated and will be removed in version 0.29. Importing AttnDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnDownBlock2D, instead.
deprecate("AttnDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:274: FutureWarning: CrossAttnDownBlock2D is deprecated and will be removed in version 0.29. Importing AttnDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import CrossAttnDownBlock2D, instead.
deprecate("CrossAttnDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:279: FutureWarning: DownBlock2D is deprecated and will be removed in version 0.29. Importing DownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import DownBlock2D, instead.
deprecate("DownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:284: FutureWarning: AttnDownEncoderBlock2D is deprecated and will be removed in version 0.29. Importing AttnDownEncoderBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnDownEncoderBlock2D, instead.
deprecate("AttnDownEncoderBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:289: FutureWarning: AttnSkipDownBlock2D is deprecated and will be removed in version 0.29. Importing AttnSkipDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnSkipDownBlock2D, instead.
deprecate("AttnSkipDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:294: FutureWarning: SkipDownBlock2D is deprecated and will be removed in version 0.29. Importing SkipDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import SkipDownBlock2D, instead.
deprecate("SkipDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:299: FutureWarning: ResnetDownsampleBlock2D is deprecated and will be removed in version 0.29. Importing ResnetDownsampleBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import ResnetDownsampleBlock2D, instead.
deprecate("ResnetDownsampleBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:304: FutureWarning: SimpleCrossAttnDownBlock2D is deprecated and will be removed in version 0.29. Importing SimpleCrossAttnDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import SimpleCrossAttnDownBlock2D, instead.
deprecate("SimpleCrossAttnDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:309: FutureWarning: KDownBlock2D is deprecated and will be removed in version 0.29. Importing KDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KDownBlock2D, instead.
deprecate("KDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:314: FutureWarning: KCrossAttnDownBlock2D is deprecated and will be removed in version 0.29. Importing KCrossAttnDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KCrossAttnDownBlock2D, instead.
deprecate("KCrossAttnDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:319: FutureWarning: AttnUpBlock2D is deprecated and will be removed in version 0.29. Importing AttnUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnUpBlock2D, instead.
deprecate("AttnUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:324: FutureWarning: CrossAttnUpBlock2D is deprecated and will be removed in version 0.29. Importing CrossAttnUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import CrossAttnUpBlock2D, instead.
deprecate("CrossAttnUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:329: FutureWarning: UpBlock2D is deprecated and will be removed in version 0.29. Importing UpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UpBlock2D, instead.
deprecate("UpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:334: FutureWarning: UpDecoderBlock2D is deprecated and will be removed in version 0.29. Importing UpDecoderBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UpDecoderBlock2D, instead.
deprecate("UpDecoderBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:339: FutureWarning: AttnUpDecoderBlock2D is deprecated and will be removed in version 0.29. Importing AttnUpDecoderBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnUpDecoderBlock2D, instead.
deprecate("AttnUpDecoderBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:344: FutureWarning: AttnSkipUpBlock2D is deprecated and will be removed in version 0.29. Importing AttnSkipUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnSkipUpBlock2D, instead.
deprecate("AttnSkipUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:349: FutureWarning: SkipUpBlock2D is deprecated and will be removed in version 0.29. Importing SkipUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import SkipUpBlock2D, instead.
deprecate("SkipUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:354: FutureWarning: ResnetUpsampleBlock2D is deprecated and will be removed in version 0.29. Importing ResnetUpsampleBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import ResnetUpsampleBlock2D, instead.
deprecate("ResnetUpsampleBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:359: FutureWarning: SimpleCrossAttnUpBlock2D is deprecated and will be removed in version 0.29. Importing SimpleCrossAttnUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import SimpleCrossAttnUpBlock2D, instead.
deprecate("SimpleCrossAttnUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:364: FutureWarning: KUpBlock2D is deprecated and will be removed in version 0.29. Importing KUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KUpBlock2D, instead.
deprecate("KUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:369: FutureWarning: KCrossAttnUpBlock2D is deprecated and will be removed in version 0.29. Importing KCrossAttnUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KCrossAttnUpBlock2D, instead.
deprecate("KCrossAttnUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:375: FutureWarning: KAttentionBlock is deprecated and will be removed in version 0.29. Importing KAttentionBlock from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KAttentionBlock, instead.
deprecate("KAttentionBlock", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_condition.py:20: FutureWarning: UNet2DConditionOutput is deprecated and will be removed in version 0.29. Importing UNet2DConditionOutput from diffusers.models.unet_2d_condition is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_condition import UNet2DConditionOutput, instead.
deprecate("UNet2DConditionOutput", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_condition.py:25: FutureWarning: UNet2DConditionModel is deprecated and will be removed in version 0.29. Importing UNet2DConditionModel from diffusers.models.unet_2d_condition is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_condition import UNet2DConditionModel, instead.
deprecate("UNet2DConditionModel", "0.29", deprecation_message)
Initializing UNet MagicAnimate Pipeline...
Traceback (most recent call last):
File "/home/zx/megactor/eval.py", line 235, in
eval(args.source, args.driver,
File "/home/zx/megactor/eval.py", line 55, in eval
pipeline = MagicAnimate(config=config,
File "/home/zx/megactor/animate/unet_magic_noiseAttenST_Ada/animate.py", line 91, in init
self.text_encoder = CLIPTextModel.from_pretrained(config['pretrained_model_path'], subfolder="text_encoder")
File "/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2629, in from_pretrained
state_dict = load_state_dict(resolved_archive_file)
File "/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/transformers/modeling_utils.py", line 447, in load_state_dict
with safe_open(checkpoint_file, framework="pt") as f:
safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge
(megactor) zx@ubuntu:~/megactor$ python eval.py --config configs/inference/inference.yaml --source ./test_data/source/1.png --driver ./test_data/driver/1.mp4 --contour-preserve
WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
PyTorch 2.0.0+cu118 with CUDA 1108 (you have 1.13.0)
Python 3.10.11 (you have 3.10.13)
Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
Memory-efficient attention, SwiGLU, sparse and more won't be available.
Set XFORMERS_MORE_DETAILS=1 for more details
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:249: FutureWarning: AutoencoderTinyBlock is deprecated and will be removed in version 0.29. Importing AutoencoderTinyBlock from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AutoencoderTinyBlock, instead.
deprecate("AutoencoderTinyBlock", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:254: FutureWarning: UNetMidBlock2D is deprecated and will be removed in version 0.29. Importing UNetMidBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2D, instead.
deprecate("UNetMidBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:259: FutureWarning: UNetMidBlock2DCrossAttn is deprecated and will be removed in version 0.29. Importing UNetMidBlock2DCrossAttn from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2DCrossAttn, instead.
deprecate("UNetMidBlock2DCrossAttn", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:264: FutureWarning: UNetMidBlock2DSimpleCrossAttn is deprecated and will be removed in version 0.29. Importing UNetMidBlock2DSimpleCrossAttn from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2DSimpleCrossAttn, instead.
deprecate("UNetMidBlock2DSimpleCrossAttn", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:269: FutureWarning: AttnDownBlock2D is deprecated and will be removed in version 0.29. Importing AttnDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnDownBlock2D, instead.
deprecate("AttnDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:274: FutureWarning: CrossAttnDownBlock2D is deprecated and will be removed in version 0.29. Importing AttnDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import CrossAttnDownBlock2D, instead.
deprecate("CrossAttnDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:279: FutureWarning: DownBlock2D is deprecated and will be removed in version 0.29. Importing DownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import DownBlock2D, instead.
deprecate("DownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:284: FutureWarning: AttnDownEncoderBlock2D is deprecated and will be removed in version 0.29. Importing AttnDownEncoderBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnDownEncoderBlock2D, instead.
deprecate("AttnDownEncoderBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:289: FutureWarning: AttnSkipDownBlock2D is deprecated and will be removed in version 0.29. Importing AttnSkipDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnSkipDownBlock2D, instead.
deprecate("AttnSkipDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:294: FutureWarning: SkipDownBlock2D is deprecated and will be removed in version 0.29. Importing SkipDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import SkipDownBlock2D, instead.
deprecate("SkipDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:299: FutureWarning: ResnetDownsampleBlock2D is deprecated and will be removed in version 0.29. Importing ResnetDownsampleBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import ResnetDownsampleBlock2D, instead.
deprecate("ResnetDownsampleBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:304: FutureWarning: SimpleCrossAttnDownBlock2D is deprecated and will be removed in version 0.29. Importing SimpleCrossAttnDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import SimpleCrossAttnDownBlock2D, instead.
deprecate("SimpleCrossAttnDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:309: FutureWarning: KDownBlock2D is deprecated and will be removed in version 0.29. Importing KDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KDownBlock2D, instead.
deprecate("KDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:314: FutureWarning: KCrossAttnDownBlock2D is deprecated and will be removed in version 0.29. Importing KCrossAttnDownBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KCrossAttnDownBlock2D, instead.
deprecate("KCrossAttnDownBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:319: FutureWarning: AttnUpBlock2D is deprecated and will be removed in version 0.29. Importing AttnUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnUpBlock2D, instead.
deprecate("AttnUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:324: FutureWarning: CrossAttnUpBlock2D is deprecated and will be removed in version 0.29. Importing CrossAttnUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import CrossAttnUpBlock2D, instead.
deprecate("CrossAttnUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:329: FutureWarning: UpBlock2D is deprecated and will be removed in version 0.29. Importing UpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UpBlock2D, instead.
deprecate("UpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:334: FutureWarning: UpDecoderBlock2D is deprecated and will be removed in version 0.29. Importing UpDecoderBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UpDecoderBlock2D, instead.
deprecate("UpDecoderBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:339: FutureWarning: AttnUpDecoderBlock2D is deprecated and will be removed in version 0.29. Importing AttnUpDecoderBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnUpDecoderBlock2D, instead.
deprecate("AttnUpDecoderBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:344: FutureWarning: AttnSkipUpBlock2D is deprecated and will be removed in version 0.29. Importing AttnSkipUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnSkipUpBlock2D, instead.
deprecate("AttnSkipUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:349: FutureWarning: SkipUpBlock2D is deprecated and will be removed in version 0.29. Importing SkipUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import SkipUpBlock2D, instead.
deprecate("SkipUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:354: FutureWarning: ResnetUpsampleBlock2D is deprecated and will be removed in version 0.29. Importing ResnetUpsampleBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import ResnetUpsampleBlock2D, instead.
deprecate("ResnetUpsampleBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:359: FutureWarning: SimpleCrossAttnUpBlock2D is deprecated and will be removed in version 0.29. Importing SimpleCrossAttnUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import SimpleCrossAttnUpBlock2D, instead.
deprecate("SimpleCrossAttnUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:364: FutureWarning: KUpBlock2D is deprecated and will be removed in version 0.29. Importing KUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KUpBlock2D, instead.
deprecate("KUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:369: FutureWarning: KCrossAttnUpBlock2D is deprecated and will be removed in version 0.29. Importing KCrossAttnUpBlock2D from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KCrossAttnUpBlock2D, instead.
deprecate("KCrossAttnUpBlock2D", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:375: FutureWarning: KAttentionBlock is deprecated and will be removed in version 0.29. Importing KAttentionBlock from diffusers.models.unet_2d_blocks is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KAttentionBlock, instead.
deprecate("KAttentionBlock", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_condition.py:20: FutureWarning: UNet2DConditionOutput is deprecated and will be removed in version 0.29. Importing UNet2DConditionOutput from diffusers.models.unet_2d_condition is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_condition import UNet2DConditionOutput, instead.
deprecate("UNet2DConditionOutput", "0.29", deprecation_message)
/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/diffusers/models/unet_2d_condition.py:25: FutureWarning: UNet2DConditionModel is deprecated and will be removed in version 0.29. Importing UNet2DConditionModel from diffusers.models.unet_2d_condition is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_condition import UNet2DConditionModel, instead.
deprecate("UNet2DConditionModel", "0.29", deprecation_message)
Initializing UNet MagicAnimate Pipeline...
Traceback (most recent call last):
File "/home/zx/megactor/eval.py", line 235, in
eval(args.source, args.driver,
File "/home/zx/megactor/eval.py", line 55, in eval
pipeline = MagicAnimate(config=config,
File "/home/zx/megactor/animate/unet_magic_noiseAttenST_Ada/animate.py", line 91, in init
self.text_encoder = CLIPTextModel.from_pretrained(config['pretrained_model_path'], subfolder="text_encoder")
File "/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2629, in from_pretrained
state_dict = load_state_dict(resolved_archive_file)
File "/home/zx/anaconda3/envs/megactor/lib/python3.10/site-packages/transformers/modeling_utils.py", line 447, in load_state_dict
with safe_open(checkpoint_file, framework="pt") as f:
safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge

在网上搜索的safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge这个错误是因为模型权重损坏,这是怎么回事啊?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant