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

Create cache_dir if not exists #21

Closed
wants to merge 1 commit into from

Conversation

kangfend
Copy link

get_file doesn't save gender_detection.model to cache_dir if directory doesn't exists

@arunponnusamy
Copy link
Owner

Hey @kangfend , Thanks for the PR. Will test this and merge.

@arunponnusamy
Copy link
Owner

arunponnusamy commented Jul 9, 2019

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') 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants