Skip to content

Commit 67770ef

Browse files
authored
reshape to 5 (#90)
1 parent b22ad9b commit 67770ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

object_detection/detectron2_training.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
" res2 = []\n",
187187
" for i in res:\n",
188188
" if len(i)==0:\n",
189-
" q = np.array(i,dtype=np.float32).reshape((0,num_classes))\n",
189+
" q = np.array(i,dtype=np.float32).reshape((0,5))\n",
190190
" else:\n",
191191
" q = np.array(i,dtype=np.float32)\n",
192192
" res2.append(q)\n",
@@ -235,7 +235,7 @@
235235
"name": "python",
236236
"nbconvert_exporter": "python",
237237
"pygments_lexer": "ipython3",
238-
"version": "3.9.12"
238+
"version": "3.11.5"
239239
}
240240
},
241241
"nbformat": 4,

0 commit comments

Comments
 (0)