Download examples/lease_example.py from PureOne/YEORIN-X-v4-Research: direct link, hf CLI and curl.
- Browser
- Download file 595 Bytes
-
https://huggingface.co/datasets/PureOne/YEORIN-X-v4-Research/resolve/main/examples/lease_example.py
- Command line
-
hf download hf://datasets/PureOne/YEORIN-X-v4-Research/examples/lease_example.py
-
curl -L -o lease_example.py https://huggingface.co/datasets/PureOne/YEORIN-X-v4-Research/resolve/main/examples/lease_example.py
595 Bytes
| """Run with PYTHONPATH=src python examples/lease_example.py. | |
| A constructed mathematical example, not hardware or camera calibration. | |
| """ | |
| from yeorinx4.lease import Lease, revalidate | |
| lease=Lease(source_id=7,generation=0,profile_epoch=2,published_s=1.0, | |
| expires_s=1.010,correlation_lower=30.0,field_energy=16.0, | |
| field_max_px=5.0,residual_norm_cap=10.0) | |
| for native_cap in (0.0,1.0,10.0): | |
| result=revalidate(lease,now_s=1.005,source_id=7,generation=0, | |
| profile_epoch=2,residual_drift_cap=0.2,native_offset_cap=native_cap, | |
| pixel_cap=4.0) | |
| print('Native offset norm cap:',native_cap,'=>',result) | |