Run with the following bash command
ts-node computeJoinPoint.ts| # SkyCam Equations | |
| # ---------------- | |
| # See https://www.scienceforums.com/topic/9394-skycam-formula-upside-down-pyramid/?tab=comments#comment-148968 | |
| import math | |
| # Distances between adjacent towers | |
| v = 460 | |
| w = 250 |
| test_correct = 0 | |
| train_correct = 0 | |
| output = (net(mnist_test_X) > 0.5).float() | |
| for i, v in enumerate(output): | |
| if v.argmax() == mnist_test_y[i].argmax(): | |
| test_correct += 1 | |
| output = (net(mnist_train_X) > 0.5).float() | |
| for i, v in enumerate(output): |
| # The actual height and width of each cell | |
| cell_height, cell_width = 256, 256 | |
| # Bounding box parameters normalized between 0 and 1 | |
| # This comes from the output of a bounding box regression model | |
| bx, by, bh, bw = 0.6, 0.6, 0.4, 0.4 | |
| # Calculate height and width | |
| height = cell_height * bh | |
| width = cell_width * bw |
Run with the following bash command
ts-node computeJoinPoint.ts