Skip to content

Instantly share code, notes, and snippets.

View tom-choi's full-sized avatar
🐢
On vacation

TOM_CI tom-choi

🐢
On vacation
View GitHub Profile
@tom-choi
tom-choi / fixWuwaAnimation.py
Created September 30, 2025 09:28
Wuwa删除当前选中骨架对象中所有以 "Bip" 开头的骨骼的关键帧
import bpy
# 删除当前选中骨架对象中所有以 "Bip" 开头的骨骼的关键帧
# 确保处于正确的上下文中
if bpy.context.object and bpy.context.object.type == 'ARMATURE':
armature = bpy.context.object # 获取当前选中的骨架对象
action = armature.animation_data.action # 获取当前动作
# 检查是否有动作
if action:
#遍历动作中的每个 FCurve
UNetModel(
(time_embed): Sequential(
(0): Linear(in_features=320, out_features=1280, bias=True)
(1): SiLU()
(2): Linear(in_features=1280, out_features=1280, bias=True)
)
(label_emb): Sequential(
(0): Sequential(
(0): Linear(in_features=2816, out_features=1280, bias=True)
(1): SiLU()