Skip to content

Commit

Permalink
documentation involving pcb-aoi singletask and incremental learning c…
Browse files Browse the repository at this point in the history
…orrected

documentation involving pcb-aoi singletask and incremental learning corrected

Signed-off-by: Aryan Nanda <[email protected]>

path error corrected

Signed-off-by: Aryan Nanda <[email protected]>
  • Loading branch information
AryanNanda17 committed Feb 2, 2025
1 parent 8260643 commit 5f467b7
Show file tree
Hide file tree
Showing 10 changed files with 67 additions and 61 deletions.
4 changes: 2 additions & 2 deletions docs/guides/how-to-build-simulation-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ benchmarkingjob:
name: "benchmarkingjob"
# the url address of job workspace that will reserve the output of tests; string type;
# default value: "./workspace"
workspace: "/ianvs/incremental_learning_bench/workspace"
workspace: "./workspace/incremental_learning_bench"

# the url address of test environment configuration file; string type;
# the file format supports yaml/yml;
testenv: "./examples/pcb-aoi/incremental_learning_bench/testenv/testenv.yaml"
testenv: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testenv/testenv.yaml"
# the configuration of test object
test_object:
...
Expand Down
8 changes: 4 additions & 4 deletions docs/guides/how-to-contribute-test-environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ testenv:
# dataset configuration
dataset:
# the url address of train dataset index; string type;
train_url: "/ianvs/dataset/train_data/index.txt"
train_index: "./dataset/train_data/index.txt"
# the url address of test dataset index; string type;
test_url: "/ianvs/dataset/test_data/index.txt"
test_index: "./dataset/test_data/index.txt"

# model eval configuration of incremental learning;
model_eval:
Expand All @@ -31,7 +31,7 @@ testenv:
# metric name; string type;
name: "f1_score"
# the url address of python file
url: "./examples/pcb-aoi/incremental_learning_bench/testenv/f1_score.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testenv/f1_score.py"

# condition of triggering inference model to update
# threshold of the condition; types are float/int
Expand All @@ -45,7 +45,7 @@ testenv:
# metric name; string type;
- name: "f1_score"
# the url address of python file
url: "./examples/pcb-aoi/incremental_learning_bench/testenv/f1_score.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testenv/f1_score.py"
- name: "samples_transfer_ratio"

# incremental rounds setting for incremental learning paradigm.; int type; default value is 2;
Expand Down
27 changes: 14 additions & 13 deletions docs/guides/how-to-test-algorithms.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ testenv:
# dataset configuration
dataset:
# the url address of train dataset index; string type;
train_url: "/ianvs/dataset/train_data/index.txt"
train_index: "./dataset/train_data/index.txt"
# the url address of test dataset index; string type;
test_url: "/ianvs/dataset/test_data/index.txt"
test_index: "./dataset/test_data/index.txt"

# model eval configuration of incremental learning;
model_eval:
Expand All @@ -38,7 +38,7 @@ testenv:
# metric name; string type;
name: "f1_score"
# the url address of python file
url: "./examples/pcb-aoi/incremental_learning_bench/testenv/f1_score.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testenv/f1_score.py"

# condition of triggering inference model to update
# threshold of the condition; types are float/int
Expand All @@ -52,7 +52,7 @@ testenv:
# metric name; string type;
- name: "f1_score"
# the url address of python file
url: "./examples/pcb-aoi/incremental_learning_bench/testenv/f1_score.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testenv/f1_score.py"
- name: "samples_transfer_ratio"

# incremental rounds setting for incremental learning paradigm.; int type; default value is 2;
Expand All @@ -63,7 +63,7 @@ The URL address of this test environment, i.e., testenv.yaml, then should be fil
``` yaml
# benchmarkingJob.yaml
testenv: "./examples/pcb-aoi/benchmarkingjob/testenv/testenv.yaml"
testenv: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testenv/testenv.yaml"
```
## Step 2. Test Case Preparation
Expand Down Expand Up @@ -252,7 +252,7 @@ algorithm:
# 1> "default": the dataset is evenly divided based train_ratio;
splitting_method: "default"
# the url address of initial model for model pre-training; string url;
initial_model_url: "/ianvs/initial_model/model.zip"
initial_model_url: "./initial_model/model.zip"
# algorithm module configuration in the paradigm; list type;
modules:
Expand All @@ -264,7 +264,7 @@ algorithm:
# example: basemodel.py has BaseModel module that the alias is "FPN" for this benchmarking;
name: "FPN"
# the url address of python module; string type;
url: "./examples/pcb-aoi/incremental_learning_bench/testalgorithms/fpn/basemodel.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/basemodel.py"
# hyperparameters configuration for the python module; list type;
hyperparameters:
Expand All @@ -283,7 +283,7 @@ algorithm:
# name of python module; string type;
name: "IBT"
# the url address of python module; string type;
url: "./examples/pcb-aoi/incremental_learning_bench/testalgorithms/fpn/hard_example_mining.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/hard_example_mining.py"
# hyperparameters configuration for the python module; list type;
hyperparameters:
# name of the hyperparameter; string type;
Expand Down Expand Up @@ -311,7 +311,7 @@ The URL address of this algorithm then should be filled in the configuration fil
- name: "fpn_incremental_learning"
# the url address of test algorithm configuration file; string type;
# the file format supports yaml/yml
url: "./examples/pcb-aoi/incremental_learning_bench/testalgorithms/fpn/fpn_algorithm.yaml"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/fpn_algorithm.yaml"
```

or
Expand All @@ -328,7 +328,7 @@ or
- name: "fpn_singletask_learning"
# the url address of test algorithm configuration file; string type;
# the file format supports yaml/yml;
url: "./examples/pcb-aoi/singletask_learning_bench/testalgorithms/fpn/fpn_algorithm.yaml"
url: "./examples/pcb-aoi/singletask_learning_bench/fault_detection/testalgorithms/fpn/fpn_algorithm.yaml"
```

## Step 3. ianvs Configuration
Expand All @@ -339,20 +339,21 @@ First, the user can configure the workspace to reserve the output of tests.

``` yaml
# benchmarkingJob.yaml
workspace: "/ianvs/pcb-aoi/workspace/"
workspace: "./workspace/incremental_learning_bench"
```

Then, the user fill in the test environment and algorithm configured in previous steps.

``` yaml
# benchmarkingJob.yaml
testenv: ".examples/pcb-aoi/benchmarkingjob/testenv/testenv.yaml"
testenv: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testenv/testenv.yaml"
```

``` yaml
# benchmarkingJob.yaml
algorithms:
- name: "fpn_incremental_learning"
url: "./examples/pcb-aoi/benchmarkingjob/testalgorithms/fpn_incremental_learning/fpn_algorithm.yaml"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/fpn_algorithm.yaml"
```

As the final leaderboard, the user can configure how to rank the leaderboard with the specific metric and order.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@



|rank |algorithm |f1_score |paradigm |basemodel |learning_rate |momentum |time |
|:----:|:-----------------------:|:--------:|:------------------:|:---------:|:-------------:|:--------:|:------------------------ |
|1 |fpn_singletask_learning | 0.8396 |singletasklearning | FPN | 0.1 | 0.5 | 2022-07-07 20:33:53 |
|2 |fpn_singletask_learning | 0.8353 |singletasklearning | FPN | 0.1 | 0.95 | 2022-07-07 20:31:08 |

| rank | algorithm | f1_score | paradigm | basemodel | basemodel-momentum | basemodel-learning_rate | time | url |
|:----:|:------------------------:|:--------:|:------------------:|:---------:|:------------------:|:---------------------:|:---------------------:|:--------------------------------------------------------------------------------------- |
| 1 | fpn_singletask_learning | 0.8527 | singletasklearning | FPN | 0.5 | 0.1 | 2025-01-06 14:30:30 | ./workspace/benchmarkingjob/fpn_singletask_learning/3a76bc25-cc0b-11ef-9f00-65cc74a7c013 |
| 2 | fpn_singletask_learning | 0.8440 | singletasklearning | FPN | 0.95 | 0.1 | 2025-01-06 14:25:18 | ./workspace/benchmarkingjob/fpn_singletask_learning/3a76bc24-cc0b-11ef-9f00-65cc74a7c013 |
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ testenv:
# dataset configuration
dataset:
# the url address of train dataset index; string type;
train_url: "/ianvs/dataset/train_data/index.txt"
train_index: "./dataset/train_data/index.txt"
# the url address of test dataset index; string type;
test_url: "/ianvs/dataset/test_data/index.txt"
test_index: "./dataset/test_data/index.txt"

# model eval configuration of incremental learning;
model_eval:
Expand All @@ -50,7 +50,7 @@ testenv:
# metric name; string type;
name: "f1_score"
# the url address of python file
url: "./examples/pcb-aoi/incremental_learning_bench/testenv/f1_score.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testenv/f1_score.py"

# condition of triggering inference model to update
# threshold of the condition; types are float/int
Expand All @@ -64,7 +64,7 @@ testenv:
# metric name; string type;
- name: "f1_score"
# the url address of python file
url: "./examples/pcb-aoi/incremental_learning_bench/testenv/f1_score.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testenv/f1_score.py"
- name: "samples_transfer_ratio"

# incremental rounds setting for incremental learning paradigm.; int type; default value is 2;
Expand All @@ -90,7 +90,7 @@ algorithm:
# 1> "default": the dataset is evenly divided based train_ratio;
splitting_method: "default"
# the url address of initial model for model pre-training; string url;
initial_model_url: "/ianvs/initial_model/model.zip"
initial_model_url: "./initial_model/model.zip"

# algorithm module configuration in the paradigm; list type;
modules:
Expand All @@ -102,7 +102,7 @@ algorithm:
# example: basemodel.py has BaseModel module that the alias is "FPN" for this benchmarking;
name: "FPN"
# the url address of python module; string type;
url: "./examples/pcb-aoi/incremental_learning_bench/testalgorithms/fpn/basemodel.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/basemodel.py"

# hyperparameters configuration for the python module; list type;
hyperparameters:
Expand All @@ -118,13 +118,13 @@ algorithm:
# the url addresses of hyperparameters configuration files; list type;
# type of the value is string;
values:
- "./examples/pcb-aoi/incremental_learning_bench/testalgorithms/fpn/fpn_hyperparameter.yaml"
- "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/fpn_hyperparameter.yaml"
# 2> "hard_example_mining": check hard example when predict ; optional module;
- type: "hard_example_mining"
# name of python module; string type;
name: "IBT"
# the url address of python module; string type;
url: "./examples/pcb-aoi/incremental_learning_bench/testalgorithms/fpn/hard_example_mining.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/hard_example_mining.py"
# hyperparameters configuration for the python module; list type;
hyperparameters:
# name of the hyperparameter; string type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ testenv:
# dataset configuration
dataset:
# the url address of train dataset index; string type;
train_url: "/ianvs/dataset/train_data/index.txt"
train_index: "./dataset/train_data/index.txt"
# the url address of test dataset index; string type;
test_url: "/ianvs/dataset/test_data/index.txt"
test_index: "./dataset/test_data/index.txt"

# metrics configuration for test case's evaluation; list type;
metrics:
# metric name; string type;
- name: "f1_score"
# the url address of python file
url: "./examples/pcb-aoi/singletask_learning_bench/testenv/f1_score.py"
url: "./examples/pcb-aoi/singletask_learning_bench/fault_detection/testenv/f1_score.py"
```
Key settings of the algorithm to single learning are as follows:
Expand All @@ -53,7 +53,7 @@ algorithm:
# 2> "incrementallearning"
paradigm_type: "singletasklearning"
# the url address of initial model; string type; optional;
initial_model_url: "/ianvs/initial_model/model.zip"
initial_model_url: "./initial_model/model.zip"

# algorithm module configuration in the paradigm; list type;
modules:
Expand All @@ -65,7 +65,7 @@ algorithm:
# example: basemodel.py has BaseModel module that the alias is "FPN" for this benchmarking;
name: "FPN"
# the url address of python module; string type;
url: "./examples/pcb-aoi/singletask_learning_bench/testalgorithms/fpn/basemodel.py"
url: "./examples/pcb-aoi/singletask_learning_bench/fault_detection/testalgorithms/fpn/basemodel.py"

# hyperparameters configuration for the python module; list type;
hyperparameters:
Expand All @@ -81,7 +81,7 @@ algorithm:
# the url addresses of hyperparameters configuration files; list type;
# type of the value is string;
values:
- "./examples/pcb-aoi/singletask_learning_bench/testalgorithms/fpn/fpn_hyperparameter.yaml"
- "./examples/pcb-aoi/singletask_learning_bench/fault_detection/testalgorithms/fpn/fpn_hyperparameter.yaml"

```

Expand Down
12 changes: 6 additions & 6 deletions docs/user_interface/how-to-config-algorithm.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ algorithm:
incremental_learning_data_setting:
...
# the url address of initial model for model pre-training; string url;
initial_model_url: "/ianvs/initial_model/model.zip"
initial_model_url: "./initial_model/model.zip"

# algorithm module configuration in the paradigm; list type;
modules:
Expand Down Expand Up @@ -73,7 +73,7 @@ modules:
# example: basemodel.py has BaseModel module that the alias is "FPN" for this benchmarking;
name: "FPN"
# the url address of python module; string type;
url: "./examples/pcb-aoi/incremental_learning_bench/testalgorithms/fpn/basemodel.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/basemodel.py"

# hyperparameters configuration for the python module; list type;
hyperparameters:
Expand All @@ -83,7 +83,7 @@ modules:
# name of python module; string type;
name: "IBT"
# the url address of python module; string type;
url: "./examples/pcb-aoi/incremental_learning_bench/testalgorithms/fpn/hard_example_mining.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/hard_example_mining.py"
# hyperparameters configuration for the python module; list type;
hyperparameters:
...
Expand Down Expand Up @@ -141,7 +141,7 @@ algorithm:
# 1> "default": the dataset is evenly divided based train_ratio;
splitting_method: "default"
# the url address of initial model for model pre-training; string url;
initial_model_url: "/ianvs/initial_model/model.zip"
initial_model_url: "./initial_model/model.zip"

# algorithm module configuration in the paradigm; list type;
modules:
Expand All @@ -153,7 +153,7 @@ algorithm:
# example: basemodel.py has BaseModel module that the alias is "FPN" for this benchmarking;
name: "FPN"
# the url address of python module; string type;
url: "./examples/pcb-aoi/incremental_learning_bench/testalgorithms/fpn/basemodel.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/basemodel.py"

# hyperparameters configuration for the python module; list type;
hyperparameters:
Expand All @@ -172,7 +172,7 @@ algorithm:
# name of python module; string type;
name: "IBT"
# the url address of python module; string type;
url: "./examples/pcb-aoi/incremental_learning_bench/testalgorithms/fpn/hard_example_mining.py"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/hard_example_mining.py"
# hyperparameters configuration for the python module; list type;
hyperparameters:
# name of the hyperparameter; string type;
Expand Down
12 changes: 6 additions & 6 deletions docs/user_interface/how-to-config-benchmarkingjob.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ benchmarkingjob:
name: "benchmarkingjob"
# the url address of job workspace that will reserve the output of tests; string type;
# default value: "./workspace"
workspace: "/ianvs/incremental_learning_bench/workspace"
workspace: "./workspace/incremental_learning_bench"

# the url address of test environment configuration file; string type;
# the file format supports yaml/yml;
testenv: "./examples/pcb-aoi/incremental_learning_bench/testenv/testenv.yaml"
testenv: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testenv/testenv.yaml"
# the configuration of test object
test_object:
...
Expand Down Expand Up @@ -69,7 +69,7 @@ algorithms:
- name: "fpn_incremental_learning"
# the url address of test algorithm configuration file; string type;
# the file format supports yaml/yml
url: "./examples/pcb-aoi/incremental_learning_bench/testalgorithms/fpn/fpn_algorithm.yaml"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/fpn_algorithm.yaml"
```
### The configuration of rank
Expand Down Expand Up @@ -166,11 +166,11 @@ benchmarkingjob:
name: "benchmarkingjob"
# the url address of job workspace that will reserve the output of tests; string type;
# default value: "./workspace"
workspace: "/ianvs/incremental_learning_bench/workspace"
workspace: "./workspace/incremental_learning_bench"

# the url address of test environment configuration file; string type;
# the file format supports yaml/yml;
testenv: "./examples/pcb-aoi/incremental_learning_bench/testenv/testenv.yaml"
testenv: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testenv/testenv.yaml"

# the configuration of test object
test_object:
Expand All @@ -183,7 +183,7 @@ benchmarkingjob:
- name: "fpn_incremental_learning"
# the url address of test algorithm configuration file; string type;
# the file format supports yaml/yml
url: "./examples/pcb-aoi/incremental_learning_bench/testalgorithms/fpn/fpn_algorithm.yaml"
url: "./examples/pcb-aoi/incremental_learning_bench/fault_detection/testalgorithms/fpn/fpn_algorithm.yaml"

# the configuration of ranking leaderboard
rank:
Expand Down
Loading

0 comments on commit 5f467b7

Please sign in to comment.