# -*- coding: utf-8 -*- # 動画「GPU代600円」(ロボットの AI の学習用 GPU は買うか借りるか)の場面。2026-11-25 1版。2026-11-29 2版:12/9「次の1秒を3Dに」の部品と決まりにそろえた(色・自己紹介とアウトロの背景・図とグラフ) PATTERN = 2 # 大文字型・動きあり(2026-11-25 エイイチが選んだ) MOVE = True # 背景は SO-101 の実機(LOG572 の本番・LOG567 のお手本・LOG544 のテレオペ)と写真(bg_*.mp4・mk_bg.sh で作る)。mechArm の映像は「借りた記録」の章だけ import os as _os, sys as _sys, json as _json, base64 as _b64 _here = _os.path.dirname(_os.path.abspath(__file__)) for _c in (_os.environ.get("P2M_BASE", ""), _os.path.join(_here, "..", "base"), _os.path.join(_here, "..", "_制作ベース")): if _c and _os.path.exists(_os.path.join(_c, "scene_kit.py")): _sys.path.insert(0, _c); break from scene_kit import * from scene_kit import _p2page from motion_kit import use_motion # --- 場面ごとの、文の始まりの秒(声の長さから)--- _idx = _json.load(open(_os.path.join(_here, 'tts/index.json'))) if _os.path.exists(_os.path.join(_here, 'tts/index.json')) else [] _LINES = {} for _o in _idx: _d = _LINES.setdefault(_o['scene'], []) _t0 = (_d[-1][0] + _d[-1][1] + _d[-1][2]) if _d else 0.0 _d.append((_t0, _o['dur'], _o['pause'])) def at(scene, k=0, f=0.0): """その場面の k 番目の文の、読み上げの f 割の所(秒)""" L = _LINES.get(scene) if not L: return 0.3 k = min(k, len(L) - 1) return round(L[k][0] + L[k][1] * f, 2) def scene_len(scene): L = _LINES.get(scene) return (L[-1][0] + L[-1][1] + L[-1][2]) if L else 4.0 # --- 出どころの札(左上)--- FUDA_CSS = """ .fuda{position:absolute;left:420px;top:84px;display:flex;align-items:center;gap:14px;font-size:30px;font-weight:700;color:#0D0D0D} .fuda .k{padding:6px 18px;border-radius:999px;font-size:28px;font-weight:900} .fuda .k.hap{background:#0D0D0D;color:#fff} .fuda .k.news{background:#406ED8;color:#fff} .fuda .k.ken{border:3px solid #888888;color:#555} .fuda .k.ei{background:#C8322B;color:#fff} .fuda .k.clip{background:#0D0D0D;color:#fff} .fuda .k.chosa{background:#5A5A5A;color:#fff} """ FUDA_NAME = {"hap": "会社の発表", "news": "ニュース", "ken": "論文や本", "ei": "エイイチの記録と見立て", "clip": "公開されている実物の動画", "chosa": "調査会社の推計"} def fuda(kind, who): return f'
{FUDA_NAME[kind]}{who}
' # --- エイイチ(ドット絵)--- def _uri(p): return 'data:image/png;base64,' + _b64.b64encode(open(_os.path.join(_here, p), 'rb').read()).decode() import ei_talk as _talk EI = {k: (_talk.base_uri(k), _talk.base_uri(k, True)) for k in ('udegumi', 'unazuku', 'yubisasu', 'hirameku')} # エイイチが話す文(narration.py の EI_LINES)→ (場面, 場面の中で何番目の文か, 文番号) import importlib.util as _ilu _sp = _ilu.spec_from_file_location('_narr_here', _os.path.join(_here, 'narration.py')) _nm = _ilu.module_from_spec(_sp); _sp.loader.exec_module(_nm) _EIL = getattr(_nm, 'EI_LINES', []) _EI_SPEAK = {} _cnt = {} for _o in _idx: _k = _cnt.get(_o['scene'], 0); _cnt[_o['scene']] = _k + 1 if _o['i'] in _EIL: _EI_SPEAK.setdefault(_o['scene'], []).append((_k, _o['i'])) EI_CSS = """ .eiw{position:absolute;right:10px;bottom:0px;width:420px;height:420px;overflow:hidden} .eiw img{position:absolute;left:0;top:8px;width:420px;height:420px;image-rendering:pixelated} .ein{position:absolute;right:40px;bottom:346px;width:300px;text-align:center;font-size:30px;font-weight:900;color:#0D0D0D} .ein span{display:inline-block;background:#F5F5F0;border:3px solid #D6D6D1;border-radius:999px;padding:4px 20px} """ def _blinks(start, end): t, out = start, [] while t < end - 0.4: out.append(round(t, 2)); t += 3.3 return out def ei_wipe(pose, scene, pop=None, name=None, poses=None): """右下の小窓。pop=秒 で、ぽんと出る。poses=[(秒, 絵)] で途中で絵を替える(指さしは大事な所だけ。2026-10-28 エイイチの指示)。 話している間は口と目を声に合わせて動かし、話していない間はまばたきだけする。 絵ごとにまとまり(div)を作り、替える時刻に前のまとまりを消して(out)、次を出す(fade)。絵の透明な所から前の絵が見えないように""" seq_p = sorted(poses or [(0, pose)]) if seq_p[0][0] > 0: seq_p = [(0, pose)] + seq_p L = scene_len(scene) + 1 segs = [(t, seq_p[k + 1][0] if k + 1 < len(seq_p) else L, p) for k, (t, p) in enumerate(seq_p)] spans, mouth, blinks = [], [], [] for k, i in _EI_SPEAK.get(scene, []): t0 = at(scene, k, 0.0) sq, end = _talk.mouth_seq(i, t0) spans.append((t0, end)); mouth += sq blinks += [(b, 0.13) for b in _talk.blink_times(t0, end)] mouth.sort() blinks += [(b, 0.15) for b in _blinks((pop or 0) + 1.3, scene_len(scene)) if not any(a0 - 0.2 <= b <= a1 + 0.2 for a0, a1 in spans)] out = '' for s0, s1, p in segs: ev = [] lv = ([l for (t, l) in mouth if t <= s0] or [1])[-1] if lv != 1 and p in _talk.MOUTH: ev.append((s0, f'')) for t, l in mouth: if s0 < t < s1 and p in _talk.MOUTH: ev.append((t, f'')) e = _talk.eye_patches(p) if p != 'unazuku' else None for b, d in blinks: if e and s0 <= b and b + d < s1: ev.append((b, f'')) ev.append((round(b + d, 2), f'')) ev.sort(key=lambda x: x[0]) inner = f'' + ''.join(h for _, h in ev) if s0 > 0: inner = f'
{inner}
' if s1 < L: inner = f'
{inner}
' out += inner a = f' data-a="pop" data-t="{pop}" data-d="0.35"' if pop is not None else '' nm = f'
{name}
' if name else '' return f'{nm}
{out}
' def add(page_html, *parts): return page_html.replace('', ''.join(parts) + '', 1) S = {} MOTION = {} O = {} VIDEO = {} # --- 背景の映像の上にカード(4-4e)--- HL, WARN = "#FFE14D", "#FFE14D" CARD_CSS = f""" .cw{{position:absolute;left:0;right:0;top:215px;bottom:300px;display:flex;align-items:center;justify-content:center}} .cd{{background:rgba(8,8,8,.86);border-radius:30px;padding:46px 84px 52px;text-align:center;color:#fff;max-width:1400px;box-shadow:0 10px 40px rgba(0,0,0,.35)}} .cd .k{{font-size:42px;font-weight:700;color:#BDBDBD;margin-bottom:22px}} .cd .b{{font-weight:900;line-height:1.16}} .cd .s{{font-size:44px;font-weight:700;color:#D0D0D0;margin-top:26px;line-height:1.35}} .cd .hl{{color:{HL}}} .cd .wn{{color:{WARN}}} .cap{{position:absolute;left:140px;right:auto;top:110px;background:rgba(8,8,8,.72);color:#fff;font-size:30px;font-weight:700;padding:10px 22px;border-radius:10px}} .ff{{position:absolute;right:120px;top:170px;background:#C8322B;color:#fff;font-size:64px;font-weight:900;padding:10px 34px;border-radius:16px;letter-spacing:.04em}} """ def card(inner, cap="", pop=0.05): c = f'
{cap}
' if cap else "" return f'{c}
{inner}
' def C_word(lines, kicker="", sub="", size=130): k = f'
{kicker}
' if kicker else "" s = f'
{sub}
' if sub else "" return f'{k}
{"
".join(lines)}
{s}' def bg_card(name, file, ss, inner=None, cap="", ei_pose=None, dim=0.5, slow=1.0, ff=False, poses=None, img_first=None): """背景に映像を流し、上にカード(inner が None なら映像だけ・左上に何の映像か)。 img_first=割合:画像を見せたい場面。はじめはカードを出さず、背景を暗くしないで絵を見せ、場面のその割合の所でカードを出す (2026-11-13 エイイチの指示「画像の内容を見せたい時はカードを一時的に非表示に。センターから右にずらさない」)""" if inner: pop = 0.05 if img_first is not None: pop = round(scene_len(name) * img_first, 2) dim = 1.0 parts = card(inner, cap=cap, pop=pop) else: parts = f'' + (f'
{cap}
' if cap else '') if ff: parts += '
▶▶ 早送り
' if ei_pose: parts += ei_wipe(ei_pose, name, poses=poses) html = overlay(parts) MOTION[name] = dict(type="html", bg=dict(file=file, ss=ss, dim=dim, slow=slow), html=html) S[name] = html def ei(name, page_html, pose='udegumi', pop=None, poses=None): S[name] = add(page_html, ei_wipe(pose, name, pop=pop, poses=poses)) MOTION[name] = dict(type='html', html=S[name]) def img(name, file, title, w=1100, top=230, tag=None, credit=""): """画像を出し、上に題(ゴシックの太字。明朝・手書き風は使わない 2026-11-13 エイイチの指示)。画像は y 830 より上・x 400 より右に収める""" src = 'file://' + _os.path.join(_here, file) left = (1920 - w) // 2 body = (f'
' f'{title}
' f'') S[name] = page(body, tag=tag) MOTION[name] = dict(type='html', html=S[name]) def C_list(items, kicker="", size=56): rows = "".join(f'
{n}{t}
' for n, t in items) k = f'
{kicker}
' if kicker else "" return f'{k}
{rows}
' def chap(name, no, word, sub, file, ss=0, size=150): """章の扉。番号も大きく出す(2026-11-25 エイイチの指摘「数字が小さい」)""" num = f'
{no}
' bg_card(name, file, ss, num + C_word([f'{word}'], "", sub, size), dim=0.45) def W(lines, k="", s="", size=150): return C_word(lines, k, s, size) def hl(t): return f'{t}' def wn(t): return f'{t}' def cnt(n, a=0.3, b=1.3): return f'{n:,}' def ei_poses(name, k, pose, dur=3.0): t = at(name, k, 0.1) return [(t, pose), (round(t + dur, 2), 'udegumi')] EI_BIG_CSS = """""" GRAY, BL, OR = "#B9B9B4", "#406ED8", "#C8322B" RD = OR GCSS = f""" .gc{{background:rgba(245,245,240,.9);border-radius:34px;padding:30px 50px 34px;box-shadow:0 12px 44px rgba(0,0,0,.35);display:flex;flex-direction:column;align-items:center;max-width:1640px}} .gb{{position:absolute;left:120px;right:120px;top:96px;bottom:296px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}} .gt{{font-size:70px;font-weight:900;margin-bottom:40px;line-height:1.22;text-align:center}} .gt small{{display:block;font-size:40px;font-weight:700;color:{SUB};margin-top:12px}} .hb{{display:flex;align-items:center;margin:18px 0;width:1240px}} .hb .l{{width:380px;font-size:48px;font-weight:700;text-align:right;padding-right:30px;line-height:1.15}} .hb .l small{{display:block;font-size:32px;color:{SUB}}} .hb .tr{{flex:1;position:relative;height:110px}} .hb .bar{{position:absolute;left:0;top:0;bottom:0;border-radius:10px}} .hb .v{{position:absolute;top:50%;font-size:68px;font-weight:900;white-space:nowrap}} .box2{{background:#fff;border-radius:24px;padding:34px 18px;text-align:center;font-size:54px;font-weight:900;line-height:1.25;border:6px solid transparent;white-space:nowrap}} .box2 small{{display:block;font-size:32px;font-weight:700;color:{SUB};margin-top:10px;white-space:normal}} .arr{{font-size:60px;font-weight:900;color:{SUB};padding:0 6px;white-space:nowrap}} .chip{{display:inline-block;background:#fff;border-radius:16px;padding:20px 26px;font-size:46px;font-weight:900;margin:10px}} .hl2{{color:{OR}}} .bl2{{color:{BL}}} """ _G_USE = {} def G(name, inner, title="", sub="", tag=None, ei_pose=None, poses=None, bg=None, ss=None): """図・グラフの場面。背景に映像を流し、半透明の板の上に図を描く。中身は画面の中央(x 960)にそろえる (2026-11-26 エイイチの指示「テキストが右寄り → センター合わせ」)。板は y 786 までで、左下のハコブくんの区画に入らない""" if bg is None: bg = next(f for k, f in G_BG if name.startswith(k)) if ss is None: ss = _G_USE.get(bg, 0); _G_USE[bg] = (ss + 4) % 20 t = f'
{title}' + (f'{sub}' if sub else '') + '
' if title else '' html = overlay(f'
{t}{inner}
') if ei_pose: html = add(html, ei_wipe(ei_pose, name, poses=poses)) S[name] = html MOTION[name] = dict(type='html', bg=dict(file=bg, ss=ss, dim=0.7, slow=1.0), html=html) def hbars(rows, maxv, t0=0.4, step=0.6, scale=0.68): """横の棒グラフ。rows=[(ラベル, 値, 色, 値の文字, 出す秒 or None)]。棒は左から伸ばす(write)""" out = '' for k, (lab, v, col, vt, *tt) in enumerate(rows): t = tt[0] if tt and tt[0] is not None else round(t0 + k * step, 2) w = max(v / maxv * scale * 100, 0.6) out += (f'
{lab}
' f'
' f'
{vt}
' '
') return out def vbars(groups, maxv, series, t0=0.4, step=0.35, h=400, line=None): """縦の棒グラフ(場所ごとに2本など)。groups=[(ラベル, [値...])]、series=[(名前, 色)]。line=(値, 文字) で目安の破線""" cols = '' for g, (lab, vals) in enumerate(groups): bars = '' for s, v in enumerate(vals): col = series[min(s, len(series) - 1)][1] if isinstance(v, tuple): v, col = v t = round(t0 + (g * len(vals) + s) * step, 2) hh = v / maxv * h bars += (f'
' f'
{v}
' f'
') cols += (f'
' f'
{bars}
' f'
{lab}
') ln = '' if line: y = line[0] / maxv * h ln = (f'
' f'{line[1]}
') leg = ''.join(f'{n}' for n, c in series) return (f'
{leg}
' f'
{ln}{cols}
') def strip(cells, h=92, gap=7, t=0.4, dt=0.05, k=1.35): """時間の帯。cells=[(幅, 色, 文字)]。左から順に出す""" out = '' for i, (w, c, tx) in enumerate(cells): out += (f'
{tx}
') return f'
{out}
' def row_lab(lab, inner, w=300): return f'
{lab}
{inner}
' def flow(boxes, arrows=None, t0=0.3, step=0.7, hi=None): """箱を矢印でつなぐ流れ図。boxes=[(文字, 小さい文字, 枠の色 or None, 出す秒 or None)]""" out = '' for k, (a, b, c, *tt) in enumerate(boxes): t = tt[0] if tt and tt[0] is not None else round(t0 + k * step, 2) bd = f'border-color:{c}' if c else '' sm = f'{b}' if b else '' if k: ar = (arrows[k - 1] if arrows else '→') out += f'
{ar}
' out += f'
{a}{sm}
' return f'
{out}
' def places(marks, t0=0.4, step=0.35, note=None): """5か所の結果(○ ✕)。marks=[(○ か ✕, 色, 出す秒 or None)]""" out = '' for k, (m, c, *tt) in enumerate(marks): t = tt[0] if tt and tt[0] is not None else round(t0 + k * step, 2) mk = f'
' if m == '○' else m out += (f'
' f'
{mk}
' f'
場所{k + 1}
') nt = f'
{note}
' if note else '' return f'
{out}
{nt}' def dots_n(n, red, t0, dt=0.05, size=78): out = ''.join(f'
' for k in range(n)) return f'
{out}
' def big(lines, sub=""): sb = f'
{sub}
' if sub else '' return f'
{"
".join(lines)}
{sb}
' # ===== ここから「GPU代600円」の場面 ===== B = lambda n: f"src/bg_{n}.mp4" INF, INF2, SLOW, REC, TELE, MECH, SETUP, PAIR, RUNPOD = B("inf_a"), B("inf_b"), B("slow"), B("rec"), B("tele"), B("mech"), B("setup"), B("pair"), B("runpod") CI = "SO-101 の本番(π0.5 が動かしている)" CR = "お手本を録っているところ(SO-101)" CT = "SO-101 のテレオペ(左:黒いリーダー 右:白いフォロワー)" CM = "前のアーム mechArm 270(実機)" G_BG = [("c2", INF2), ("c1", REC), ("c3", SETUP), ("c4", MECH), ("ans", INF), ("check", SLOW), ("view", PAIR)] # ---------- 冒頭(最初の数秒は実機だけ・2026-11-29 SO-101 の回の分析) ---------- bg_card("hook_600", INF, 2, W([f'約{hl(cnt(600, 0.4, 1.6))}円'], "ブロックを箱に入れる動きを覚えさせた GPU 代", "", 260), cap=CI, img_first=0.3) bg_card("hook_124", INF, 9, W([f'約{wn("124万")}円'], "同じ学習ができるパソコン", "", 240), cap=CI) bg_card("hook_q", INF2, 0, W([f'{hl("買う")}か {hl("借りる")}か'], "ロボットの AI を始めるなら", "", 150), cap=CI) bg_card("hook_75", TELE, 0, W([f'{wn("75万")}円のパソコンを', '買う予定だった'], "エイイチも最初は", "", 115), cap=CT) bg_card("hook_tease", TELE, 6, W(['買っていたら', wn('どうなった?')], "", "", 170), cap=CT) # 75万円のパソコン(結末を先に・2026-11-29 Neon の指摘) G("c2", flow([("RTX 5080", "75万円のパソコン", None), ("メモリ 16GB", "GPU のメモリ", OR)], t0=0.3, step=0.9), "買うつもりだったパソコン") G("c2_need", hbars([("75万円の PC", 16, GRAY, "16GB", 0.5), ("学習に要る", 22.5, OR, "22.5GB より多く", 1.4)], 48, scale=0.8), "GPU のメモリ", "π0.5 の説明書") bg_card("c2_no", INF2, 8, W(['16GB では', wn('学習できない')], "動かすことはできても", "", 150), cap=CI) bg_card("c2_rent", REC, 80, W(['借りて動かしたから', hl('分かった')], "買う前に", "", 115), cap=CR) bg_card("ei_intro", REC, 90, W(['クラウドで学習', hl('ありがたい')], "エイイチの感想", "", 110), cap=CR, ei_pose="udegumi", poses=ei_poses("ei_intro", 1, "hirameku")) bg_card("c2_joke", INF2, 14, W(['しばらく', wn('箱を開けられない')], "75万円で、学習できないパソコン", "", 150), cap=CI) # 自己紹介(背景は SO-101 の実機。mechArm の DAY124 は使わない・2026-11-28 の決まり) O.update({ "title": overlay('
フィジカルAI解説
案内役:ハコブくん(AI音声)
'), "title_eiichi": overlay('
エイイチ
デザイナー/ロボティクスの研究・開発
'), "outro": overlay('
相談は概要欄の連絡先から
高評価・チャンネル登録/コメントはエイイチが全部読んでいます
'), }) VIDEO.update({ "title": ("src/so101_intro.mp4", 0.5, False), "title_eiichi": ("src/so101_intro.mp4", None, False), "outro": ("src/so101_intro.mp4", 27.5, False), }) bg_card("title_next", INF, 6, C_list([("1", "600円で何ができたか"), ("2", "買うならいくらか"), ("3", "買うか借りるかの答え")], "このあと", 66), cap=CI, img_first=0.2) # 1 600円の中身 chap("c1", "1", "600円の中身", "何にお金を払ったのか", INF, 4) bg_card("c1_pi", REC, 0, W([hl('π0.5'), 'お手本50回で学習'], "Physical Intelligence のロボット用 AI", "", 140), cap=CR) G("c1_lora", flow([("π0.5", "もとの AI(そのまま)", None), ("+ 小さな部品", "ここだけ学習", OR)], arrows=["+"], t0=0.4, step=1.0), "LoRA", "全部は学び直さない") bg_card("c1_a40", RUNPOD, 0, W([f'1時間 約{hl("93")}円'], "Runpod で A40(メモリ48GB)を時間借り", "", 190), img_first=0.35) bg_card("c1_cost", REC, 60, W([f'{hl("6.37")}時間', f'約{hl("594")}円'], "SO-101 の学習", "", 140), cap=CR) bg_card("c1_result", INF, 12, W([f'{hl("12")}回中{hl("12")}回'], "初めての本番で、ブロックを箱へ", "", 220), cap=CI) bg_card("c1_joke", INF2, 6, W(['ぼくの電気代とは', wn('比べないで')], "", "", 150), cap=CI) bg_card("scope", TELE, 10, W([f'個人や{hl("小さなチーム")}の話'], "ロボットの AI を自分の作業に合わせて学習させる場合", "", 110), cap=CT) # 2 買うならいくら chap("c3", "2", "買うなら、いくら", "RTX 5090・メモリ32GB", SETUP, 0) G("c3_price", hbars([("5月", 60, GRAY, "約60万円", 0.5), ("10月", 124, OR, "約124万円", 1.6)], 124, scale=0.6), "同じ種類のパソコンの一番安いもの", "パーツの構成が違うので目安") G("c3_power", hbars([("自分のパソコン", 23, BL, "約23円", 0.5), ("借りる A40", 93, OR, "約93円", 1.4)], 93, scale=0.72), "1時間あたり", "自分のパソコンは GPU の電気代だけ(1kWh 31円の仮の値)") bg_card("c3_q", TELE, 30, W(['問題は', f'{hl("月に何時間")}使うか'], "", "", 125), cap=CT) # 3 借りた記録(ここだけ mechArm の記録) chap("c4", "3", "借りた記録", "前のアーム mechArm 270 で借りた15回ぶん", MECH, 26) G("c4_total", hbars([("借りていた", 59, GRAY, "約59時間", 0.6), ("学習していた", 26.6, OR, "約26.6時間", 1.5)], 59, scale=0.6), '15回の合計 5,743円', "") G("c4_idle", flow([("約3割", "何もせずに置いていた", OR), ("約1,500円", "お金にすると", None)], t0=0.3, step=1.0), "借りていた時間の") bg_card("c4_save", REC, 100, W([f'約{hl("1,400")}円'], "実機の時間を決めてから借りれば、払わずに済んだ", "", 220), cap=CR) bg_card("c4_weak", REC, 110, C_list([("1", "最初は使えるまで 約1時間10分"), ("2", "早朝に予約しても、空かない日")], "借りる側の弱点", 64), cap=CR) bg_card("c4_joke", REC, 120, W(['だいたい', wn('人の段取り')], "借りる側の弱点は", "", 170), cap=CR) # 4 答え chap("ans", "4", "答え", "買うか、借りるか", INF, 0) G("ans_180", hbars([("いちばん多い月", 120, BL, "約120時間", 0.6), ("損益の分かれ目", 180, OR, "月180時間", 1.6)], 180, scale=0.6), '月 180時間より少なければ、借りる方が安い', "124万円のパソコンを4年使い、手放すときに2割戻るとして") bg_card("ans_120", INF2, 8, W(['だから今は', hl('借りる')], "いちばん使った月で約120時間", "", 150), cap=CI) bg_card("ans_buy", INF2, 14, C_list([("1", "GPU のメモリ 24GB 以上"), ("2", "月180時間を超えて使う見込み")], "買うなら、条件は2つ", 70), cap=CI) bg_card("ans_rent", INF2, 20, W(['まず', hl('借りて測る')], "条件がそろわないうちは", "", 160), cap=CI) # 確かめる3つ bg_card("check", SLOW, 0, C_list([("1", "処理にかかる時間"), ("2", "GPU のメモリをどれだけ使うか"), ("3", "1か月に何時間使うか")], "買う前に、借りて測る3つ", 70), cap="SO-101 の記録(早回し)") bg_card("check2", SLOW, 8, W(['買うか借りるかは', hl('計算で決まる')], "3つが分かれば", "", 150), cap="SO-101 の記録(早回し)") # 見立て bg_card("view", SETUP, 10, W(['メモリと', hl('ドライブの容量')], "最初の1台、お金をかけるなら", "", 150), ei_pose="udegumi", poses=ei_poses("view", 1, "yubisasu")) bg_card("view_rule", PAIR, 0, W(['足りないことは測れる', wn('余りは測れない')], "エイイチの、機材を買うときのルール", "", 110), img_first=0.25) bg_card("view_rule2", PAIR, 4, W(['迷ったら下を買う', f'その前に {hl("借りて測る")}'], "", "", 130)) bg_card("site", INF, 18, W(['pixelstomotors.com'], "計算の前提と、借りた記録の全部", "サイトの「ロボットAIの学習用GPU、買うか借りるか」", 104), cap=CI) # --- Physical Intelligence の公式動画(引用・紙の上の窓。6-1 の B。2026-11-29 エイイチの指示「Physical Intelligence の話をしている時は、その動画を差し込む」)--- PI_CSS = """ .fuda{position:absolute;left:420px;top:84px;display:flex;align-items:center;gap:14px;font-size:30px;font-weight:700;color:#0D0D0D} .fuda .k{padding:6px 18px;border-radius:999px;font-size:28px;font-weight:900;background:#0D0D0D;color:#fff} .tcr{position:absolute;left:420px;top:790px;font-size:26px;font-weight:700;color:#555} """ def pi_win(name, clip="a", label="Physical Intelligence の π0.5 の紹介動画"): html = overlay(f'
映像の引用{label}
' '
映像:Physical Intelligence「π0.5: a VLA with Open-World Generalization」(pi.website/blog/pi05)
') MOTION[name] = dict(type="html", bg=dict(file=f"src/pi_win_{clip}.mp4", ss=0, dim=1.0, slow=1.0), html=html) S[name] = html pi_win("c1_pi", "a") use_motion(MOTION, VIDEO, O, _here, MOVE)