Skip to content

Commit

Permalink
add cache
Browse files Browse the repository at this point in the history
Signed-off-by: Can-Zhao <volcanofly@gmail.com>
  • Loading branch information
Can-Zhao committed Dec 15, 2023
1 parent 3618cc8 commit 09427c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,10 @@
"transforms": "$@preprocessing_transforms + @train#crop_transforms + @final_transforms"
},
"dataset": {
"_target_": "Dataset",
"_target_": "CacheDataset",
"data": "@train_datalist",
"transform": "@train#preprocessing"
"transform": "@train#preprocessing",
"cache_rate": 1.0
},
"dataloader": {
"_target_": "DataLoader",
Expand Down Expand Up @@ -223,9 +224,10 @@
"transforms": "$@preprocessing_transforms + @validate#crop_transforms + @final_transforms"
},
"dataset": {
"_target_": "Dataset",
"_target_": "CacheDataset",
"data": "@val_datalist",
"transform": "@validate#preprocessing"
"transform": "@validate#preprocessing",
"cache_rate": 1.0
},
"dataloader": {
"_target_": "DataLoader",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@
"transforms": "$@preprocessing_transforms + @train#crop_transforms + @final_transforms"
},
"dataset": {
"_target_": "Dataset",
"_target_": "CacheDataset",
"data": "@train_datalist",
"transform": "@train#preprocessing"
"transform": "@train#preprocessing",
"cache_rate": 1.0
},
"dataloader": {
"_target_": "DataLoader",
Expand Down

0 comments on commit 09427c3

Please sign in to comment.