update dnmetis/README.md.

This commit is contained in:
chengchunlei
2020-10-26 10:45:33 +08:00
committed by Gitee
parent ef0862060d
commit e90f1861fb
+2 -2
View File
@@ -58,7 +58,7 @@ As you seen, "139.47 ms" is the npu inference time"0.8" is the top1 Accuracy
Only need to concern about the datasetpre-processpost-process
###pre-process:
### pre-process:
```
def resize_with_aspectratio(img, out_height, out_width, scale=87.5, inter_pol=cv2.INTER_LINEAR):
height, width = img.shape[:2]
@@ -102,7 +102,7 @@ def pre_process_noisy(img, dims=None, precision="fp32"):
return img
```
###inference and post-process
### inference and post-process
```
predictions = backend.predict(args.feed[i])
#print(args.feed[i].shape)