fix rknpu export

pull/13506/head
Edward Yang 2025-02-03 10:15:35 +11:00
parent b1c83cf7c3
commit 551471b50a
3 changed files with 5 additions and 1 deletions

View File

@ -73,4 +73,4 @@ jobs:
done
done
python models/yolo.py --cfg $m.yaml # build PyTorch model
python export.py --weights $m.pt --img 64 # export
python export.py --weights $m.pt --img 64 --rknpu --int8 --data data/rknpu-qnt.txt # export

View File

@ -0,0 +1,2 @@
images/bus.jpg
images/zidane.jpg

View File

@ -61,6 +61,8 @@ from pathlib import Path
if '--rknpu' in sys.argv:
os.environ['RKNN_model_hack'] = "1"
rknpu = True
else:
rknpu = False
import pandas as pd
import torch