Skip to content

Commit

Permalink
res variable
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1503 committed Jan 29, 2024
1 parent 4a2e1da commit 704a473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions object_detection/detectron2_training-kfold.ipynb
Expand Up @@ -359,7 +359,7 @@
" im = cv2.imread(im_name)\n",
" outputs = predictor(im)\n",
" result_dict[im_name] = (format_detectron2_predictions(outputs[\"instances\"].to(\"cpu\"),cfg.MODEL.ROI_HEADS.NUM_CLASSES))\n",
" pickle.dump(result_dict,open(\"train_results_fold_\"+str(k)+\".pkl\",'wb'))"
" pickle.dump(result_dict,open(\"results_fold_\"+str(k)+\".pkl\",'wb'))"
]
},
{
Expand All @@ -374,7 +374,7 @@
"for k in range(0,NUM_FOLDS):\n",
" res_d = pickle.load(open(\"results_fold_\"+str(k)+'.pkl','rb'))\n",
" for r in res_d:\n",
" result_dict[r] = res_d[i]"
" result_dict[r] = res_d[r]"
]
},
{
Expand Down Expand Up @@ -410,7 +410,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 704a473

Please sign in to comment.