Download docs/presentation/fix_merged.py from kimjunhan/vkgs-sim: direct link, hf CLI and curl.
- Browser
- Download file 27.6 kB
-
https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/docs/presentation/fix_merged.py
- Command line
-
hf download hf://kimjunhan/vkgs-sim/docs/presentation/fix_merged.py
-
curl -L -o fix_merged.py https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/docs/presentation/fix_merged.py
27.6 kB
| """ํตํฉ๋ณธ (vkgs_sim_merged.pptx) ๊ฒํ ๋ฐ์ (2026-10-15). | |
| 1. ์ ์ฅ 3๊ฐ: closed-loop ํ๊ฐ ์ธํฐํ์ด์ค (์์ง ๊ตฌ์กฐ) ยท ์์ง ๋๊ตฌ โ ์ ฐ์ด๋ ๊ทธ๋ํ ยท Tracy ยท IBL ยท ์ฅ๋ฉด ๊ฐ์ฒด (์์ง ๊ตฌ์กฐ) ยท | |
| closed-loop ํ๊ฐ ์งํ HD-Score (์๋ฎฌ๋ ์ด์ ) | |
| 2. ์์น ยท ๋ฌธ๊ตฌ ๋ฐ๋ก์ก๊ธฐ (rg32f ๊ฑฐ๋ฆฌ ๋ฒํผ, ์ ๋ ฌ ๋ฐฐ์จ, SH lr, NAS ์คํจ ๋จ์ ์, ๋๋จน์ ์งํ ๊ตฌ๋ถ โฆ) | |
| 3. ๊ฐ์ ์งํ๋ฅผ ๊ฐ์ ํ๋ณธ์ผ๋ก (์ ์ PSNR ์ค์๊ฐ = ์ง๊ธ ํ๊ฐ๊ฐ ๋๋ 313 ๋จ์) | |
| 4. ์งํ ์์น๋ฅผ 10/15 ๊ธฐ์ค์ผ๋ก | |
| 5. ํ ์ฅ๊ณผ ๊ฒน์น๋ ์๋ ์ฑ๋ฅ ๋น๊ต 2์ฅ ์ญ์ | |
| 6. ์์ง ๊ตฌ์กฐ๋ ๊ทธ๋ฆผ (fig_engine_pipeline*.png, rg32f ๋ผ๋ฒจ) ๊ต์ฒด | |
| ์คํ ์์: merge_benchmark.py โ add_sensor_data_slide.py โ ์ด ์คํฌ๋ฆฝํธ (๊ทธ๋ฆผ: figures/closed_loop/fig_hdscore.py). | |
| ์คํ: python docs/presentation/fix_merged.py [์ ๋ ฅ.pptx] [์ถ๋ ฅ.pptx] (๊ธฐ๋ณธ: vkgs_sim_merged.pptx ๋ฅผ ์ ์๋ฆฌ์์) | |
| """ | |
| import copy | |
| import sys | |
| from pathlib import Path | |
| from PIL import Image | |
| from pptx import Presentation | |
| from pptx.dml.color import RGBColor | |
| from pptx.enum.shapes import MSO_SHAPE | |
| from pptx.enum.text import MSO_ANCHOR, PP_ALIGN | |
| from pptx.oxml.ns import qn | |
| from pptx.util import Inches, Pt | |
| HERE = Path(__file__).resolve().parent | |
| SRC = Path(sys.argv[1]) if len(sys.argv) > 1 else HERE / "vkgs_sim_merged.pptx" | |
| OUT = Path(sys.argv[2]) if len(sys.argv) > 2 else SRC | |
| FIG = HERE / "figures/out" | |
| # build_from_template.py ์ ๊ฐ์ ์ ยท ๊ธ๊ผด ยท ํ ๋ํ | |
| NAVY, BLUE, LIGHT, PALE, GRAY, ORANGE, WHITE = (RGBColor(0x1F, 0x3B, 0x70), RGBColor(0x44, 0x72, 0xC4), RGBColor(0xDC, 0xE6, 0xF4), | |
| RGBColor(0xF2, 0xF5, 0xFA), RGBColor(0x40, 0x40, 0x40), RGBColor(0xED, 0x7D, 0x31), | |
| RGBColor(0xFF, 0xFF, 0xFF)) | |
| FONT = "๋ง์ ๊ณ ๋" | |
| KEEP = {"์ฌ๋ผ์ด๋ ๋ฒํธ ๊ฐ์ฒด ํ 1", "์ ๋ชฉ 1", "๊ทธ๋ฃน 6", "TextBox 9", "TextBox 4"} | |
| H_CL = "closed-loop ํ๊ฐ ์ธํฐํ์ด์ค โ ์๋ฎฌ๋ ์ดํฐ๋ฅผ Gym ํ๊ฒฝ์ผ๋ก" | |
| H_TOOLS = "์์ง ๋๊ตฌ โ ์ ฐ์ด๋ ๊ทธ๋ํ ยท ํ๋กํ์ผ๋ง ยท IBL ์กฐ๋ช ยท ์ฅ๋ฉด ๊ฐ์ฒด" | |
| H_HD = "closed-loop ํ๊ฐ ์งํ โ HD-Score ์ ๊ธฐ์ค์ " | |
| DELETE = ["nuScenes ๋ ๋๋ง ํ์ง ๋น๊ต โ ๊ด๋ จ ๋ ผ๋ฌธ์ด nuScenes ์์ ๋ณด๊ณ ํ ๊ฐ", "๋ ๋๋ง ์๋ ร ํ์ง โ ๊ฐ์ ํ์ ๋ ๋ค ๋ณด๊ณ ํ ๋ ผ๋ฌธ"] | |
| # ------------------------------------------------------------------ build_from_template.py ์ ๋์ ํจ์ (๊ฐ์ ๋ชจ์) | |
| def shape(sl, name): | |
| for sh in sl.shapes: | |
| if sh.name == name: | |
| return sh | |
| raise KeyError(name) | |
| def set_runs_text(tf, text): | |
| p0 = tf.paragraphs[0] | |
| for p in tf.paragraphs[1:]: | |
| p._p.getparent().remove(p._p) | |
| runs = p0.runs | |
| if not runs: | |
| p0.text = text | |
| return | |
| runs[0].text = text | |
| for r in runs[1:]: | |
| r._r.getparent().remove(r._r) | |
| def set_paragraphs(tf, items): | |
| p0 = tf.paragraphs[0]._p | |
| for p in tf.paragraphs[1:]: | |
| p._p.getparent().remove(p._p) | |
| parent = p0.getparent() | |
| proto = copy.deepcopy(p0) | |
| parent.remove(p0) | |
| for it in items: | |
| p = copy.deepcopy(proto) | |
| rs = p.findall(qn("a:r")) | |
| for r in rs[1:]: | |
| p.remove(r) | |
| if rs: | |
| rs[0].find(qn("a:t")).text = it | |
| parent.append(p) | |
| def body(sl, tab, heading_, bullets): | |
| set_runs_text(shape(sl, "์ ๋ชฉ 1").text_frame, "VKGS-Sim") | |
| set_runs_text(shape(sl, "TextBox 4").text_frame, tab) | |
| for c in shape(sl, "๊ทธ๋ฃน 6").shapes: | |
| if c.has_text_frame and c.text_frame.text.strip(): | |
| set_runs_text(c.text_frame, heading_) | |
| set_paragraphs(shape(sl, "TextBox 9").text_frame, bullets) | |
| return 1.82 + 0.28 * sum(1 + len(b) // 95 for b in bullets) + 0.15 | |
| def tb(sl, x, y, w, h, text, size=12, bold=False, color=GRAY, align=PP_ALIGN.LEFT, anchor=MSO_ANCHOR.TOP): | |
| t = sl.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h)) | |
| tf = t.text_frame | |
| tf.word_wrap = True | |
| tf.margin_left = tf.margin_right = Inches(0.04) | |
| tf.margin_top = tf.margin_bottom = Inches(0.02) | |
| tf.vertical_anchor = anchor | |
| for i, line in enumerate(text.split("\n")): | |
| p = tf.paragraphs[0] if i == 0 else tf.add_paragraph() | |
| p.alignment = align | |
| r = p.add_run() | |
| r.text = line | |
| r.font.size, r.font.bold, r.font.color.rgb, r.font.name = Pt(size), bold, color, FONT | |
| return t | |
| def box(sl, x, y, w, h, text, fill=LIGHT, color=GRAY, size=12, bold=False, line=None, align=PP_ALIGN.CENTER, title=None, | |
| kind=MSO_SHAPE.ROUNDED_RECTANGLE): | |
| s = sl.shapes.add_shape(kind, Inches(x), Inches(y), Inches(w), Inches(h)) | |
| if kind == MSO_SHAPE.ROUNDED_RECTANGLE: | |
| s.adjustments[0] = 0.08 | |
| s.fill.solid() | |
| s.fill.fore_color.rgb = fill | |
| if line: | |
| s.line.color.rgb = line | |
| s.line.width = Pt(1.25) | |
| else: | |
| s.line.fill.background() | |
| s.shadow.inherit = False | |
| tf = s.text_frame | |
| tf.word_wrap = True | |
| tf.margin_left = tf.margin_right = Inches(0.1) | |
| tf.margin_top = tf.margin_bottom = Inches(0.06) | |
| tf.vertical_anchor = MSO_ANCHOR.MIDDLE if title is None else MSO_ANCHOR.TOP | |
| lines = ([(title, True, size + 1)] if title else []) + [(l, bold, size) for l in text.split("\n") if l] | |
| for i, (l, b, sz) in enumerate(lines): | |
| p = tf.paragraphs[0] if i == 0 else tf.add_paragraph() | |
| p.alignment = PP_ALIGN.CENTER if (title and i == 0) else align | |
| p.space_after = Pt(3) | |
| r = p.add_run() | |
| r.text = l | |
| r.font.size, r.font.bold, r.font.color.rgb, r.font.name = Pt(sz), b, (NAVY if title and i == 0 else color), FONT | |
| return s | |
| def arrow(sl, x, y, w=0.36, h=0.24, color=BLUE, kind=MSO_SHAPE.RIGHT_ARROW): | |
| s = sl.shapes.add_shape(kind, Inches(x), Inches(y), Inches(w), Inches(h)) | |
| s.fill.solid() | |
| s.fill.fore_color.rgb = color | |
| s.line.fill.background() | |
| s.shadow.inherit = False | |
| return s | |
| def table(sl, x, y, w, rows, colw, size=11, rowh=0.3, align_right=()): | |
| t = sl.shapes.add_table(len(rows), len(rows[0]), Inches(x), Inches(y), Inches(w), Inches(rowh * len(rows))).table | |
| for j, cw in enumerate(colw): | |
| t.columns[j].width = Inches(w * cw) | |
| for i, row in enumerate(rows): | |
| t.rows[i].height = Inches(rowh) | |
| for j, v in enumerate(row): | |
| c = t.cell(i, j) | |
| c.margin_left = c.margin_right = Inches(0.08) | |
| c.margin_top = c.margin_bottom = Inches(0.03) | |
| c.vertical_anchor = MSO_ANCHOR.MIDDLE | |
| c.fill.solid() | |
| c.fill.fore_color.rgb = NAVY if i == 0 else (PALE if i % 2 == 0 else WHITE) | |
| p = c.text_frame.paragraphs[0] | |
| p.text = "" | |
| p.alignment = PP_ALIGN.RIGHT if (j in align_right and i > 0) else PP_ALIGN.LEFT | |
| r = p.add_run() | |
| r.text = str(v) | |
| r.font.size, r.font.name = Pt(size), FONT | |
| r.font.bold = i == 0 | |
| r.font.color.rgb = WHITE if i == 0 else GRAY | |
| return t | |
| def module(sl, x, y, w, h, title, desc, size=10): | |
| box(sl, x, y, w, h, "", fill=WHITE, line=LIGHT) | |
| tb(sl, x + 0.08, y + 0.05, w - 0.16, 0.28, title, size=size + 1, bold=True, color=NAVY) | |
| tb(sl, x + 0.08, y + 0.36, w - 0.16, h - 0.4, desc, size=size, color=GRAY) | |
| def picture(sl, path, x, y, w, h): | |
| im = Image.open(path) | |
| s_ = min(w / im.width, h / im.height) | |
| ww, hh = im.width * s_, im.height * s_ | |
| return sl.shapes.add_picture(str(path), Inches(x + (w - ww) / 2), Inches(y), Inches(ww), Inches(hh)) | |
| # ------------------------------------------------------------------ ์ฅ ์ฐพ๊ธฐ ยท ์ ์ฅ ยท ์ง์ฐ๊ธฐ | |
| def heading(s): | |
| return "".join(c.text_frame.text for sh in s.shapes if sh.shape_type == 6 for c in sh.shapes if c.has_text_frame) | |
| prs = Presentation(SRC) | |
| def find(h): | |
| for s in prs.slides: | |
| if h in heading(s): | |
| return s | |
| return None | |
| def new_slide_after(frame, anchor): | |
| """frame ์ฅ์ ํ ๋ํ (KEEP) ๋ง ๋ณต์ฌํ ์ ์ฅ์ anchor ์ฅ ๋ฐ๋ก ๋ค์.""" | |
| sl = prs.slides.add_slide(frame.slide_layout) | |
| tree = sl.shapes._spTree | |
| for sh in list(sl.shapes): | |
| tree.remove(sh._element) | |
| for sh in frame.shapes: | |
| if sh.name not in KEEP: | |
| continue | |
| el = copy.deepcopy(sh._element) | |
| for node in el.iter(): | |
| for attr in (qn("r:embed"), qn("r:link"), qn("r:id")): | |
| rid = node.get(attr) | |
| if rid: | |
| node.set(attr, sl.part.relate_to(frame.part.related_part(rid), frame.part.rels[rid].reltype)) | |
| tree.append(el) | |
| lst = prs.slides._sldIdLst | |
| new = list(lst)[-1] | |
| lst.remove(new) | |
| ids = [s.slide_id for s in prs.slides] | |
| list(lst)[ids.index(anchor.slide_id)].addnext(new) | |
| return sl | |
| def delete(s): | |
| lst, sid = prs.slides._sldIdLst, s.slide_id | |
| for e in list(lst): | |
| if int(e.get("id")) == sid: | |
| lst.remove(e) | |
| prs.part.drop_rel(e.get(qn("r:id"))) | |
| break | |
| # ------------------------------------------------------------------ ๊ธ ๋ฐ๊พธ๊ธฐ | |
| def frames(s): | |
| """์ฅ์ ๋ชจ๋ ๊ธ ์์ ยท ํ ์นธ (๊ทธ๋ฃน ์๊น์ง).""" | |
| def walk(shs): | |
| for sh in shs: | |
| if sh.shape_type == 6: | |
| yield from walk(sh.shapes) | |
| continue | |
| if sh.has_text_frame: | |
| yield sh.name, sh.text_frame | |
| if getattr(sh, "has_table", False) and sh.has_table: | |
| for row in sh.table.rows: | |
| for c in row.cells: | |
| yield sh.name, c.text_frame | |
| yield from walk(s.shapes) | |
| def rep(h, old, new, exact=False, name=None, notes=False): | |
| """h ์ฅ์์ run ๊ธ old โ new. exact = run ์ ์ฒด๊ฐ old ์ผ ๋๋ง. ์ด๋ฏธ new ๋ฉด ๊ฑด๋๋ด๋ค (๋ค์ ๋๋ ค๋ ๊ฐ์).""" | |
| s = find(h) | |
| assert s is not None, h | |
| tfs = [("notes", s.notes_slide.notes_text_frame)] if notes else [(n, tf) for n, tf in frames(s) if name in (None, n)] | |
| hit = done = 0 | |
| for _, tf in tfs: | |
| for p in tf.paragraphs: | |
| for r in p.runs: | |
| if (r.text == old) if exact else (old in r.text): | |
| r.text = new if exact else r.text.replace(old, new) | |
| hit += 1 | |
| elif (r.text == new) if exact else (new in r.text): | |
| done += 1 | |
| assert hit or done, f"๋ชป ์ฐพ์: {h} | {old}" | |
| # ================================================================== 1. ์ ์ฅ | |
| frame = find("Python โ ์์ง ๋ฐ์ดํฐ ์ธํฐํ์ด์ค") | |
| # ------------------------------------------------------------------ closed-loop ํ๊ฐ ์ธํฐํ์ด์ค | |
| if find(H_CL) is None: | |
| s = new_slide_after(frame, frame) | |
| y = body(s, "์์ง ๊ตฌ์กฐ", H_CL, [ | |
| "์๋ฎฌ๋ ์ดํฐ๋ฅผ ์ฐฝ ์๋ ์๋ฒ (vkgs_viewer --serve) ๋ก ๋์ฐ๊ณ , Python VkgsEnv (Gymnasium) ๊ฐ ์ด๋ฆ ์๋ ํ์ดํ๋ก ๋ช ๋ น ยท ์ํ๋ฅผ ์ฃผ๊ณ ๋ฐ์ โ ์ ์ฑ ์ ๋ค๋ฅธ ํ๋ก์ธ์ค๋ผ VLM/VLA ๋ชจ๋ธ์ ๊ทธ๋๋ก ๊ฝ์ (HUGSIM ์)", | |
| "๋ฌผ๋ฆฌ ํ ์คํ ์ ์ฐฝ ์ด์ ๊ณผ ๊ฐ์ ์ฝ๋ (drive.hpp step_with_contact, 0.01 s) โ ์ฐฝ์์ ํ์ธํ ์ถฉ๋ ยท ์ฐ์ ๊ฑฐ๋์ด ํ๊ฐ์ ๊ทธ๋๋ก ์ ์ฉ๋จ", | |
| ]) | |
| y += 0.12 | |
| steps = [("์ ์ฑ (Python)", "replay ์ ๋ฌธ๊ฐ ยท constant ๊ธฐ์ค์ \nVLM/VLA ์ ์ฑ ์๋ฆฌ (policies.py)"), | |
| ("LQR ์ถ์ข (controller.py)", "์จ์ดํฌ์ธํธ โ ๊ฐ์ ยท ์กฐํฅ๊ฐ\n50 ms ๋ง๋ค"), | |
| ("VkgsEnv (closed_loop.py)", "Gymnasium reset ยท step\n๊ด์ธก ยท ๋ณด์ HD_t ยท ์ข ๋ฃ"), | |
| ("vkgs_viewer --serve", "์ฐฝ ์์ ยท ๋ฌผ๋ฆฌ ยท ์ถฉ๋ ยท ๊ตฌ๊ฐ ์คํธ๋ฆฌ๋ฐ\n6์บ ๋ ๋ (+ ๋ผ์ด๋ค ยท ๋ ์ด๋)")] | |
| labels = ["์จ์ดํฌ์ธํธ\n0.5 s ร 6", "๊ฐ์ ยท ์กฐํฅ", "cmd / resp\nFIFO"] | |
| bw, gap = 2.45, (11.8 - 4 * 2.45) / 3 | |
| for i, (t, d) in enumerate(steps): | |
| x = 0.85 + i * (bw + gap) | |
| box(s, x, y, bw, 1.0, d, title=t, size=10, fill=PALE if i < 3 else LIGHT, line=LIGHT) | |
| if i < 3: | |
| arrow(s, x + bw + 0.12, y + 0.42, w=gap - 0.24, h=0.22) | |
| tb(s, x + bw, y + 0.66, gap, 0.36, labels[i], size=8.5, color=BLUE, align=PP_ALIGN.CENTER) | |
| yb = y + 1.12 | |
| a = arrow(s, 0.85, yb, w=11.8, h=0.46, color=LIGHT, kind=MSO_SHAPE.LEFT_ARROW) | |
| tf = a.text_frame | |
| tf.margin_left = Inches(0.5) | |
| p = tf.paragraphs[0] | |
| p.alignment = PP_ALIGN.CENTER | |
| r = p.add_run() | |
| r.text = "๊ด์ธก: 6์บ RGB (/dev/shm ๊ณต์ ๋ฉ๋ชจ๋ฆฌ, HรWร3) ยท ์์ฐจ ์ํ (์๋ ยท ์ ์ด ยท ๋๋ก ์ดํ ยท ๊ฒฝ๋ก ์ดํ) ยท ๊ฒฝ๋ก โ ๊ฒฐ์ 2 Hz" | |
| r.font.size, r.font.color.rgb, r.font.name, r.font.bold = Pt(10), NAVY, FONT, True | |
| table(s, 0.85, yb + 0.6, 11.8, [ | |
| ["๊ตฌ์ฑ", "๋ด์ฉ"], | |
| ["ํ๋กํ ์ฝ (serve.hpp)", "์ค ๋จ์ '์ด๋ฆ key=value' โ 'ok โฆ' | 'err โฆ' โ hello (ํด์๋ ยท ์นด๋ฉ๋ผ ยท ์ฐจ์ฒด ์น์) ยท reset x y yaw [v] ยท step dt accel delta [render=1 sensors=1] ยท state ยท actors ยท close"], | |
| ["์ํ", "t ยท x y z yaw ยท v ยท yaw_rate ยท contact ยท blocked ยท collisions ยท on_road ยท log_dev (๊ธฐ๋ก ๊ถค์ ์์ ๋ฒ์ด๋ ๊ฑฐ๋ฆฌ) ยท seg ยท step_ms ยท render_ms"], | |
| ["์๋๋ฆฌ์ค", "configs/scenarios/<์ฌ>_easy.json โ nusim sim make-scenarios ๊ฐ ๋๋ ์ฌ๋ง๋ค ์์ฑ: ์ถ๋ฐ ํ๋ ์ ยท ๊ธฐ๋ก ์๋ ยท ๊ฒฝ๋ก ยท ์ ํ ์๊ฐ ยท actors ยท overrides"], | |
| ["์ข ๋ฃ (closed_loop.json)", "์ถฉ๋ (์ฅ์ ๋ฌผ ยท ์ฐจ๋์ ๋งํ) ยท ๋๋ก ์ดํ 2 s ์ง์ ยท ๊ฒฝ๋ก์์ 8 m ๋๊ฒ ๋ฒ์ด๋จ (์ฌ๊ตฌ์ฑ ๋ฒ์ ๋ฐ) ยท ๊ฒฝ๋ก ๋ 2 m ์ (์์ฃผ) ยท ์๊ฐ ์ด๊ณผ"], | |
| ], [0.17, 0.83], size=9.5, rowh=0.36) | |
| s.notes_slide.notes_text_frame.text = ( | |
| "์ค๊ณ๋ HUGSIM (arXiv 2412.01718) ์ ๋ฐ๋ฅธ๋ค: ์๋ฎฌ๋ ์ดํฐ๋ฅผ Gymnasium env ๋ก ๊ฐ์ธ๊ณ , ์๋ฎฌ๋ ์ดํฐ์ AD ์๊ณ ๋ฆฌ์ฆ์ ๋ค๋ฅธ ํ๋ก์ธ์ค๋ก, " | |
| "๊ฐ์ ๊ธฐ๊ณ์์๋ ์ด๋ฆ ์๋ ํ์ดํ๋ก ๋งํ๋ค. ๋ ์ชฝ ๋ค cmd ๋ฅผ ๋จผ์ ์ด์ด ๊ต์ฐฉ์ ๋ง๋๋ค. ์ ์ฑ ์ถ๋ ฅ์ UniAD/VAD ์ ๊ฐ์ ์์ฐจ ์ขํ " | |
| "์จ์ดํฌ์ธํธ (0.5 s ร 6) ์ด๊ณ , UniAD ยท VAD ๋ํผ๋ ์์ง ์ฐ๊ฒฐ ์ ์ด๋ค. ์นด๋ฉ๋ผ๋ ํ์ต ์นด๋ฉ๋ผ์ ๊ฐ์ ํ์ง ์์ธ๋ก ๋ถ์ด๊ณ , ๋ ธ๋ฉด์ ์ํ " | |
| "z ยท pitch ยท roll ์ ์ํ๋ก๋ง ์๋ฆฐ๋ค. ์คํ: nusim sim run scene-0402_easy --policy replay โ outputs/closed_loop/<์๋๋ฆฌ์ค>/<์ ์ฑ >.") | |
| # ------------------------------------------------------------------ ์์ง ๋๊ตฌ | |
| perf = find("Vulkan ๋ ๋๋ฌ ์ฑ๋ฅ") | |
| if find(H_TOOLS) is None: | |
| s = new_slide_after(frame, perf) | |
| y = body(s, "์์ง ๊ตฌ์กฐ", H_TOOLS, [ | |
| "๋ ๋ ๊ทธ๋ํ ์์ ํ์ฒ๋ฆฌ ๋ ธ๋ ๊ทธ๋ํ ยท ํ๋กํ์ผ๋ฌ ยท ํ๊ฒฝ ์กฐ๋ช ยท ์ฅ๋ฉด ๊ฐ์ฒด ํธ์ง์ ์น์ โ ์ฝ๋๋ฅผ ๊ณ ์น์ง ์๊ณ ์ค์ (JSON) ์ผ๋ก ๋ฐ๊พธ๊ณ , ํจ์ค๋ง๋ค ์๊ฐ์ ์ผ", | |
| ]) | |
| tb(s, 0.85, y, 11.8, 0.3, "camera_isp ์ ฐ์ด๋ ๊ทธ๋ํ โ configs/shader_graphs/camera_isp.json โ ์์ฑ GLSL (๋ ธ๋ = n_<op> ํจ์, ์์ ์ ๋ ฌ ยท ์ํ ยท ํ์ ๊ฒ์ฌ๋ ๋น๋ ๋)", | |
| size=10, bold=True, color=NAVY) | |
| nodes = ["์ ๋ ฅ", "sRGB โ ์ ํ", "๋ ธ์ถ", "ํ์ดํธ๋ฐธ๋ฐ์ค", "๋น๋คํ ", "์ผ์ ๋ ธ์ด์ฆ", "์ ํ โ sRGB", "์ฑ๋", "๋๋น", "์ถ๋ ฅ"] | |
| nw, ng = 0.98, (11.8 - 10 * 0.98) / 9 | |
| yn = y + 0.34 | |
| for i, n in enumerate(nodes): | |
| x = 0.85 + i * (nw + ng) | |
| box(s, x, yn, nw, 0.46, n, fill=NAVY if i in (0, 9) else LIGHT, color=WHITE if i in (0, 9) else NAVY, size=9, bold=True) | |
| if i < 9: | |
| arrow(s, x + nw + 0.03, yn + 0.15, w=ng - 0.06, h=0.16) | |
| ym = yn + 0.62 | |
| mw, mh = 5.82, (6.95 - ym - 0.12) / 2 | |
| module(s, 0.85, ym, mw, mh, "โ ์ ฐ์ด๋ ๊ทธ๋ํ (ํ์ฒ๋ฆฌ ๋ ธ๋)", | |
| "์์ฑ๊ธฐ๊ฐ GLSL ํจ์ ์๊ทธ๋์ฒ์์ ์ ๋ ฅ ํฌํธ ยท ๋งค๊ฐ๋ณ์ (// @param ๊ธฐ๋ณธ๊ฐ ยท ๋ฒ์) ๋ฅผ ์ฝ์ โ ๋ ธ๋๋ฅผ ๋ํด๋ ์์ฑ๊ธฐ๋ ๊ทธ๋๋ก\n" | |
| "๋งค๊ฐ๋ณ์๋ SSBO โ F2 ์ฐฝ ์ฌ๋ผ์ด๋ ยท sim.json ์ผ๋ก ๋ค์ ์ปดํ์ผ ์์ด ๋ฐ๊ฟ\n" | |
| "camera_isp: VLM ์ด ์นด๋ฉ๋ผ ํน์ฑ ๋ณํ๋ฅผ ๊ฒฌ๋๋์ง ์ํํ๋ ค๋ ๊ฒ, ๊ธฐ๋ณธ ๊บผ์ง", size=10.5) | |
| module(s, 0.85 + mw + 0.16, ym, mw, mh, "โก Tracy ํ๋กํ์ผ๋ง", | |
| "CPU ๊ตฌ๊ฐ (render ยท record ยท gpu wait ยท ํจ์ค๋ณ ยท PNG ์ธ์ฝ๋ฉ) + GPU ํ์์คํฌํ (ํจ์ค ยท ๊ทธ๋ฆฌ๊ธฐ ํญ๋ชฉ๋ง๋ค)\n" | |
| "ํ๋กํ์ผ๋ฌ๊ฐ ๋ถ์ด ์์ ๋๋ง ๊ธฐ๋ก (TRACY_ON_DEMAND) โ ํ์ ๋น์ฉ ๊ฑฐ์ ์์\n" | |
| "์ฒซ ์ธก์ : ์คํ์คํฌ๋ฆฐ ํ ์ฅ 229 ms ์ค PNG ์ ์ฅ 216 ms โ ๋ฐฑ๊ทธ๋ผ์ด๋ ์ธ์ฝ๋ฉ ยท ํํฐ ๊ณ ์ ์ผ๋ก 23 ms", size=10.5) | |
| module(s, 0.85, ym + mh + 0.12, mw, mh, "โข IBL ํ๊ฒฝ ์กฐ๋ช (glTF ์ฐจ๋)", | |
| "6์บ ์ฌ์ง (์ ๋ณด์ ์ญ์ ์ฉ) + 3DGS ์ฑ์ โ 360ยฐ ํ๋ ธ๋ผ๋ง โ HDR ๊ทผ์ฌ ํ๋ธ๋งต 512ยฒ\n" | |
| "GGX specular (mip 6) ยท SH9 irradiance ยท BRDF LUT โ BC6H KTX2 (16 โ 2 MB)\n" | |
| "glTF ์์ฐจ ยท ์ฐจ๋ PBR (clearcoat ยท ์ ๋ฆฌ ๊ทผ์ฌ) + ์ ์ง ๊ทธ๋ฆผ์, ๋ฉ์โ์คํ๋ซ ๊น์ด ํฉ์ฑ", size=10.5) | |
| module(s, 0.85 + mw + 0.16, ym + mh + 0.12, mw, mh, "โฃ ์ฅ๋ฉด ๊ฐ์ฒด (--objects, K ์ฐฝ)", | |
| "๊ฐ์ฒด ๊ฐ์ฐ์์์ ๋ฐฐ๊ฒฝ๊ณผ ๋ค๋ฅธ ๋ฒํผ + ๊ฐ์ฒด ํ SSBO ๋ก ํ๋ ์๋ง๋ค ์์ธ โ ์ถ๊ฐ ยท ์ญ์ ์ ๋ฐฐ๊ฒฝ์ ๋ค์ ์ฌ๋ฆฌ์ง ์์\n" | |
| "ํธ์ง: ํด๋ฆญ ์ ํ ยท ๋๋๊ทธ ์ด๋ ยท ํ ํ์ ยท Delete ยท ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์์ ์ถ๊ฐ ยท objects.json ์ ์ฅ\n" | |
| "๊ฐ์ฒด ๋ฐ์ค ๋ฐ๋ฅ ์ฌ๊ฐํ์ ์์ฐจ ์ถฉ๋ ํ์ ์๋ ๋ค์ด๊ฐ (vehicle_contact)", size=10.5) | |
| s.notes_slide.notes_text_frame.text = ( | |
| "์ ฐ์ด๋ ๊ทธ๋ํ: ์์ฑ๊ธฐ scripts/shader_graph.py, ๊ฒฐ๊ณผ build/shaders/gen/<์ด๋ฆ>.comp ยท .params.json ยท .dot (์์ฑ๋ฌผ์ ๊ณ ์น์ง ์๋๋ค). " | |
| "๋ ธ๋๋ ํฝ์ ํ๋๋ง ๋ณด๋ฏ๋ก post ์ด๋ฏธ์ง๋ฅผ ์ ์๋ฆฌ์์ ๊ณ ์น๋ค. Tracy: scripts/build_tracy.sh ๋ก ์ฌ์ฉ์ ๊ณต๊ฐ ๋น๋, scripts/profile.sh ๋ก ์บก์ฒ์ ํต๊ณ. " | |
| "IBL: nusim render ibl <scene> (20์ด), ๋ทฐ์ด --ibl. ํ๊ฒฝ๋งต์ ํ ์ง์ ๊ฒ์ด๋ผ ์์ฐจ๊ฐ ์์ญ m ์์ง์ด๋ฉด ๋ฐ์ฌ๊ฐ ๋ง์ง ์๋๋ค. " | |
| "์ฅ๋ฉด ๊ฐ์ฒด: ์๋ณธ์ objects.orig.json ์ผ๋ก ๋จ๊ธด๋ค. ์๋ ์ฐจ๋ ์์ง ๋ฐ์ํ์ง ์๋๋ค (์์ฐจ๊ฐ ๋ฉ์ถ ๋ฟ).") | |
| # ------------------------------------------------------------------ HD-Score | |
| sens = find("๋ผ์ด๋ค ยท ๋ ์ด๋ ์ผ์ ๋ฐ์ดํฐ") | |
| if find(H_HD) is None: | |
| s = new_slide_after(frame, sens) | |
| y = body(s, "์๋ฎฌ๋ ์ด์ ", H_HD, [ | |
| "HUGSIM ์ HD-Score (NAVSIM PDM-Score ์์ EP ์ ์ธ) ๋ฅผ ์ฐ๋ฆฌ ํ์ ์ฌ๋ฃ (์ฅ์ ๋ฌผ ์ง๋ ยท ์ฃผํ๊ฐ๋ฅ์์ญ ยท ์๋ฒ ์ ์ด) ๋ก ๊ตฌํ โ ๊ฒฐ์ ์์ ์ ์๋ ๊ทธ๋๊น์ง์ ๋ก๊ทธ๋ง ์", | |
| "๊ธฐ์ค์ : ๊ธฐ๋ก ๊ถค์ ์ ๋ฐ๋ฅด๋ replay ๋ 1.0 ์ ๊ฐ๊น๊ณ , ๊ฒฝ๋ก๋ฅผ ๋ณด์ง ์๋ constant (์ง์ง ๋ฑ์) ๋ ์ถฉ๋ํด 0.17 ยท 0.44 โ ์งํ๊ฐ ์ฃผํ ์คํจ๋ฅผ ๊ฐ๋ ค๋", | |
| ]) | |
| y = 2.55 # ๋ ๊ธ๋จธ๋ฆฌ ๋ค์ (body() ์ ์ค ์ ์ถ์ ์ ๋๋ํ๋ค) | |
| box(s, 0.85, y, 11.8, 0.42, "HD_t = NC ร DAC ร (5 ยท TTC + 2 ยท COM) / 7 HD-Score = Rc ร ํ๊ท _t HD_t", | |
| fill=PALE, color=NAVY, size=13, bold=True, line=LIGHT) | |
| yc = y + 0.55 | |
| lw = 5.5 | |
| table(s, 0.85, yc, lw, [ | |
| ["ํญ๋ชฉ", "์ ์ (๊ฒฐ์ 2 Hz ๋ง๋ค)"], | |
| ["NC", "์ฐจ๋ ยท ์ฅ์ ๋ฌผ์ ๋งํ๋ฉด 0 (์ฐ์์ DAC ๊ฐ ๋ด)"], | |
| ["DAC", "๋ชจ๋ ์ ์ด ์คํ ์์ ์ฐจ์ฒด ๋๋ 8์ ์ด ์ฃผํ๊ฐ๋ฅ์์ญ ์"], | |
| ["TTC", "๋ฑ์ ยท ๋ฑ๋ฐฉ์ 1 s ํฌ์ (0.1 s ๊ฐ๊ฒฉ) ์ด ์ง๊ธ๋ณด๋ค ๊น์ด ๋ฟ์ผ๋ฉด 0"], | |
| ["COM", "2 s ์ฐฝ: ์ข ๊ฐ์ โ4.05~2.40 ยท ํก๊ฐ์ 4.89 ยท ์ ํฌ ยท ์๋ ์ดํธ ํ๊ณ"], | |
| ["Rc", "๊ฒฝ๋ก ์งํ / ๊ฒฝ๋ก ๊ธธ์ด (๋ 2 m ์์ด๋ฉด 1)"], | |
| ], [0.13, 0.87], size=9, rowh=0.3) | |
| yr = yc + 6 * 0.3 + 0.12 | |
| table(s, 0.85, yr, lw, [ | |
| ["์๋๋ฆฌ์ค", "์ ์ฑ ", "Rc", "TTC", "COM", "HD-Score"], | |
| ["scene-0402 Easy", "replay", "1.00", "1.00", "1.00", "1.000"], | |
| ["(235 m ์ง์ )", "constant", "0.21", "0.89", "0.89", "0.169"], | |
| ["scene-0006 Easy", "replay", "1.00", "0.97", "1.00", "0.982"], | |
| ["(101 m, 90ยฐ ํ์ )", "constant", "0.55", "0.83", "0.92", "0.440"], | |
| ], [0.3, 0.16, 0.12, 0.12, 0.12, 0.18], size=9, rowh=0.28, align_right=(2, 3, 4, 5)) | |
| picture(s, FIG / "fig_hdscore.png", 0.85 + lw + 0.15, yc, 11.8 - lw - 0.15, 6.9 - yc) | |
| s.notes_slide.notes_text_frame.text = ( | |
| "2026-10-11 ์ธก์ , 800ร450 6์บ , ํ์ต ์์ ๊ณผ GPU ๊ณต์ . 6์บ ๋ ๋ 62~79 ms, ๋ฌผ๋ฆฌ 50 ms ์ ๋ถ + ์ ์ด 0.3~0.6 ms, ๊ฒฐ์ ํ ๋ฒ ์ฝ 120 ms " | |
| "(์ค์๊ฐ์ ์ฝ 4๋ฐฐ ๋น ๋ฅด๊ธฐ). constant ๋ scene-0402 ์์ 49 m ์ง์ ์ผ์ชฝ ๋๋ฌด, scene-0006 ์์ ํ์ ๊ตฌ๊ฐ ์ง์ง ์ค ์ค์ ํ๋จ์ ๋ถ๋ชํ๋ค. " | |
| "scene-0006 replay ์ TTC ํ ๋ฒ 0 ์ ํ์ ์ค ๋ฑ๋ฐฉ์ ํฌ์์ด ๋ฐ๊นฅ ์ฅ์ ๋ฌผ๋ก ๋๊ฐ์๋ค (NAVSIM ๊ณผ ๊ฐ์ ํ๊ณ). NC ๋ ์ ์ ์ฅ์ ๋ฌผ๋ 0 ์ผ๋ก ์ํ๊ฒ " | |
| "๋๋ค (NAVSIM 0.5). Python ํ์ ์ drive.hpp ์ ๊ฐ์ ํ๋ณธ์ ์ ์ฐ๊ณ tests/test_serve_cpp.py ๊ฐ ์ ์๋ฅผ ๋์กฐํ๋ค. ํ๊ณ: ๋ค๋ฅธ ์ฐธ๊ฐ์๋ ์์ง " | |
| "๊ทธ๋ฆฌ์ง ์์ Easy ๋ง ์๋ฏธ ์๊ณ , ์ง์ญ ๋งต์ ์ฅ์ ๋ฌผ ยท ๋ณต์ ์ด ์์ด ์๋๋ฆฌ์ค๋ก ์ฐ์ง ์๋๋ค. ์ฑ์ : nusim sim score outputs/closed_loop/<์๋๋ฆฌ์ค>/<์ ์ฑ > -v.") | |
| # ================================================================== 2. ์์น ยท ๋ฌธ๊ตฌ ๋ฐ๋ก์ก๊ธฐ | |
| R = "๋ ๋ ๊ทธ๋ํ โ ํ ํ๋ ์์ ํจ์ค ํ์ดํ๋ผ์ธ" | |
| rep(R, "(RGBA16F ์ + r32f ๊ฑฐ๋ฆฌ)", "(RGBA16F ์ + rg32f ๊ฑฐ๋ฆฌ)") | |
| rep(R, "fxaa_resolve โ to_present (camera_isp ๊บผ์ง)", "fxaa_resolve โ camera_isp (๊ธฐ๋ณธ ๊บผ์ง) โ camera_mode (RGB ๋ฉด ํต๊ณผ) โ to_present", notes=True) | |
| rep(R, "sort 0.44 ms (์ด์ bitonic 31~35 ms ๋๋น 13๋ฐฐ)", "sort 0.44 ms", notes=True) | |
| rep(R, "scene 4.38 ms.", "scene 4.38 ms. ์ ๋ ฌ ๊ต์ฒด ํจ๊ณผ (bitonic 31~35 ms โ radix 2.7 ms, ์ฝ 12๋ฐฐ) ๋ ํ์ต๊ณผ GPU ๋ฅผ ๊ฐ์ด ์ฐ๋ ๊ฐ์ ์กฐ๊ฑด์์ ์ฐ ๊ฐ์ด๋ค.", notes=True) | |
| rep(R, "๊ฑฐ๋ฆฌ ๋์ ์ ์ผ์", "๊ฑฐ๋ฆฌ ๋์ (rg32f: ฮฃzฮฑ, ฮฃฮฑ) ์ ์ผ์", notes=True) | |
| P = "Vulkan ๋ ๋๋ฌ ์ฑ๋ฅ" | |
| rep(P, "13ร", "12ร", exact=True) | |
| rep(P, "16 ms", "15.5 ms", exact=True) | |
| rep(P, "1600ร900 ํ ์ฅ (์คํ์คํฌ๋ฆฐ)", "1600ร900 ํ ์ฅ (GPU ๋จ๋ )") | |
| rep(P, "๊ฑฐ๋ฆฌ ๋์ r32f", "๊ฑฐ๋ฆฌ ๋์ rg32f (ฮฃzฮฑ, ฮฃฮฑ)") | |
| rep(P, "* ์์น๋ ํ์ต๊ณผ GPU ๋ฅผ ํจ๊ป ์ฐ๋ ์ํ์์ ์ธก์ ", | |
| "* ์ ๋ ฌ 31~35 โ 2.7 ms ๋ ํ์ต๊ณผ GPU ๋ฅผ ํจ๊ป ์ฐ๋ ์ํ์์ ์ธก์ (1600ร900 ํ ์ฅ์ GPU ๋จ๋ 15.5 ms, ํจ๊ป ์ฐ๋ฉด 17.1 ms)") | |
| L = "์์ค ํจ์ ๋ฐ ํ์ต ์ค์ " | |
| rep(L, "lr ํ์ / ๋ถํฌ๋ช ๋ / ์", "lr ํ์ / ๋ถํฌ๋ช ๋ / SH ์", exact=True) | |
| rep(L, "1e-3 / 5e-2 / 1e-3", "1e-3 / 5e-2 / 2.5e-3 (๊ณ ์ฐจ 1/20)", exact=True) | |
| D = "๋ชจ๋ โฅ 3DGS ๋๋จน์ ๋ฏธ์ธ์กฐ์ " | |
| rep(D, "์ ์ PSNR (์ค์๊ฐ)", "PSNR ๋ณํ", exact=True) | |
| rep(D, "23.92 โ 23.65 dB (์๋ ๊ถค์ , โ0.27)", "์๋ ๊ถค์ 23.92 โ 23.65 (โ0.27) ยท ์ 1 m ๋ ธ๋ฉด +1.1 dB", exact=True) | |
| rep(D, "์์ธ ๋ถ์์ ์งํ ํํฉ์ '์ฐจ์ ํ์ง ์์ธ ๋ถ์' ์ฅ.", | |
| "์์ธ ๋ถ์์ ์งํ ํํฉ์ '์ฐจ์ ํ์ง ์์ธ ๋ถ์' ์ฅ. ๋ PSNR ์ ๋ค๋ฅธ ์งํ๋ค: โ0.27 dB ๋ ์๋ ๊ถค์ hold-out ์ ์ ์ ์์ญ ์ค์๊ฐ (18๊ตฌ๊ฐ), " | |
| "+1.1 dB ๋ scene-0001 seg0 ์ 1 m ์์ ์ ๋ ธ๋ฉด ํฝ์ ์ ํ๋ฉด ์ํํ ์ค์ ์ฌ์ง๊ณผ ๋น๊ตํ ๊ฐ (25.14 โ 26.22 dB).", notes=True) | |
| Q = "์ฐจ์ ํ์ง ์์ธ ๋ถ์" | |
| rep(Q, "๋๋จน์์ PSNR ์ ์ฝ 1 dB ์ฌ๋ฆฌ์ง๋ง", | |
| "๋๋จน์์ ๋ ธ๋ฉด PSNR (ํ๋ฉด ์ํํ ์ค์ ์ฌ์ง ๋๋น, 0 ยท ยฑ1 m ์์ ) ์ ์ฝ 1 dB ์ฌ๋ฆฌ์ง๋ง (+1 m: 25.14 โ 26.22 dB โ ์๋ ๊ถค์ ์ ์ PSNR ์ โ0.27 dB, ๋๋จน์ ์ฅ)", | |
| notes=True) | |
| rep("๋ ์จ ์ฃผํ ์์", "ํ๋ฆฌ์ 11๊ฐ", "ํ๋ฆฌ์ 11๊ฐ = ๋ง์ + ๋ ์จ 10์ข ", notes=True) | |
| rep("์์ ์ฑ ๊ฐ์ ", "ํ์ต ๋จ์ 79๊ฐ ์คํจ", "ํ์ต ๋จ์ 178๊ฐ ์คํจ (์ฝ 55์ฌ)", exact=True) | |
| # ================================================================== 3. ๊ฐ์ ์งํ๋ ๊ฐ์ ํ๋ณธ (313 ๋จ์, 2026-10-15) | |
| rep("์ฌ๊ตฌ์ฑ ๊ฒฐ๊ณผ", "๊ตฌ๊ฐ ์ ์ PSNR ์ค์๊ฐ 24.7 dB (84 ๋จ์), ํ์ 10% 22.1 dB, ํ์ต ์คํจ 0๊ฑด", | |
| "๊ตฌ๊ฐ ์ ์ PSNR ์ค์๊ฐ 24.71 dB ยท SSIM 0.767 (313 ๋จ์), ํ์ 10% 22.0 dB โ ์คํจ 6๋จ์๋ ๋ชจ๋ NAS ์ ์ถ๋ ฅ ์ค๋ฅ (์ฌ๊ฐ ๋ ๋ค์ ํ์ต)") | |
| T2 = "nuScenes ์๋ ๊ฒฝ๋ก ํ์ง โ ๊ทธ ๋ฐ์ ๋ ผ๋ฌธ ํ๋กํ ์ฝ" | |
| rep(T2, "VKGS-Sim โ 258 ๋จ์ ์ค์๊ฐ (15k ์คํ )", "VKGS-Sim โ 313 ๋จ์ ์ค์๊ฐ (15k ์คํ )", exact=True) | |
| rep(T2, "24.65", "24.71", exact=True) | |
| rep(T2, "0.766", "0.767", exact=True) | |
| T3 = "๋ ๋๋ง ์๋ ร ํ์ง" | |
| rep(T3, "24.65 โ ", "24.71 โ ", exact=True) | |
| rep(T3, "258 ๋จ์ ์ค์๊ฐ", "313 ๋จ์ ์ค์๊ฐ") | |
| # ================================================================== 4. ์งํ ์์น (2026-10-15 20์) | |
| cover = prs.slides[0] | |
| for _, tf in frames(cover): | |
| for p in tf.paragraphs: | |
| for r in p.runs: | |
| if r.text == "2026. 10. 14.": | |
| r.text = "2026. 10. 15." | |
| A = "ArtiFixer + ์ฐจ์ ํ์ฒ๋ฆฌ ์ฆ๊ฐ ๊ฒฐ๊ณผ" | |
| rep(A, "10์ฌ ์๋ฃ ยท 3,584์ฅ", "61์ฌ ์๋ฃ ยท 21,962์ฅ (์คํจ 6์ฌ)", exact=True) | |
| rep(A, "๋จ์ ์ฝ 84์ฌ (์ฝ 2์ผ)", "๋จ์ 27์ฌ (10/15 20์, ์ฝ 14์๊ฐ)", exact=True) | |
| M = "์ฑ๊ฐํฌ๋ฅด ๋ฎ ๋งต ๊ตฌ์ถ ํํฉ" | |
| rep(M, "์ฑ๊ฐํฌ๋ฅด ๋ฎ ๋งต ๊ตฌ์ถ ํํฉ (2026-10-14)", "์ฑ๊ฐํฌ๋ฅด ๋ฎ ๋งต ๊ตฌ์ถ ํํฉ (2026-10-15)", exact=True) | |
| rep(M, "ํ์ต ๋จ์ 696๊ฐ ์ค 313๊ฐ (45%) ์๋ฃ", "ํ์ต ๋จ์ 696๊ฐ ์ค 319๊ฐ (46%) ์๋ฃ") | |
| rep(M, "313 / 696", "319 / 696", exact=True) | |
| rep(M, "ํ์ต ๋จ์ (45%)", "ํ์ต ๋จ์ (46%)", exact=True) | |
| rep(M, "10์ฌ", "61์ฌ", exact=True) | |
| rep(M, "ArtiFixer + ์ฐจ์ ํ์ฒ๋ฆฌ (3.6k์ฅ)", "ArtiFixer + ์ฐจ์ ํ์ฒ๋ฆฌ (22.0k์ฅ)", exact=True) | |
| rep(M, "313", "313 / 319", exact=True, name="TextBox 22") | |
| rep(M, "์๋งจํฑ ๋ผ๋ฒจ (๋ชจ๋ ๊ตฌ๊ฐ)", "์๋งจํฑ ๋ผ๋ฒจ ๊ตฌ๊ฐ (์ 6๊ตฌ๊ฐ์ ์ด ๋ ์์ฑ)", exact=True) | |
| rep(M, "10์ 14์ผ", "10์ 15์ผ", exact=True) | |
| rep(M, "313", "319 (NAS ์ค๋ฅ 6๋จ์ ์ฌ์๋ ๋๊ธฐ)", exact=True, name="Table 24") | |
| rep(M, "10์ฌ 3,584์ฅ ยท 7์ฌ 18๊ตฌ๊ฐ ๋ฏธ์ธ์กฐ์ (gs_day_afx)", "61์ฌ 21,962์ฅ ยท 7์ฌ 18๊ตฌ๊ฐ ๋ฏธ์ธ์กฐ์ (gs_day_afx)", exact=True) | |
| rep(M, "๋ชจ๋ ๊ตฌ๊ฐ ๋ผ๋ฒจ ยท render view/map ์ด ์์ผ๋ฉด ์๋ ์์ฑ", "313 / 319 ๊ตฌ๊ฐ ๋ผ๋ฒจ ยท ์์ผ๋ฉด render view/map ์ด ์๋ ์์ฑ", exact=True) | |
| rep("ํฅํ ์ฐ๊ตฌ ๊ณํ", "๋จ์ ์ฝ 84์ฌ ArtiFixer ์ฆ๊ฐ (์ฝ 2์ผ) โ day_map ์ผ๊ด ํ์ต ์ฌ๊ฐ (383๋จ์ ๋จ์)", | |
| "๋จ์ 27์ฌ ArtiFixer ์ฆ๊ฐ (์ฝ 14์๊ฐ) โ day_map ์ผ๊ด ํ์ต ์ฌ๊ฐ (377๋จ์ ๋จ์)", exact=True) | |
| # ================================================================== 6. ์์ง ๊ตฌ์กฐ๋ ๊ทธ๋ฆผ (rg32f ๋ผ๋ฒจ) | |
| for h, fn in (("์๋ฎฌ๋ ์ด์ ์์ง ์ ์ฒด ๊ตฌ์กฐ๋", "fig_engine_pipeline.png"), (R, "fig_engine_pipeline_b.png")): | |
| s = find(h) | |
| pic = next(sh for sh in s.shapes if sh.shape_type == 13) | |
| part = s.part.related_part(pic._element.blipFill.find(qn("a:blip")).get(qn("r:embed"))) | |
| new = (FIG / fn).read_bytes() | |
| assert Image.open(FIG / fn).size == pic.image.size, fn # ๊ฐ์ ํํ์ผ ๋๋ง ๋ฐ๊ฟ ๋ผ์ด๋ค | |
| part._blob = new | |
| # ================================================================== 5. ๊ฒน์น๋ ์๋ ์ฑ๋ฅ ๋น๊ต 2์ฅ (์ ์ฅ์ ๋ค ๋ฃ์ ๋ค์ โ ๋จผ์ ์ง์ฐ๋ฉด ์ ์ฅ ํ์ผ ์ด๋ฆ์ด ๊ฒน์น๋ค) | |
| for h in DELETE: | |
| s = find(h) | |
| if s is not None: | |
| delete(s) | |
| prs.save(OUT) | |
| print("saved", OUT, len(prs.slides), "slides") | |