| 1234567891011121314 |
- with open("/home/admin/dsh/dual_camera_system/config/detection.py") as f:
- c = f.read()
- c = c.replace("return '/home/admin/dsh/testrk3588/yolo26n_end2end.rknn', 'rknn'",
- "return '/home/admin/dsh/testrk3588/yolo26n.onnx', 'onnx'")
- with open("/home/admin/dsh/dual_camera_system/config/detection.py", "w") as f:
- f.write(c)
- # Verify
- with open("/home/admin/dsh/dual_camera_system/config/detection.py") as f:
- for i, line in enumerate(f.readlines()):
- if 'model' in line.lower() or 'return' in line:
- print(f"L{i+1}: {line.rstrip()}")
|