Add joint BACP and Wan camera trajectories for all three demos
Browse filesFiles changed (5)
- bacp_20261130/wan_plan_pixel_audit_20261201/README.md+2
- bacp_20261130/wan_plan_pixel_audit_20261201/SHA256SUMS+4-2
- bacp_20261130/wan_plan_pixel_audit_20261201/code/paths.pyAdded+51
- bacp_20261130/wan_plan_pixel_audit_20261201/code/report.py+2
- bacp_20261130/wan_plan_pixel_audit_20261201/figures/paths.pngAdded
23 unmodified lines24252627282923 unmodified lines## Where the trajectories diverge- **006144.** Slot 1 moves 54.6 px over the first eight-frame window. Later the shrinking visible portion of slot 3 makes the second hit harder to assign. Around frames 10–11, both slots 1 and 3 approach the moving slot 2. The blind screen also flags a later 0 → 2 candidate at frame 26. Slot 1 meets the image border in 16 frames. Its visible centroid understates its projected physical travel late in the clip. [Paths](figures/006144.png) · [Frame-by-frame overlay](demos/006144.mp4)- **008367.** The first two transfers peak at frames 5 and 10. The final recipient moves 4.5 px against a 5.0 px control displacement. By frame 15 the silhouettes touch; the outward flow grows gradually over frames 16–19. That motion is compatible with the intended transfer, but its exact impact time remains unresolved. [Paths](figures/008367.png) · [Frame-by-frame overlay](demos/008367.mp4)- **008760.** The first transfer peaks at frame 6. Both final hops involve slot 2 during frames 11–27, when the two pixel-tracking runs disagree. The control retains 67–200 visible pixels of slot 2 in those frames. The tight prompt returns an empty mask from frames 12–27. The wider prompt yields 7.1 px of apparent displacement from frames 11–19, versus 11.5 px in the control. The appearance check finds no local matching patch in six of the 17 disputed frames, including frames 14 and 19. A continuous identity and an eight-frame displacement for this recipient remain unresolved. Between the last and next accepted centers (f10 to f28), it shifts 27.0 px. Slot 1 moves 2.7 px against 5.5 px planned from frames 14–22. [Paths](figures/008760.png) · [Frame-by-frame overlay](demos/008760.mp4) · [Appearance close-up](appearance/008760_slot2_color.png)23 unmodified lines242526272829303123 unmodified lines## Where the trajectories diverge- **006144.** Slot 1 moves 54.6 px over the first eight-frame window. Later the shrinking visible portion of slot 3 makes the second hit harder to assign. Around frames 10–11, both slots 1 and 3 approach the moving slot 2. The blind screen also flags a later 0 → 2 candidate at frame 26. Slot 1 meets the image border in 16 frames. Its visible centroid understates its projected physical travel late in the clip. [Paths](figures/006144.png) · [Frame-by-frame overlay](demos/006144.mp4)- **008367.** The first two transfers peak at frames 5 and 10. The final recipient moves 4.5 px against a 5.0 px control displacement. By frame 15 the silhouettes touch; the outward flow grows gradually over frames 16–19. That motion is compatible with the intended transfer, but its exact impact time remains unresolved. [Paths](figures/008367.png) · [Frame-by-frame overlay](demos/008367.mp4)- **008760.** The first transfer peaks at frame 6. Both final hops involve slot 2 during frames 11–27, when the two pixel-tracking runs disagree. The control retains 67–200 visible pixels of slot 2 in those frames. The tight prompt returns an empty mask from frames 12–27. The wider prompt yields 7.1 px of apparent displacement from frames 11–19, versus 11.5 px in the control. The appearance check finds no local matching patch in six of the 17 disputed frames, including frames 14 and 19. A continuous identity and an eight-frame displacement for this recipient remain unresolved. Between the last and next accepted centers (f10 to f28), it shifts 27.0 px. Slot 1 moves 2.7 px against 5.5 px planned from frames 14–22. [Paths](figures/008760.png) · [Frame-by-frame overlay](demos/008760.mp4) · [Appearance close-up](appearance/008760_slot2_color.png)
12341 unmodified line67891011121312 unmodified lines262728298f5c5def43185e5fb29bd3e6ec17bf56860aaf1cb88d77f5f4797cf5b187e534 README.mdaf5431e1c224e02dfc0e09a9e97249023e37b32a25fe02afd6116296be222a86 appearance/008760_slot2_color.csvac45fc5bdecd25e22c39fe9bcd31a01e6fd4eab1adc3c6cbbf6572f14103e3cc appearance/008760_slot2_color.jsonb584315fe1f655d6e2d37dbab1d5bd56f84029c579682f05a5fc67ceca4d1c1a appearance/008760_slot2_color.png1 unmodified line51d32ef199b055d22a9c6ceaa00e516bebd07536dbd5d962e3c22c7f07c755c7 code/compare.py18483a2b2b16b1f5cd8769c7fcb56820b019e84a907be4d165b99509544108d6 code/events.pye828b926e41d7bb9029984fc5ae172b2263a40e1ed4373732faea65c25334b19 code/overview.py077bdf6a7309363c8eae8120c3e8e7e317bce5028900d600788b08d893022e1a code/replay.py8d436cd3b511f5ee9b059564c0b04eb089feddc565e155bdf27564c8b5b1722b code/report.py02212367104b7a8834a5b8f0b1e7c3d10a8b6c5c957e171bc42446a52471808e code/track.py064f401170b23c47cdb5384eb4636e188b37d0a09a03a4b56a74cc753440350e code/visualize.py106a9dc1a9533b9d07659a62ef6d2b1f19202547c4021fa8f31011d2d7e33f4b demos/006144.mp412 unmodified lines6aff9b7378c8fbb1a2a98ae6691a88626db36ce91f06b0f91a251829693f1674 figures/008367.pngf8bbcb803ad1c6cf23c7efbe3d1d82e731842c9c6973b7e5b4e319feec79b01c figures/008760.png6b827675a2dd38093460bb89769255d9240b75ab573067258d1f112e680aa831 figures/overview.png99d3ac3cb968a73bcf5b520df0115b94f1aa7d8c8659a79dc049ada08e965879 summary.json12341 unmodified line6789101112131412 unmodified lines272829303184f9ed530edcfbb0b8000545fe750a19be24b7a76ded38d75ffa1524e094d82c README.mdaf5431e1c224e02dfc0e09a9e97249023e37b32a25fe02afd6116296be222a86 appearance/008760_slot2_color.csvac45fc5bdecd25e22c39fe9bcd31a01e6fd4eab1adc3c6cbbf6572f14103e3cc appearance/008760_slot2_color.jsonb584315fe1f655d6e2d37dbab1d5bd56f84029c579682f05a5fc67ceca4d1c1a appearance/008760_slot2_color.png1 unmodified line51d32ef199b055d22a9c6ceaa00e516bebd07536dbd5d962e3c22c7f07c755c7 code/compare.py18483a2b2b16b1f5cd8769c7fcb56820b019e84a907be4d165b99509544108d6 code/events.pye828b926e41d7bb9029984fc5ae172b2263a40e1ed4373732faea65c25334b19 code/overview.py7574fbd8d27f82666f62b5272f6656e636fe69b0ab4d40d96b0246314e965ae0 code/paths.py077bdf6a7309363c8eae8120c3e8e7e317bce5028900d600788b08d893022e1a code/replay.py82c999c7934da24647dfeee66669c95ccf23836d8d658b1ff2763c45059fd452 code/report.py02212367104b7a8834a5b8f0b1e7c3d10a8b6c5c957e171bc42446a52471808e code/track.py064f401170b23c47cdb5384eb4636e188b37d0a09a03a4b56a74cc753440350e code/visualize.py106a9dc1a9533b9d07659a62ef6d2b1f19202547c4021fa8f31011d2d7e33f4b demos/006144.mp412 unmodified lines6aff9b7378c8fbb1a2a98ae6691a88626db36ce91f06b0f91a251829693f1674 figures/008367.pngf8bbcb803ad1c6cf23c7efbe3d1d82e731842c9c6973b7e5b4e319feec79b01c figures/008760.png6b827675a2dd38093460bb89769255d9240b75ab573067258d1f112e680aa831 figures/overview.pngbe2aae2bfd2700e457e81637a0471bca990163101d64d78c02c5bf7b5a2c292a figures/paths.png99d3ac3cb968a73bcf5b520df0115b94f1aa7d8c8659a79dc049ada08e965879 summary.json
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051"""Compact camera-plane path comparison across the three demos."""from pathlib import Pathimport numpy as npimport matplotlibmatplotlib.use('Agg')import matplotlib.pyplot as pltfrom matplotlib.lines import Line2Dimport matplotlib.patheffects as peimport cv2
r=Path('/marimo/bacp_research/outputs/wan_plan_pixel_audit')colors=['#005587','#bf4b0c','#047758','#aa376a','#856215']sids=['006144','008367','008760']fig,grid=plt.subplots(2,3,figsize=(12.4,7.9))fig.subplots_adjust(left=.116,right=.98,top=.81,bottom=.106,wspace=.14,hspace=.18)fig.patch.set_facecolor('#faf9f4')fig.text(.034,.954,'Where the objects go after the intervention',fontsize=22,weight='bold',color='#17242c')fig.text(.035,.914,'BACP physical centers projected into the camera and visible centers tracked in the third Wan panel. Each field is 256 × 256 pixels.',fontsize=10.7,color='#31444b')legend=[Line2D([],[],c=col,lw=3,label=f'Slot {s}'+(' (edited)' if s==0 else '')) for s,col in enumerate(colors)]fig.legend(handles=legend,loc='upper left',bbox_to_anchor=(.027,.895),ncol=5,frameon=False,handlelength=1.5,fontsize=9.5)fig.text(.034,.633,'BACP\nplan',fontsize=14,weight='bold',color='#17242c')fig.text(.034,.258,'Wan\npixels',fontsize=14,weight='bold',color='#17242c')for col,sid in enumerate(sids): p=np.load(r/'plan'/f'{sid}.npz');z=np.load(r/'tracks'/f'{sid}.npz') cut=int(p['cut']); path=r.parent/'videos_video2video'/f'{sid}_video2video_bacp.mp4' cap=cv2.VideoCapture(str(path));cap.set(cv2.CAP_PROP_POS_FRAMES,cut);ok,f=cap.read();cap.release();assert ok bg=cv2.cvtColor(f[34:290,520:776],cv2.COLOR_BGR2GRAY) bg=np.where(np.indices(bg.shape).min(0)<2,190,bg) bg=220+np.round((bg.astype(float)-np.median(bg))*.30) bg=np.clip(bg,125,250) for row,centers in enumerate([p['plan_uv'],z['centers']]): ax=grid[row,col]; ax.imshow(bg,cmap='gray',vmin=0,vmax=255,extent=(-.5,255.5,255.5,-.5)) for k in range(5): x=centers[cut:,k];good=np.where(np.isfinite(x).all(1))[0] if not len(good):continue ax.plot(*x.T,c=colors[k],lw=2,path_effects=[pe.Stroke(linewidth=3.35,foreground='white',alpha=.72),pe.Normal()],zorder=2) ax.scatter(*x[good[0]],s=24,fc='white',ec=colors[k],lw=1.3,zorder=3) ax.scatter(*x[good[-1]],s=24,fc=colors[k],ec='white',lw=.45,zorder=4) if row==1 and (np.diff(good)>1).any(): where=np.where(np.diff(good)>1)[0] ax.scatter(x[good[where],0],x[good[where],1],marker='x',c=colors[k],s=70,lw=2,zorder=7) ax.scatter(x[good[where+1],0],x[good[where+1],1],marker='+',c=colors[k],s=80,lw=2,zorder=7) ax.set_xlim(0,255);ax.set_ylim(255,0);ax.set_xticks([0,128,255]);ax.set_yticks([0,128,255]);ax.tick_params(labelsize=7,length=2,color='#697778') if row==0:ax.set_title(f'Scene {sid}',fontsize=13,loc='left',weight='bold',pad=6) for sp in ax.spines.values():sp.set_color('#879397') if sid=='008760': ax=grid[1,col] ax.annotate('Slot 2 untracked\nframes 11–27',xy=z['centers'][28,2],xytext=(25,206),fontsize=8,color='#04553e', arrowprops=dict(arrowstyle='-',lw=1,color='#04553e'),bbox={'boxstyle':'round,pad=.24','fc':'#f7fcf8','ec':'none','alpha':.9})fig.text(.034,.046,'Open circle = position at the cut • Filled circle = last visible position • × / + = last and next accepted track around a gap',fontsize=10,color='#31444b')fig.savefig(r/'figures/paths.png',dpi=160,facecolor=fig.get_facecolor());plt.close(fig)91 unmodified lines92939495969791 unmodified lineshead+="""## Where the trajectories diverge- **006144.** Slot 1 moves 54.6 px over the first eight-frame window. Later the shrinking visible portion of slot 3 makes the second hit harder to assign. Around frames 10–11, both slots 1 and 3 approach the moving slot 2. The blind screen also flags a later 0 → 2 candidate at frame 26. Slot 1 meets the image border in 16 frames. Its visible centroid understates its projected physical travel late in the clip. [Paths](figures/006144.png) · [Frame-by-frame overlay](demos/006144.mp4)- **008367.** The first two transfers peak at frames 5 and 10. The final recipient moves 4.5 px against a 5.0 px control displacement. By frame 15 the silhouettes touch; the outward flow grows gradually over frames 16–19. That motion is compatible with the intended transfer, but its exact impact time remains unresolved. [Paths](figures/008367.png) · [Frame-by-frame overlay](demos/008367.mp4)- **008760.** The first transfer peaks at frame 6. Both final hops involve slot 2 during frames 11–27, when the two pixel-tracking runs disagree. The control retains 67–200 visible pixels of slot 2 in those frames. The tight prompt returns an empty mask from frames 12–27. The wider prompt yields 7.1 px of apparent displacement from frames 11–19, versus 11.5 px in the control. The appearance check finds no local matching patch in six of the 17 disputed frames, including frames 14 and 19. A continuous identity and an eight-frame displacement for this recipient remain unresolved. Between the last and next accepted centers (f10 to f28), it shifts 27.0 px. Slot 1 moves 2.7 px against 5.5 px planned from frames 14–22. [Paths](figures/008760.png) · [Frame-by-frame overlay](demos/008760.mp4) · [Appearance close-up](appearance/008760_slot2_color.png)91 unmodified lines929394959697989991 unmodified lineshead+="""## Where the trajectories diverge- **006144.** Slot 1 moves 54.6 px over the first eight-frame window. Later the shrinking visible portion of slot 3 makes the second hit harder to assign. Around frames 10–11, both slots 1 and 3 approach the moving slot 2. The blind screen also flags a later 0 → 2 candidate at frame 26. Slot 1 meets the image border in 16 frames. Its visible centroid understates its projected physical travel late in the clip. [Paths](figures/006144.png) · [Frame-by-frame overlay](demos/006144.mp4)- **008367.** The first two transfers peak at frames 5 and 10. The final recipient moves 4.5 px against a 5.0 px control displacement. By frame 15 the silhouettes touch; the outward flow grows gradually over frames 16–19. That motion is compatible with the intended transfer, but its exact impact time remains unresolved. [Paths](figures/008367.png) · [Frame-by-frame overlay](demos/008367.mp4)- **008760.** The first transfer peaks at frame 6. Both final hops involve slot 2 during frames 11–27, when the two pixel-tracking runs disagree. The control retains 67–200 visible pixels of slot 2 in those frames. The tight prompt returns an empty mask from frames 12–27. The wider prompt yields 7.1 px of apparent displacement from frames 11–19, versus 11.5 px in the control. The appearance check finds no local matching patch in six of the 17 disputed frames, including frames 14 and 19. A continuous identity and an eight-frame displacement for this recipient remain unresolved. Between the last and next accepted centers (f10 to f28), it shifts 27.0 px. Slot 1 moves 2.7 px against 5.5 px planned from frames 14–22. [Paths](figures/008760.png) · [Frame-by-frame overlay](demos/008760.mp4) · [Appearance close-up](appearance/008760_slot2_color.png)
bacp_20261130/wan_plan_pixel_audit_20261201/README.md+2
bacp_20261130/wan_plan_pixel_audit_20261201/SHA256SUMS+4-2
bacp_20261130/wan_plan_pixel_audit_20261201/code/paths.pyAdded+51
bacp_20261130/wan_plan_pixel_audit_20261201/code/report.py+2
bacp_20261130/wan_plan_pixel_audit_20261201/figures/paths.pngAdded
Large File Pointer Details
- SHA256: be2aae2bfd2700e457e81637a0471bca990163101d64d78c02c5bf7b5a2c292a
- Pointer size: 131 Bytes
- Size of remote file: 426 kB