Skip to content

Commit 54ded49

Browse files
ENH: adding overwrite option to force download files
1 parent c214608 commit 54ded49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tiatoolbox/models/architecture/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def fetch_pretrained_weights(
3737
Path to save the weight of the
3838
corresponding `model_name`.
3939
overwrite (bool):
40-
Overwrite existing downloaded weights.
40+
Overwrite existing downloaded weights (force downloading).
4141
4242
Returns:
4343
Path:
@@ -62,6 +62,7 @@ def fetch_pretrained_weights(
6262
repo_id="TIACentre/TIAToolbox_pretrained_weights",
6363
filename=file_name,
6464
cache_dir=cache_dir,
65+
force_download=overwrite,
6566
)
6667

6768

0 commit comments

Comments
 (0)