Skip to content

Commit

Permalink
fix first order model output dir error (PaddlePaddle#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
LielinJiang committed Oct 30, 2020
1 parent 100edd8 commit 271d846
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ppgan/apps/first_order_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def __init__(self,
weight_path = get_path_from_url(vox_cpk_weight_url)

self.weight_path = weight_path
if not os.path.exists(output):
os.makedirs(output)
self.output = output
self.relative = relative
self.adapt_scale = adapt_scale
Expand Down
2 changes: 1 addition & 1 deletion ppgan/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _download(url, path, md5sum=None):
raise RuntimeError("Download from {} failed. "
"Retry limit reached".format(url))

logger.info("Downloading {} from {}".format(fname, url))
logger.info("Downloading {} from {} to {}".format(fname, url, fullname))

req = requests.get(url, stream=True)
if req.status_code != 200:
Expand Down

0 comments on commit 271d846

Please sign in to comment.