上一页 1 2 3 4 5 6 7 ··· 19 下一页
摘要: 旧版4.3之前 只能在动画摄影表 Dope Sheet,同时控制所有Action、所有物体的动画。大工程里,很难选择关键帧 NLA非线性动画一堆轨道,会很凌乱 Action只能存储一种类型的动画数据,会产生大量的Action。大工程里还需要自己加前缀来区分,如MaterialAction, Shap 阅读全文
posted @ 2025-03-25 17:29 Nolca 阅读(261) 评论(0) 推荐(0)
摘要: 不直观的教程/文档 https://developer.blender.org/docs/handbook/translating/translator_guide/?utm_source=blender-4.3.2#manage-ui-translations-add-on https://dev 阅读全文
posted @ 2025-03-15 09:59 Nolca 阅读(267) 评论(0) 推荐(0)
摘要: smpl、smplx、coco等骨架(skeleton)系统 name size K_fullimg (312,3,3) net_outputs-decode_dict-betas (312,10) net_outputs-decode_dict-bodypose (312,63) net_outp 阅读全文
posted @ 2025-03-13 08:54 Nolca 阅读(196) 评论(0) 推荐(0)
摘要: 方法1: TypedDict+Unpack 强烈推荐,适用于自己编写的库内使用 外部库不推荐,因为要额外维护Kwargs参数类,且无法对应不同版本的外部库 https://docs.python.org/3/library/typing.html#typing.Unpack 副作用,二次继承Type 阅读全文
posted @ 2025-03-08 11:48 Nolca 阅读(48) 评论(0) 推荐(0)
摘要: https://github.com/Danangjoyoo/python-worker 还挺好用的,一旦写了一些会阻塞异步函数的逻辑,就需要将其移到新线程/进程去执行。如果不用这个库,就需要重构代码。代码需求经常变动,这个库就不错。 import asyncio import time impor 阅读全文
posted @ 2025-03-06 16:23 Nolca 阅读(48) 评论(0) 推荐(0)
摘要: 原代码: import asyncio as aio async def Sleeper(s=1): t = f'Sleeper for {s} seconds' await aio.sleep(s) print(t) return t async def main(): tasks = [Slee 阅读全文
posted @ 2025-03-03 17:57 Nolca 阅读(17) 评论(0) 推荐(0)
摘要: 异步 多线程 多进程 比喻 一个在烧水、泡衣服与洗碗的人 很多洗碗的人 很多语言不通的洗碗的人 核心 很多需要等待的函数同时运行 很多计算任务同时运行 原理 await转让控制权,再次事件循环 共享内存 不共享,使用IPC跨进程消息沟通 限制 - 若 async 函数内有耗时操作 , 会阻塞事件循环 阅读全文
posted @ 2025-03-01 21:22 Nolca 阅读(18) 评论(0) 推荐(0)
摘要: 受zig语言启发,图灵完备的配置文件可能是个不错的选择,只要严格限制权限就行。 用importlib 目标: 禁止二次导入,去除import语句 提供模块白名单、黑名单 import ast from sys import meta_path from importlib.abc import Lo 阅读全文
posted @ 2025-02-16 18:57 Nolca 阅读(14) 评论(0) 推荐(0)
摘要: sway支持multi seats,这就是动机 打算换系统了,linux mint 22.1基于Ubuntu noble,而很多ubuntu package仓库的最新版都在ubuntu的最新系统,很多软件要自行编译,而debian testing(unstable)比ubuntu更新。 也就是说,u 阅读全文
posted @ 2025-01-26 21:50 Nolca 阅读(520) 评论(0) 推荐(0)
摘要: 在 ~/.bashrc 首行前添加: set -x export ORIGINAL_PATH="$PATH" function check_path_change() { if [[ "$PATH" != "$ORIGINAL_PATH" ]]; then echo "PATH has change 阅读全文
posted @ 2025-01-25 15:29 Nolca 阅读(20) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 19 下一页