ketanmore commited on
Commit
70221da
1 Parent(s): 0e8ef5b

Update layout-fine-tune.ipynb

Browse files
Files changed (1) hide show
  1. layout-fine-tune.ipynb +1 -1
layout-fine-tune.ipynb CHANGED
@@ -69,7 +69,7 @@
69
  "os.makedirs(checkpoint_dir, exist_ok=True)\n",
70
  "writer = SummaryWriter(log_dir=log_dir)\n",
71
  "\n",
72
- "def logits_to_bboxes(logits,image) : # This function is useful for converting the mask into bounding boxes.(The model does not provide bounding boxes.)\n",
73
  " correct_shape = (300, 300) \n",
74
  " logits_temp = F.interpolate(logits, size=correct_shape, mode='bilinear', align_corners=False)\n",
75
  " logits_temp = logits_temp.cpu().detach().numpy().astype(np.float32)\n",
 
69
  "os.makedirs(checkpoint_dir, exist_ok=True)\n",
70
  "writer = SummaryWriter(log_dir=log_dir)\n",
71
  "\n",
72
+ "def logits_to_bboxes(logits,image) : # This function is useful for converting the logits(mask) into bounding boxes.(The model does not provide bounding boxes.)\n",
73
  " correct_shape = (300, 300) \n",
74
  " logits_temp = F.interpolate(logits, size=correct_shape, mode='bilinear', align_corners=False)\n",
75
  " logits_temp = logits_temp.cpu().detach().numpy().astype(np.float32)\n",