mirror of https://github.com/WongKinYiu/yolov7.git
Update keypoint.ipynb (#292)
* Update keypoint.ipynb add "with torch.no_grad():" in line 60. * Update keypoint.ipynbpull/449/head
parent
591c5b0236
commit
4789bd1a4f
|
@ -57,6 +57,7 @@
|
|||
"outputs": [],
|
||||
"source": [
|
||||
"output = non_max_suppression_kpt(output, 0.25, 0.65, nc=model.yaml['nc'], nkpt=model.yaml['nkpt'], kpt_label=True)\n",
|
||||
"with torch.no_grad():\n",
|
||||
" output = output_to_keypoint(output)\n",
|
||||
"nimg = image[0].permute(1, 2, 0) * 255\n",
|
||||
"nimg = nimg.cpu().numpy().astype(np.uint8)\n",
|
||||
|
|
Loading…
Reference in New Issue