Skip to content

Commit 704a473

Browse files
committed
res variable
1 parent 4a2e1da commit 704a473

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

object_detection/detectron2_training-kfold.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@
359359
" im = cv2.imread(im_name)\n",
360360
" outputs = predictor(im)\n",
361361
" result_dict[im_name] = (format_detectron2_predictions(outputs[\"instances\"].to(\"cpu\"),cfg.MODEL.ROI_HEADS.NUM_CLASSES))\n",
362-
" pickle.dump(result_dict,open(\"train_results_fold_\"+str(k)+\".pkl\",'wb'))"
362+
" pickle.dump(result_dict,open(\"results_fold_\"+str(k)+\".pkl\",'wb'))"
363363
]
364364
},
365365
{
@@ -374,7 +374,7 @@
374374
"for k in range(0,NUM_FOLDS):\n",
375375
" res_d = pickle.load(open(\"results_fold_\"+str(k)+'.pkl','rb'))\n",
376376
" for r in res_d:\n",
377-
" result_dict[r] = res_d[i]"
377+
" result_dict[r] = res_d[r]"
378378
]
379379
},
380380
{
@@ -410,7 +410,7 @@
410410
"name": "python",
411411
"nbconvert_exporter": "python",
412412
"pygments_lexer": "ipython3",
413-
"version": "3.9.12"
413+
"version": "3.11.5"
414414
}
415415
},
416416
"nbformat": 4,

0 commit comments

Comments
 (0)