Reverse engineering the curve detection algorithm from InceptionV1 and reimplementing it from scratch.