Skip to content

Commit

Permalink
fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyaoi committed Oct 4, 2018
1 parent a461432 commit 51e4c30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cvpm/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ def help_message(self):
def _prepare_models(self, toml_file):
parsed_toml = toml.load(toml_file)
downloader = Downloader()
for each in parsed_toml["models"]:
downloader.download(each["url"], "pretrained")
if "models" in parsed_toml.keys():
for each in parsed_toml["models"]:
downloader.download(each["url"], "pretrained")

def set_ready(self):
self._isReady = True
Expand Down

0 comments on commit 51e4c30

Please sign in to comment.