Skip to content

Instantly share code, notes, and snippets.

View chrisvoncsefalvay's full-sized avatar
🥼
doing science & still alive ;)

Chris von Csefalvay chrisvoncsefalvay

🥼
doing science & still alive ;)
View GitHub Profile
@chrisvoncsefalvay
chrisvoncsefalvay / throughput_ablation.py
Last active August 16, 2026 00:20
Who can say where the time goes...
"""Throughput ablation: what the fluorosim render path costs as architected,
and what it would cost repaired.
Runs against the live Slang renderer (CUDA required) at commit 945948d.
Measures the as-built per-iteration cost of the documented registration
workflow, decomposes it into kernel, readback, launch and CPU post-processing
components by regression, and projects the cost after each architectural
repair:
V0 as-built: SlangDiffDRRFunction forward + backward per step
@chrisvoncsefalvay
chrisvoncsefalvay / ceres-task-specification.json
Created August 15, 2026 23:40
CERES sample task: Box packing
{"schema":"ceres-task-specification","version":1,"runTitle":"Box packing","runDescription":"Pack merchandise between layers of packing paper and seal the box.","cycleCount":1,"tasks":[{"id":"place-bottom-packing-paper","type":"open","label":"Place packing paper at bottom","instructions":"Place packing paper at the bottom of the box.\nComplete when the base is covered.","repeatCount":1,"resetTimeS":5},{"id":"insert-merchandise","type":"timed","label":"Insert merchandise","instructions":"Place the merchandise into the box.\nComplete when it is positioned securely.","durationS":20,"repeatCount":1,"resetTimeS":5},{"id":"place-top-packing-paper","type":"open","label":"Place packing paper on top","instructions":"Place packing paper over the merchandise.\nComplete when the merchandise is covered.","repeatCount":1,"resetTimeS":5},{"id":"seal-box","type":"open","label":"Seal the box","instructions":"Close and seal the box.\nComplete when all flaps are secured.","repeatCount":1,"resetTimeS":5}]}
@chrisvoncsefalvay
chrisvoncsefalvay / ceres-task-specification.json
Last active August 15, 2026 23:16
CERES sample task: Phlebotomy
{"schema":"ceres-task-specification","version":1,"runTitle":"Phlebotomy","runDescription":"Prepare the collection site, fill red whole-blood and blue citrate tubes, secure the needle and seal both vacutainers in a specimen bag.","cycleCount":1,"tasks":[{"id":"open-prep-pad","type":"timed","label":"Open prep pad","instructions":"Open the prep pad.\nComplete when it is open and ready for use.","durationS":5,"repeatCount":1,"resetTimeS":5},{"id":"prep-site","type":"timed","label":"Prep the site","instructions":"Prep the collection site with the opened pad.\nContinue for the full timed interval.","durationS":10,"repeatCount":1,"resetTimeS":5},{"id":"wait-after-prep","type":"pause","label":"Wait after site prep","instructions":"Leave the prepared site undisturbed.\nContinue when the wait ends.","durationS":15},{"id":"open-needle-pack","type":"timed","label":"Open needle pack","instructions":"Open the needle pack.\nComplete when the needle is exposed for use.","durationS":10,"repeatCount":1,"resetTimeS":5},{"id":"u
"""repr: fluorosim autograd boundary mismatch (pose gradients).
Demonstrates that `SlangDiffDRRFunction` returns gradients of the raw
Beer-Lambert intensity while the forward pass hands PyTorch the normalised
and inverted image, so the chain rule factor for the post-processing is
never applied. Under the package defaults (`normalize=True, invert=True`)
the documented gradient-based 2D/3D registration workflow anti-converges;
with `invert` alone the returned gradient is the exact negative of the
true one.
@chrisvoncsefalvay
chrisvoncsefalvay / ceres-task-specification.json
Last active July 23, 2026 16:46
CERES sample task: Clean a refrigerator shelf
{"schema":"ceres-task-specification","version":1,"runTitle":"Clean a refrigerator shelf","runDescription":"Clear, clean, dry and restock one prepared refrigerator shelf.","cycleCount":1,"tasks":[{"id":"clear-shelf","type":"open","label":"Clear the shelf","instructions":"Move all shelf items to the marked holding area.\nComplete when the shelf is empty and items are upright.","repeatCount":1,"resetTimeS":5},{"id":"clean-shelf","type":"open","label":"Clean the shelf","instructions":"Wipe the shelf with the prepared materials.\nComplete when no spills, crumbs or residue remain.","repeatCount":1,"resetTimeS":5},{"id":"air-dry-shelf","type":"pause","label":"Let the shelf air-dry","instructions":"Leave the cleaned shelf clear.\nContinue after the surface air-dries.","durationS":30},{"id":"restock-shelf","type":"open","label":"Restock the shelf","instructions":"Return items with labels facing outward.\nComplete when all items are upright and accessible.","repeatCount":1,"resetTimeS":5}]}
@chrisvoncsefalvay
chrisvoncsefalvay / ceres-task-specification.json
Last active July 23, 2026 16:45
CERES sample task: Fold laundry
{"schema":"ceres-task-specification","version":1,"runTitle":"Fold laundry","runDescription":"Open-ended folding and sorting of a prepared laundry set.","cycleCount":1,"tasks":[{"id":"fold-laundry","type":"open","label":"Fold laundry","instructions":"Fold items into compact rectangles and sort by type.\nComplete when stacks are stable and no items remain loose.","repeatCount":1,"resetTimeS":5}]}
@chrisvoncsefalvay
chrisvoncsefalvay / ceres-task-specification.json
Last active July 23, 2026 16:45
CERES sample task: Set a dining table
{"schema":"ceres-task-specification","version":1,"runTitle":"Set a dining table","runDescription":"Arrange complete place settings for a prepared dining table.","cycleCount":1,"tasks":[{"id":"place-tableware","type":"open","label":"Place tableware","instructions":"Place one plate at each marked seat.\nComplete when centred and clear of the table edge.","repeatCount":1,"resetTimeS":5},{"id":"place-cutlery","type":"open","label":"Place cutlery","instructions":"Arrange the full cutlery set beside each plate.\nComplete when every set is aligned.","repeatCount":1,"resetTimeS":5},{"id":"place-drinking-vessels","type":"open","label":"Place drinking vessels","instructions":"Place one drinking vessel at each setting.\nComplete when upright and evenly positioned.","repeatCount":1,"resetTimeS":5},{"id":"inspect-table","type":"open","label":"Inspect the table","instructions":"Straighten settings and add shared items.\nComplete when settings match and items are reachable.","repeatCount":1,"resetTimeS":5}]}
@chrisvoncsefalvay
chrisvoncsefalvay / ceres-task-specification.json
Last active July 23, 2026 16:45
CERES sample task: Make a burrito
{"schema":"ceres-task-specification","version":1,"runTitle":"Make a burrito","runDescription":"Assemble and roll one burrito from prepared ingredients.","cycleCount":1,"tasks":[{"id":"prepare-workspace","type":"open","label":"Prepare the workspace","instructions":"Lay out the tortilla, fillings and serving surface.\nComplete when all items are within reach.","repeatCount":1,"resetTimeS":5},{"id":"add-fillings","type":"open","label":"Add the fillings","instructions":"Place fillings in a compact line below centre.\nComplete when filling stays clear of the edges.","repeatCount":1,"resetTimeS":5},{"id":"fold-burrito","type":"open","label":"Fold and roll","instructions":"Fold the bottom, tuck both sides and roll tightly.\nComplete when enclosed with the seam underneath.","repeatCount":1,"resetTimeS":5},{"id":"plate-burrito","type":"open","label":"Plate the burrito","instructions":"Place the burrito seam-down and clear loose filling.\nComplete when it stays closed on the serving surface.","repeatCount":1,"resetTime
@chrisvoncsefalvay
chrisvoncsefalvay / ceres-task-specification.json
Last active July 23, 2026 16:45
CERES sample task: Bag groceries
{"schema":"ceres-task-specification","version":1,"runTitle":"Bag groceries","runDescription":"Pack a prepared grocery set into bags without crushing fragile items.","cycleCount":1,"tasks":[{"id":"group-groceries","type":"open","label":"Group groceries","instructions":"Group groceries as heavy, stable, fragile or chilled.\nComplete when every item has a group.","repeatCount":1,"resetTimeS":5},{"id":"pack-stable-items","type":"open","label":"Pack stable items","instructions":"Put heavy and stable items at the bottom.\nComplete when the bags stand securely.","repeatCount":1,"resetTimeS":5},{"id":"pack-fragile-items","type":"open","label":"Pack fragile items","instructions":"Place fragile items above the stable base.\nComplete when every item is supported.","repeatCount":1,"resetTimeS":5},{"id":"finish-bags","type":"open","label":"Finish the bags","instructions":"Add chilled items, balance and secure each bag.\nComplete when all bags lift without shifting.","repeatCount":1,"resetTimeS":5}]}
@chrisvoncsefalvay
chrisvoncsefalvay / ceres-task-specification.json
Last active July 23, 2026 16:45
CERES sample task: Wash dishes
{"schema":"ceres-task-specification","version":1,"runTitle":"Wash dishes","runDescription":"Open-ended cleaning of a prepared set of dishes.","cycleCount":1,"tasks":[{"id":"wash-dishes","type":"open","label":"Wash dishes","instructions":"Wash, rinse and place all dishes in the drying area.\nComplete when clean with no visible residue.","repeatCount":1,"resetTimeS":5}]}