manifest
Browse files- README.md +4 -4
- generator/g3.py +7 -4
- manifest.csv +0 -0
README.md
CHANGED
|
@@ -12,13 +12,13 @@ rooms, a large warehouse and a forest, with a wide-angle camera of varying field
|
|
| 12 |
Every flight is a native **viobench episode zip** (640x480 RGB PNG at 20 Hz, 200 Hz IMU, ground truth, EuRoC/ASL layout),
|
| 13 |
so `viobench evaluate solution.wasm raw/val/...zip` and `viobench.tools.datasets.read_episode` work on it directly.
|
| 14 |
|
| 15 |
-
Generation and upload in progress (
|
| 16 |
|
| 17 |
| split | room | warehouse | forest |
|
| 18 |
|---|---|---|---|
|
| 19 |
-
| train |
|
| 20 |
-
| val |
|
| 21 |
-
| test |
|
| 22 |
|
| 23 |
|
| 24 |
## What varies per flight (all recorded in `manifest.csv` and in each episode's `episode.json`)
|
|
|
|
| 12 |
Every flight is a native **viobench episode zip** (640x480 RGB PNG at 20 Hz, 200 Hz IMU, ground truth, EuRoC/ASL layout),
|
| 13 |
so `viobench evaluate solution.wasm raw/val/...zip` and `viobench.tools.datasets.read_episode` work on it directly.
|
| 14 |
|
| 15 |
+
Generation and upload in progress (723 flights so far); this table updates as flights land.
|
| 16 |
|
| 17 |
| split | room | warehouse | forest |
|
| 18 |
|---|---|---|---|
|
| 19 |
+
| train | 49 | 23 | 26 |
|
| 20 |
+
| val | 156 | 81 | 85 |
|
| 21 |
+
| test | 148 | 69 | 86 |
|
| 22 |
|
| 23 |
|
| 24 |
## What varies per flight (all recorded in `manifest.csv` and in each episode's `episode.json`)
|
generator/g3.py
CHANGED
|
@@ -28,14 +28,17 @@ def _wrap(self,*a,**k):
|
|
| 28 |
hyperdrone.HyperDrone.instance_parameters=_wrap
|
| 29 |
L=np.arange(4096)/4095.;LIN=np.where(L<=.04045,L/12.92,((L+.055)/1.055)**2.4).astype(np.float32)
|
| 30 |
def camera_for(f):
|
| 31 |
-
e=f['exposure_s'];k=min(10,max(1,math.ceil(e/.005-1e-9)));lin=f['blur_space']=='linear'
|
| 32 |
def develop(r,rng):
|
| 33 |
-
if
|
|
|
|
|
|
|
|
|
|
| 34 |
elif lin:
|
| 35 |
m=LIN[np.clip(r*4095+.5,0,4095).astype(np.int32)].mean(0);x=np.where(m<=.0031308,12.92*m,1.055*np.power(np.maximum(m,1e-9),1/2.4)-.055)
|
| 36 |
else: x=r.mean(0)
|
| 37 |
return np.clip(np.rint(x*255.),0,255).astype(np.uint8)
|
| 38 |
-
return lambda rng,hz:(k,develop,{'exposure_sampled_s':e,'blur_space':f['blur_space']})
|
| 39 |
_hv=None
|
| 40 |
def ref(f):
|
| 41 |
global _hv
|
|
@@ -79,7 +82,7 @@ def one(f,out):
|
|
| 79 |
pt=out/'partial';pt.mkdir(exist_ok=True,parents=True);p=pt/(f['id']+'.zip');write_episode(ep,p)
|
| 80 |
parts,fr=mini(ep,p);mo=motion(ep)
|
| 81 |
rec={**{k:v for k,v in f.items() if k!='task_overrides'},'task_overrides':f['task_overrides'],'frames':len(ep.frames),'fov_deg':ep.config['camera']['horizontal_fov_degrees'],'exposure_s':ep.config['episode']['exposure_seconds'],
|
| 82 |
-
'brightness_scale':bs,**mo,'luma_mean':float(fr.mean()),'dark_fraction':float((fr.mean((1,2))<20).mean()),'bytes':p.stat().st_size,'sha256':hashlib.sha256(p.read_bytes()).hexdigest(),
|
| 83 |
'simulator':asdict(sim),'simulator_class':kl.__name__,'versions':S._versions(),'viobench_commit':'e173f4a'}
|
| 84 |
t=out/'ep';t.mkdir(exist_ok=True,parents=True)
|
| 85 |
with tarfile.open(t/(f['id']+'.mini.tar.part'),'w') as tf:
|
|
|
|
| 28 |
hyperdrone.HyperDrone.instance_parameters=_wrap
|
| 29 |
L=np.arange(4096)/4095.;LIN=np.where(L<=.04045,L/12.92,((L+.055)/1.055)**2.4).astype(np.float32)
|
| 30 |
def camera_for(f):
|
| 31 |
+
e=f['exposure_s'];k=min(10,max(1,math.ceil(e/.005-1e-9)));lin=f['blur_space']=='linear';gain=float(f.get('gain',1.0))
|
| 32 |
def develop(r,rng):
|
| 33 |
+
if gain!=1.0:
|
| 34 |
+
m=LIN[np.clip(r*4095+.5,0,4095).astype(np.int32)];m=(m.mean(0) if lin else LIN[np.clip(r.mean(0)*4095+.5,0,4095).astype(np.int32)])*gain;m=np.minimum(m,1.0)
|
| 35 |
+
x=np.where(m<=.0031308,12.92*m,1.055*np.power(np.maximum(m,1e-9),1/2.4)-.055)
|
| 36 |
+
elif k==1: x=r[-1]
|
| 37 |
elif lin:
|
| 38 |
m=LIN[np.clip(r*4095+.5,0,4095).astype(np.int32)].mean(0);x=np.where(m<=.0031308,12.92*m,1.055*np.power(np.maximum(m,1e-9),1/2.4)-.055)
|
| 39 |
else: x=r.mean(0)
|
| 40 |
return np.clip(np.rint(x*255.),0,255).astype(np.uint8)
|
| 41 |
+
return lambda rng,hz:(k,develop,{'exposure_sampled_s':e,'blur_space':f['blur_space'],'linear_gain':gain})
|
| 42 |
_hv=None
|
| 43 |
def ref(f):
|
| 44 |
global _hv
|
|
|
|
| 82 |
pt=out/'partial';pt.mkdir(exist_ok=True,parents=True);p=pt/(f['id']+'.zip');write_episode(ep,p)
|
| 83 |
parts,fr=mini(ep,p);mo=motion(ep)
|
| 84 |
rec={**{k:v for k,v in f.items() if k!='task_overrides'},'task_overrides':f['task_overrides'],'frames':len(ep.frames),'fov_deg':ep.config['camera']['horizontal_fov_degrees'],'exposure_s':ep.config['episode']['exposure_seconds'],
|
| 85 |
+
'brightness_scale':bs,'linear_gain':float(f.get('gain',1.0)),**mo,'luma_mean':float(fr.mean()),'dark_fraction':float((fr.mean((1,2))<20).mean()),'bytes':p.stat().st_size,'sha256':hashlib.sha256(p.read_bytes()).hexdigest(),
|
| 86 |
'simulator':asdict(sim),'simulator_class':kl.__name__,'versions':S._versions(),'viobench_commit':'e173f4a'}
|
| 87 |
t=out/'ep';t.mkdir(exist_ok=True,parents=True)
|
| 88 |
with tarfile.open(t/(f['id']+'.mini.tar.part'),'w') as tf:
|
manifest.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|