Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix default memcache size to 100MB #2960

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ algo_backend:
warning: null
mem_cache_size:
affects_outcome_of: TRAINING
default_value: 1000000000
default_value: 100000000
description: Size of memory pool for caching decoded data to load data faster (bytes).
editable: true
header: Size of memory pool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ def __call__(self, results: Dict[str, Any]) -> Dict[str, Any]:
return cached_results
results = self._load_img(results)
results = self._load_ann_if_any(results)
if results is None:
return None
results.pop("dataset_item", None) # Prevent deepcopy or caching
results = self._resize_img_ann_if_any(results)
self._save_cache(results)
Expand Down
Loading