From 16e7cdf059c93475cd8edbb1d597fb1954620333 Mon Sep 17 00:00:00 2001 From: wujuhao Date: Tue, 2 Jul 2024 17:42:29 +0800 Subject: [PATCH] [fix]fixed some comments --- animate/motion_module.py | 13 ++++++++----- animate/unet_magic_noiseAttenST_Ada/animate.py | 15 +++++++-------- .../appearance_encoder.py | 13 ++++++++----- animate/unet_magic_noiseAttenST_Ada/attention.py | 13 ++++++++----- animate/unet_magic_noiseAttenST_Ada/controlnet.py | 13 ++++++++----- animate/unet_magic_noiseAttenST_Ada/pipeline.py | 13 ++++++++----- animate/unet_magic_noiseAttenST_Ada/unet.py | 13 ++++++++----- .../unet_magic_noiseAttenST_Ada/unet_3d_blocks.py | 13 ++++++++----- .../unet_controlnet.py | 13 ++++++++----- train.py | 15 ++++++++------- 10 files changed, 79 insertions(+), 55 deletions(-) diff --git a/animate/motion_module.py b/animate/motion_module.py index 2addfe0..7086713 100644 --- a/animate/motion_module.py +++ b/animate/motion_module.py @@ -1,8 +1,11 @@ -# ************************************************************************* -# This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Mo- -# difications”). All Bytedance Inc.'s Modifications are Copyright (2023) B- -# ytedance Inc.. -# ************************************************************************* +# Copyright 2024 Megvii inc. +# +# Copyright (2024) MegActor Authors. +# +# Megvii Inc. retain all intellectual property and proprietary rights in +# and to this material, related documentation and any modifications thereto. +# Any use, reproduction, disclosure or distribution of this material and related +# documentation without an express license agreement from Megvii Inc. is strictly prohibited. # Adapted from https://github.com/guoyww/AnimateDiff from dataclasses import dataclass diff --git a/animate/unet_magic_noiseAttenST_Ada/animate.py b/animate/unet_magic_noiseAttenST_Ada/animate.py index 5666fe2..d54183c 100644 --- a/animate/unet_magic_noiseAttenST_Ada/animate.py +++ b/animate/unet_magic_noiseAttenST_Ada/animate.py @@ -1,13 +1,12 @@ -# Copyright 2023 ByteDance and/or its affiliates. +# Copyright 2024 Megvii inc. # -# Copyright (2023) MagicAnimate Authors +# Copyright (2024) MegActor Authors. # -# ByteDance, its affiliates and licensors retain all intellectual -# property and proprietary rights in and to this material, related -# documentation and any modifications thereto. Any use, reproduction, -# disclosure or distribution of this material and related documentation -# without an express license agreement from ByteDance or -# its affiliates is strictly prohibited. +# Megvii Inc. retain all intellectual property and proprietary rights in +# and to this material, related documentation and any modifications thereto. +# Any use, reproduction, disclosure or distribution of this material and related +# documentation without an express license agreement from Megvii Inc. is strictly prohibited. + import argparse import argparse import datetime diff --git a/animate/unet_magic_noiseAttenST_Ada/appearance_encoder.py b/animate/unet_magic_noiseAttenST_Ada/appearance_encoder.py index 6b58da0..9838879 100644 --- a/animate/unet_magic_noiseAttenST_Ada/appearance_encoder.py +++ b/animate/unet_magic_noiseAttenST_Ada/appearance_encoder.py @@ -1,8 +1,11 @@ -# ************************************************************************* -# This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Mo- -# difications”). All Bytedance Inc.'s Modifications are Copyright (2023) B- -# ytedance Inc.. -# ************************************************************************* +# Copyright 2024 Megvii inc. +# +# Copyright (2024) MegActor Authors. +# +# Megvii Inc. retain all intellectual property and proprietary rights in +# and to this material, related documentation and any modifications thereto. +# Any use, reproduction, disclosure or distribution of this material and related +# documentation without an express license agreement from Megvii Inc. is strictly prohibited. # Copyright 2023 The HuggingFace Team. All rights reserved. # diff --git a/animate/unet_magic_noiseAttenST_Ada/attention.py b/animate/unet_magic_noiseAttenST_Ada/attention.py index 71e8b5d..f7021ec 100644 --- a/animate/unet_magic_noiseAttenST_Ada/attention.py +++ b/animate/unet_magic_noiseAttenST_Ada/attention.py @@ -1,8 +1,11 @@ -# ************************************************************************* -# This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Mo- -# difications”). All Bytedance Inc.'s Modifications are Copyright (2023) B- -# ytedance Inc.. -# ************************************************************************* +# Copyright 2024 Megvii inc. +# +# Copyright (2024) MegActor Authors. +# +# Megvii Inc. retain all intellectual property and proprietary rights in +# and to this material, related documentation and any modifications thereto. +# Any use, reproduction, disclosure or distribution of this material and related +# documentation without an express license agreement from Megvii Inc. is strictly prohibited. # Copyright 2023 The HuggingFace Team. All rights reserved. # diff --git a/animate/unet_magic_noiseAttenST_Ada/controlnet.py b/animate/unet_magic_noiseAttenST_Ada/controlnet.py index a3a0c04..9ade837 100644 --- a/animate/unet_magic_noiseAttenST_Ada/controlnet.py +++ b/animate/unet_magic_noiseAttenST_Ada/controlnet.py @@ -1,8 +1,11 @@ -# ************************************************************************* -# This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Mo- -# difications”). All Bytedance Inc.'s Modifications are Copyright (2023) B- -# ytedance Inc.. -# ************************************************************************* +# Copyright 2024 Megvii inc. +# +# Copyright (2024) MegActor Authors. +# +# Megvii Inc. retain all intellectual property and proprietary rights in +# and to this material, related documentation and any modifications thereto. +# Any use, reproduction, disclosure or distribution of this material and related +# documentation without an express license agreement from Megvii Inc. is strictly prohibited. # Copyright 2023 The HuggingFace Team. All rights reserved. # diff --git a/animate/unet_magic_noiseAttenST_Ada/pipeline.py b/animate/unet_magic_noiseAttenST_Ada/pipeline.py index 00ee3e0..9af9857 100644 --- a/animate/unet_magic_noiseAttenST_Ada/pipeline.py +++ b/animate/unet_magic_noiseAttenST_Ada/pipeline.py @@ -1,8 +1,11 @@ -# ************************************************************************* -# This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Mo- -# difications”). All Bytedance Inc.'s Modifications are Copyright (2023) B- -# ytedance Inc.. -# ************************************************************************* +# Copyright 2024 Megvii inc. +# +# Copyright (2024) MegActor Authors. +# +# Megvii Inc. retain all intellectual property and proprietary rights in +# and to this material, related documentation and any modifications thereto. +# Any use, reproduction, disclosure or distribution of this material and related +# documentation without an express license agreement from Megvii Inc. is strictly prohibited. # Adapted from https://github.com/showlab/Tune-A-Video/blob/main/tuneavideo/pipelines/pipeline_tuneavideo.py diff --git a/animate/unet_magic_noiseAttenST_Ada/unet.py b/animate/unet_magic_noiseAttenST_Ada/unet.py index 09e5e11..6db11b2 100644 --- a/animate/unet_magic_noiseAttenST_Ada/unet.py +++ b/animate/unet_magic_noiseAttenST_Ada/unet.py @@ -1,8 +1,11 @@ -# ************************************************************************* -# This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Mo- -# difications”). All Bytedance Inc.'s Modifications are Copyright (2023) B- -# ytedance Inc.. -# ************************************************************************* +# Copyright 2024 Megvii inc. +# +# Copyright (2024) MegActor Authors. +# +# Megvii Inc. retain all intellectual property and proprietary rights in +# and to this material, related documentation and any modifications thereto. +# Any use, reproduction, disclosure or distribution of this material and related +# documentation without an express license agreement from Megvii Inc. is strictly prohibited. # Adapted from https://github.com/guoyww/AnimateDiff diff --git a/animate/unet_magic_noiseAttenST_Ada/unet_3d_blocks.py b/animate/unet_magic_noiseAttenST_Ada/unet_3d_blocks.py index a311ce6..37f9b96 100644 --- a/animate/unet_magic_noiseAttenST_Ada/unet_3d_blocks.py +++ b/animate/unet_magic_noiseAttenST_Ada/unet_3d_blocks.py @@ -1,8 +1,11 @@ -# ************************************************************************* -# This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Mo- -# difications”). All Bytedance Inc.'s Modifications are Copyright (2023) B- -# ytedance Inc.. -# ************************************************************************* +# Copyright 2024 Megvii inc. +# +# Copyright (2024) MegActor Authors. +# +# Megvii Inc. retain all intellectual property and proprietary rights in +# and to this material, related documentation and any modifications thereto. +# Any use, reproduction, disclosure or distribution of this material and related +# documentation without an express license agreement from Megvii Inc. is strictly prohibited. # Adapted from https://github.com/guoyww/AnimateDiff diff --git a/animate/unet_magic_noiseAttenST_Ada/unet_controlnet.py b/animate/unet_magic_noiseAttenST_Ada/unet_controlnet.py index 60dc1d6..81daa4e 100644 --- a/animate/unet_magic_noiseAttenST_Ada/unet_controlnet.py +++ b/animate/unet_magic_noiseAttenST_Ada/unet_controlnet.py @@ -1,8 +1,11 @@ -# ************************************************************************* -# This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Mo- -# difications”). All Bytedance Inc.'s Modifications are Copyright (2023) B- -# ytedance Inc.. -# ************************************************************************* +# Copyright 2024 Megvii inc. +# +# Copyright (2024) MegActor Authors. +# +# Megvii Inc. retain all intellectual property and proprietary rights in +# and to this material, related documentation and any modifications thereto. +# Any use, reproduction, disclosure or distribution of this material and related +# documentation without an express license agreement from Megvii Inc. is strictly prohibited. # Copyright 2023 The HuggingFace Team. All rights reserved. # diff --git a/train.py b/train.py index eb88930..fbdcaab 100644 --- a/train.py +++ b/train.py @@ -1,11 +1,12 @@ -# moveFace,黑白人脸训练脚本 +# Copyright 2024 Megvii inc. +# +# Copyright (2024) MegActor Authors. +# +# Megvii Inc. retain all intellectual property and proprietary rights in +# and to this material, related documentation and any modifications thereto. +# Any use, reproduction, disclosure or distribution of this material and related +# documentation without an express license agreement from Megvii Inc. is strictly prohibited. -# 同时支持使用换脸数据和风格化数据。这里会根据原视频GT的人脸检测框,来裁剪换脸数据或者是风格化数据 -# 逻辑为:从数据集中获取两个,一个是原始视频,一个是换脸数据 -# 如果没有换脸数据,换脸那个key将依然是原始视频 -# 后续所有的人脸检测框均从原始视频获取,并将从换脸数据那个key获取到的value作为Condition进行裁剪 - -# 不论是否有换脸数据,均使用Condition增广 import os import math import random