Skip to content

Commit

Permalink
update demo notebooks (#47)
Browse files Browse the repository at this point in the history
* move gif to resources folder

* update demo images

* add slicing notebook

* update inference notebook

* add slicing notebook url
  • Loading branch information
fcakyon authored Apr 27, 2021
1 parent 166c0e6 commit 9c05ba8
Show file tree
Hide file tree
Showing 7 changed files with 401 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

A vision library for performing sliced inference on large images/small objects

<img width="700" alt="teaser" src="./demo/sliced_inference.gif">
<img width="700" alt="teaser" src="./resources/sliced_inference.gif">

## Overview

Expand Down Expand Up @@ -94,6 +94,8 @@ coco_dict, coco_path = slice_coco(
)
```

Refer to [slicing notebook](demo/slicing.ipynb) for detailed usage.

## Scripts

Find detailed info on script usage (predict, coco2yolov5, coco_error_analysis) at [SCRIPTS.md](docs/SCRIPTS.md).
Expand Down
File renamed without changes
Binary file added demo/demo_data/terrain2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 144 additions & 0 deletions demo/demo_data/terrain2_coco.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
{
"images": [
{
"height": 682,
"width": 1024,
"id": 1,
"file_name": "terrain2.png"
}
],
"categories": [
{
"supercategory": "car",
"id": 1,
"name": "car"
}
],
"annotations": [
{
"iscrowd": 0,
"image_id": 1,
"bbox": [
218.0,
448.0,
222.0,
161.0
],
"segmentation": [
[
218.0,
448.0,
440.0,
448.0,
440.0,
609.0,
218.0,
609.0
]
],
"category_id": 1,
"id": 1,
"area": 698368
},
{
"iscrowd": 0,
"image_id": 1,
"bbox": [
501.0,
451.0,
121.0,
92.0
],
"segmentation": [
[
501.0,
451.0,
622.0,
451.0,
622.0,
543.0,
501.0,
543.0
]
],
"category_id": 1,
"id": 2,
"area": 698368
},
{
"iscrowd": 0,
"image_id": 1,
"bbox": [
634.0,
437.0,
81.0,
56.0
],
"segmentation": [
[
634.0,
437.0,
715.0,
437.0,
715.0,
493.0,
634.0,
493.0
]
],
"category_id": 1,
"id": 3,
"area": 698368
},
{
"iscrowd": 0,
"image_id": 1,
"bbox": [
725.0,
423.0,
70.0,
51.0
],
"segmentation": [
[
725.0,
423.0,
795.0,
423.0,
795.0,
474.0,
725.0,
474.0
]
],
"category_id": 1,
"id": 4,
"area": 698368
},
{
"iscrowd": 0,
"image_id": 1,
"bbox": [
791.0,
404.0,
40.0,
47.0
],
"segmentation": [
[
791.0,
404.0,
831.0,
404.0,
831.0,
451.0,
791.0,
451.0
]
],
"category_id": 1,
"id": 5,
"area": 698368
}
]
}
2 changes: 1 addition & 1 deletion demo/inference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"metadata": {},
"outputs": [],
"source": [
"image_dir = \"demo/image_dir/small-vehicles1.jpeg\"\n",
"image_dir = \"demo/demo_data/small-vehicles1.jpeg\"\n",
"image = read_image(image_dir)"
]
},
Expand Down
253 changes: 253 additions & 0 deletions demo/slicing.ipynb

Large diffs are not rendered by default.

File renamed without changes

0 comments on commit 9c05ba8

Please sign in to comment.