Skip to content

Commit

Permalink
[fix]fixed some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MegActor-Sigma committed Jul 2, 2024
1 parent 49e1082 commit 16e7cdf
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 55 deletions.
13 changes: 8 additions & 5 deletions animate/motion_module.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 7 additions & 8 deletions animate/unet_magic_noiseAttenST_Ada/animate.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 8 additions & 5 deletions animate/unet_magic_noiseAttenST_Ada/appearance_encoder.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down
13 changes: 8 additions & 5 deletions animate/unet_magic_noiseAttenST_Ada/attention.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down
13 changes: 8 additions & 5 deletions animate/unet_magic_noiseAttenST_Ada/controlnet.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down
13 changes: 8 additions & 5 deletions animate/unet_magic_noiseAttenST_Ada/pipeline.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
13 changes: 8 additions & 5 deletions animate/unet_magic_noiseAttenST_Ada/unet.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
13 changes: 8 additions & 5 deletions animate/unet_magic_noiseAttenST_Ada/unet_3d_blocks.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
13 changes: 8 additions & 5 deletions animate/unet_magic_noiseAttenST_Ada/unet_controlnet.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down
15 changes: 8 additions & 7 deletions train.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 16e7cdf

Please sign in to comment.