Trying to use python3. vehicle-detection.py, line 28, vehicle_net = dn.load_net(vehicle_netcfg, vehicle_weights, 0) ctypes.ArgumentError: argument 1: wrong type
alexw22 opened this issue · comments
I am trying to run:
bash run.sh -i samples/test -o /tmp/output -c /tmp/output/results.csv
Up to now I only have changed the print statements adding parentheses to work in python3.
Now I get the following error:
Traceback (most recent call last):
File "vehicle-detection.py", line 28, in
vehicle_net = dn.load_net(vehicle_netcfg, vehicle_weights, 0)
ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type
Any ideas as to what might be the issue here?
append .encode('utf-8') after the string,like this
vehicle_weights = "data/vehicle-detector/yolo-voc.weights".encode('utf-8')