https://www.youtube.com/watch?v=YMO9uUsjXaI
input data:
- 140 teeth around the wheel
- total distance = 3.86 miles
- original frame size = 367x367
Inferred speed in the video:
https://www.youtube.com/watch?v=YMO9uUsjXaI
input data:
Inferred speed in the video:
| import time | |
| import numpy as np | |
| from numba import njit | |
| from scipy.optimize import minimize | |
| SQRT_2PI = np.sqrt(2 * np.pi) | |
| def ldnorm(x, mu, sd): |
| from types import CodeType, FunctionType | |
| from dis import dis | |
| def patch(fn, name, codestring): | |
| code = fn.__code__ | |
| code = CodeType( | |
| code.co_argcount, code.co_posonlyargcount, code.co_kwonlyargcount, | |
| code.co_nlocals, code.co_stacksize, code.co_flags, codestring, | |
| code.co_consts, code.co_names, code.co_varnames, | |
| code.co_filename, name, code.co_firstlineno, code.co_lnotab, |
| [uwsgi] | |
| http = :8000 | |
| wsgi-file = mules.py | |
| need-app = true | |
| master = true | |
| enable-threads = true | |
| processes = 2 | |
| mules = 5 | |
| farm = limited:1 | |
| harakiri = 120 |
| { | |
| "presets": ["es2015"] | |
| } |