|
434 | 434 | "df = fd.enrich(task='zero-shot-detection', \n", |
435 | 435 | " model='grounding-dino', \n", |
436 | 436 | " input_df=df, \n", |
437 | | - " input_col='ram_tags', \n", |
438 | | - " device=\"cuda\")" |
| 437 | + " input_col='ram_tags'\n", |
| 438 | + " )" |
439 | 439 | ] |
440 | 440 | }, |
441 | 441 | { |
|
638 | 638 | " bbox_col='grounding_dino_bboxes', # column specifying bounding boxes\n", |
639 | 639 | " scores_col='grounding_dino_scores', # column specifying label scores\n", |
640 | 640 | " labels_col='grounding_dino_labels', # column specifying label text\n", |
641 | | - " num_rows=10) # the number of rows in the dataframe to plot" |
| 641 | + " num_rows=10 # the number of rows in the dataframe to plot\n", |
| 642 | + ") " |
642 | 643 | ] |
643 | 644 | }, |
644 | 645 | { |
|
1118 | 1119 | " bbox_col='grounding_dino_bboxes', \n", |
1119 | 1120 | " scores_col='grounding_dino_scores', \n", |
1120 | 1121 | " labels_col='grounding_dino_labels', \n", |
1121 | | - " num_rows=10)" |
| 1122 | + " num_rows=10\n", |
| 1123 | + ")" |
1122 | 1124 | ] |
1123 | 1125 | }, |
1124 | 1126 | { |
|
1230 | 1232 | "results = model.run_inference(image_path=\"coco_minitrain_25k/images/val2017/000000449996.jpg\",\n", |
1231 | 1233 | " text_prompt=\"air field . airliner . plane . airport . airport runway . airport terminal . jet . land . park . raceway . sky . tarmac . terminal\",\n", |
1232 | 1234 | " box_threshold=0.3,\n", |
1233 | | - " text_threshold=0.25)" |
| 1235 | + " text_threshold=0.25\n", |
| 1236 | + " )" |
1234 | 1237 | ] |
1235 | 1238 | }, |
1236 | 1239 | { |
|
0 commit comments