-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhance] Substitute the environment variable in config file (#744)
* Add read environment variable function in config * Add UT * enable int case, split predefined and environment * Update py config * Add new attributes env_variables in config * Add examples in docstring * Fix comments * Add tutorials * Add en tutorials * Refactor config docs according to comments * Fix comments * Change function name
- Loading branch information
1 parent
acf2160
commit c46f891
Showing
7 changed files
with
363 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dataset_type = 'CocoDataset' | ||
data_root = '{{$DATASET:/data/coco/}}' | ||
dataset = dict(ann_file=data_root + 'train.json') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
model = dict(bbox_head=dict(num_classes={{'$NUM_CLASSES:80'}})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.