|
9 | 9 | },
|
10 | 10 | {
|
11 | 11 | "cell_type": "code",
|
12 |
| - "execution_count": 8, |
13 |
| - "metadata": {}, |
| 12 | + "execution_count": 1, |
| 13 | + "metadata": { |
| 14 | + "collapsed": true |
| 15 | + }, |
14 | 16 | "outputs": [],
|
15 | 17 | "source": [
|
16 | 18 | "from rasterfoundry.api import API\n",
|
17 |
| - "refresh_token = '<INSERT-TOKEN>'\n", |
| 19 | + "refresh_token = '<'\n", |
18 | 20 | "api = API(refresh_token=refresh_token)"
|
19 | 21 | ]
|
20 | 22 | },
|
|
520 | 522 | "# Raster Vision"
|
521 | 523 | ]
|
522 | 524 | },
|
| 525 | + { |
| 526 | + "cell_type": "code", |
| 527 | + "execution_count": 3, |
| 528 | + "metadata": { |
| 529 | + "collapsed": true |
| 530 | + }, |
| 531 | + "outputs": [], |
| 532 | + "source": [ |
| 533 | + "from rasterfoundry.utils import RasterVisionBatchClient\n", |
| 534 | + "rv_batch_client = RasterVisionBatchClient()" |
| 535 | + ] |
| 536 | + }, |
523 | 537 | {
|
524 | 538 | "cell_type": "markdown",
|
525 | 539 | "metadata": {},
|
|
544 | 558 | }
|
545 | 559 | ],
|
546 | 560 | "source": [
|
547 |
| - "from rasterfoundry.utils import RasterVisionBatchClient\n", |
548 |
| - "rv_batch_client = RasterVisionBatchClient(branch_name='lf/filter')\n", |
549 |
| - "\n", |
550 | 561 | "# A set of projects and corresponding annotation GeoJSON files.\n",
|
551 | 562 | "project_ids = [\n",
|
552 | 563 | " '357ddf1f-2e5e-4420-8e75-0eed12d2d20f',\n",
|
|
610 | 621 | " label_map_uri, predictions_uri)"
|
611 | 622 | ]
|
612 | 623 | },
|
| 624 | + { |
| 625 | + "cell_type": "markdown", |
| 626 | + "metadata": { |
| 627 | + "collapsed": true |
| 628 | + }, |
| 629 | + "source": [ |
| 630 | + "## Evaluating a model on a set of projects" |
| 631 | + ] |
| 632 | + }, |
| 633 | + { |
| 634 | + "cell_type": "code", |
| 635 | + "execution_count": 4, |
| 636 | + "metadata": {}, |
| 637 | + "outputs": [ |
| 638 | + { |
| 639 | + "data": { |
| 640 | + "text/plain": [ |
| 641 | + "u'47caf222-729c-4351-85e3-9fe8e2edf1ed'" |
| 642 | + ] |
| 643 | + }, |
| 644 | + "execution_count": 4, |
| 645 | + "metadata": {}, |
| 646 | + "output_type": "execute_result" |
| 647 | + } |
| 648 | + ], |
| 649 | + "source": [ |
| 650 | + "# A set of projects and corresponding annotation GeoJSON files.\n", |
| 651 | + "project_ids = [\n", |
| 652 | + " '357ddf1f-2e5e-4420-8e75-0eed12d2d20f',\n", |
| 653 | + " '1ab2734c-d2b1-4e0b-8c54-24f4f121c77b',\n", |
| 654 | + "]\n", |
| 655 | + "\n", |
| 656 | + "annotation_uris = [\n", |
| 657 | + " 's3://raster-vision-od/raw-data/annotations/jm-ships/2017-09-18-singapore-final.geojson',\n", |
| 658 | + " 's3://raster-vision-od/raw-data/annotations/jm-ships/2017-07-04-panama-final.geojson',\n", |
| 659 | + "]\n", |
| 660 | + "\n", |
| 661 | + "output_uri = 's3://raster-vision-od/evals/singapore-panama.json'\n", |
| 662 | + "label_map_uri = 's3://raster-vision-od/configs/label-maps/jm-ships-single-label.pbtxt'\n", |
| 663 | + "inference_graph_uri = 's3://raster-vision-od/trained-models/lhf-ships-neg0/inference_graph.pb'\n", |
| 664 | + "\n", |
| 665 | + "api.start_eval_model_job(\n", |
| 666 | + " rv_batch_client, inference_graph_uri,\n", |
| 667 | + " project_ids, annotation_uris, label_map_uri,\n", |
| 668 | + " output_uri)" |
| 669 | + ] |
| 670 | + }, |
613 | 671 | {
|
614 | 672 | "cell_type": "code",
|
615 | 673 | "execution_count": null,
|
|
0 commit comments