Skip to content

Commit

Permalink
Merge branch 'develop' into vsaltykovx/add_mmdetection_input_paramete…
Browse files Browse the repository at this point in the history
…rs_validation
  • Loading branch information
saltykox committed Mar 25, 2022
2 parents cc77164 + 0d4ce2c commit ede7332
Show file tree
Hide file tree
Showing 110 changed files with 3,112 additions and 1,312 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/stale_marker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
stale-issue-message: "This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days."
stale-pr-message: "This PR is stale because it has been open 90 days with no activity."
close-issue-message: "This issue was closed because it has been stalled for 30 days with no activity."
days-before-issue-stale: 90
days-before-pr-stale: 90
close-pr-message: "This PR was closed because it has been stalled for 180 days with no activity."
days-before-stale: 90
days-before-issue-close: 30
days-before-pr-close: -1
days-before-pr-close: 180
start-date: "2022-02-15T00:00:00Z"
14 changes: 5 additions & 9 deletions QUICK_START_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@
git checkout -b develop origin/develop
git submodule update --init --recursive
```
2. Export `OTE_SDK_PATH` environment variable to use it inside our scripts:
```
export OTE_SDK_PATH=`pwd`/ote_sdk
```
3. Install prerequisites by running the following:
2. Install prerequisites by running the following:
```
sudo apt-get install python3-pip python3-venv
```
4. Search for available scripts that create python virtual environments for different task types:
3. Search for available scripts that create python virtual environments for different task types:
```bash
find external/ -name init_venv.sh
```
Expand All @@ -38,15 +34,15 @@
Each line in the output gives an `init_venv.sh` script that creates a virtual environment
for the corresponding task type.

5. Let's choose a task type.
4. Let's choose a task type.
Let it be `external/mmdetection` for Object Detection task.
```bash
TASK_ALGO_DIR=./external/mmdetection/
```
Note that we will not use the variable `TASK_ALGO_DIR` inside our scripts, we set it just to
simplify this guide.

6. Let's create, activate virtual environment for the chosen task, and install `ote_cli`.
5. Let's create, activate virtual environment for the chosen task, and install `ote_cli`.
Note that the virtual environment folder may be created in any place in your system,
but we will create it in the folder `./cur_task_venv` for convenience.
```bash
Expand All @@ -62,7 +58,7 @@
from the chosen task folder is used to avoid breaking constraints
for the OTE task.

7. As soon as `ote_cli` is installed in the virtual environment, you can use
6. As soon as `ote_cli` is installed in the virtual environment, you can use
`ote` command line interface described below to run
train/eval/export/other action for templates related to the chosen task type.

Expand Down
188 changes: 188 additions & 0 deletions data/anomaly/detection/test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
{
"image_path": {
"1": "test/good/004.png",
"2": "test/good/005.png",
"3": "test/good/006.png",
"4": "test/good/007.png",
"5": "test/good/008.png",
"6": "test/good/009.png",
"7": "test/star/004.png",
"8": "test/star/005.png",
"9": "test/star/006.png",
"10": "test/star/007.png",
"11": "test/star/008.png",
"12": "test/star/009.png",
"13": "test/hexagon/004.png",
"14": "test/hexagon/005.png",
"15": "test/hexagon/006.png",
"16": "test/hexagon/007.png",
"17": "test/hexagon/008.png",
"18": "test/hexagon/009.png"
},
"label": {
"1": "good",
"2": "good",
"3": "good",
"4": "good",
"5": "good",
"6": "good",
"7": "star",
"8": "star",
"9": "star",
"10": "star",
"11": "star",
"12": "star",
"13": "hexagon",
"14": "hexagon",
"15": "hexagon",
"16": "hexagon",
"17": "hexagon",
"18": "hexagon"
},
"bboxes": {
"7": [
[
0.03125,
0.1953125,
0.84375,
0.9765625
]
],
"8": [
[
0.03125,
0.0703125,
0.9609375,
0.9765625
],
[
0.375,
0.4296875,
0.484375,
0.5390625
]
],
"9": [
[
0.25,
0.8671875,
0.265625,
0.9140625
],
[
0.0390625,
0.09375,
0.8359375,
0.84375
]
],
"10": [
[
0.015625,
0.15625,
0.9609375,
0.9765625
]
],
"11": [
[
0.0625,
0.0546875,
0.953125,
0.9609375
]
],
"12": [
[
0.6953125,
0.71875,
0.9765625,
0.9765625
],
[
0.203125,
0.4375,
0.421875,
0.6328125
],
[
0.109375,
0.09375,
0.40625,
0.375
]
],
"13": [
[
0.2890625,
0.6640625,
0.6015625,
0.921875
],
[
0.0078125,
0.15625,
0.1171875,
0.25
],
[
0.59375,
0.046875,
0.6875,
0.1171875
]
],
"14": [
[
0.0078125,
0.0,
0.9296875,
0.796875
]
],
"15": [
[
0.359375,
0.53125,
0.796875,
0.8984375
],
[
0.65625,
0.0,
0.984375,
0.2890625
]
],
"16": [
[
0.0078125,
0.0,
0.984375,
0.8828125
]
],
"17": [
[
0.203125,
0.0,
0.984375,
0.859375
]
],
"18": [
[
0.421875,
0.1328125,
0.796875,
0.4453125
],
[
0.03125,
0.0,
0.40625,
0.3125
]
]
}
}
47 changes: 47 additions & 0 deletions data/anomaly/detection/train.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"image_path": {
"0": "train/good/000.png",
"1": "train/good/001.png",
"2": "train/good/002.png",
"3": "train/good/003.png",
"4": "train/good/004.png",
"5": "train/good/005.png",
"6": "train/good/006.png",
"7": "train/good/007.png",
"8": "train/good/008.png",
"9": "train/good/009.png",
"10": "train/good/010.png",
"11": "train/good/011.png",
"12": "train/good/012.png",
"13": "train/good/013.png",
"14": "train/good/014.png",
"15": "train/good/015.png",
"16": "train/good/016.png",
"17": "train/good/017.png",
"18": "train/good/018.png",
"19": "train/good/019.png"
},
"label": {
"0": "good",
"1": "good",
"2": "good",
"3": "good",
"4": "good",
"5": "good",
"6": "good",
"7": "good",
"8": "good",
"9": "good",
"10": "good",
"11": "good",
"12": "good",
"13": "good",
"14": "good",
"15": "good",
"16": "good",
"17": "good",
"18": "good",
"19": "good"
},
"bboxes": {}
}
Loading

0 comments on commit ede7332

Please sign in to comment.