Skip to content

Commit 93d9dc0

Browse files
committed
Fix prompt
1 parent a279ae7 commit 93d9dc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SAM/Fine_tune_SAM_(segment_anything)_on_a_custom_dataset.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"provenance": [],
77
"machine_shape": "hm",
88
"gpuType": "T4",
9-
"authorship_tag": "ABX9TyM0BmAKAtr59P6i9zVArU6g",
9+
"authorship_tag": "ABX9TyOrmsHyIjsjAparHnskGGto",
1010
"include_colab_link": true
1111
},
1212
"kernelspec": {
@@ -3956,7 +3956,7 @@
39563956
"prompt = get_bounding_box(ground_truth_mask)\n",
39573957
"\n",
39583958
"# prepare image + box prompt for the model\n",
3959-
"inputs = processor(image, input_boxes=[prompt], return_tensors=\"pt\").to(device)\n",
3959+
"inputs = processor(image, input_boxes=[[prompt]], return_tensors=\"pt\").to(device)\n",
39603960
"for k,v in inputs.items():\n",
39613961
" print(k,v.shape)"
39623962
],

0 commit comments

Comments
 (0)