Skip to content

Conversation

alalek
Copy link
Member

@alalek alalek commented Dec 4, 2020

#824 from muare:master

Main PR: opencv/opencv#19012
Previous "Merge 3.4": #822

muare and others added 3 commits December 4, 2020 23:19
The fix for issue (opencv/opencv_contrib#941) introduced a defect.

Steps to reproduce the defect:
1. download model GoogleNet using command on windows: python download_models.py GoogleNet
2. there is an exception and downloading is failed.

Root cause analysis
1. filename is "bvlc_googlenet.caffemodel"
2.  the basedir for model storage is empty with following statement
     basedir = os.path.dirname(self.filename)
3.  os.path.mkdir('') throws exception
Traceback (most recent call last):
  File "download_models.py", line 883, in <module>
    if not m.get():
  File "download_models.py", line 66, in get
    os.makedirs(basedir, exist_ok=True)
  File "C:\Users\xiebian\miniconda3\envs\gluon\lib\os.py", line 220, in makedirs
    mkdir(name, mode)
FileNotFoundError: [WinError 3] 系统找不到指定的路径。: ''
@alalek
Copy link
Member Author

alalek commented Dec 4, 2020

👍

@alalek alalek merged commit d1c6ac5 into opencv:master Dec 4, 2020
@alalek alalek mentioned this pull request Dec 9, 2020
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