Closed kangfend closed 5 years ago
Hey @kangfend , Thanks for the PR. Will test this and merge.
I have figured out the issue. I should have used cache_subdir
with absolute path instead of cache_dir
. Replacing cache_dir
with cache_subdir
in the below line fixes the issue. Thanks for reporting this.
model_path = get_file("gender_detection.model", dwnld_link,
cache_subdir= os.path.expanduser('~') + os.path.sep + '.cvlib' + os.path.sep + 'pre-trained')
get_file
doesn't savegender_detection.model
tocache_dir
if directory doesn't exists