Skip to content

Commit

Permalink
reshape to 5 (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1503 authored May 25, 2024
1 parent b22ad9b commit 67770ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions object_detection/detectron2_training.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
" res2 = []\n",
" for i in res:\n",
" if len(i)==0:\n",
" q = np.array(i,dtype=np.float32).reshape((0,num_classes))\n",
" q = np.array(i,dtype=np.float32).reshape((0,5))\n",
" else:\n",
" q = np.array(i,dtype=np.float32)\n",
" res2.append(q)\n",
Expand Down Expand Up @@ -235,7 +235,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 67770ef

Please sign in to comment.