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

Fixed predict.py resulting in 'output_paths' error #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from config import main_config
from models import gmcnn_gan
from utils import training_utils
from utils import constants

log = training_utils.get_logger()

Expand Down Expand Up @@ -46,6 +47,10 @@ def main():
required=True,
help='The path to the mask')

parser.add_argument('--experiment_name',
required=True,
help='Name of the experiment to load weights from')

parser.add_argument('--save_to',
default='predicted.jpg',
help='The save path of predicted image')
Expand All @@ -59,6 +64,7 @@ def main():
img_width=config.training.img_width,
num_channels=config.training.num_channels,
warm_up_generator=False,
output_paths=constants.OutputPaths(args.experiment_name),
config=config)
log.info('Loading GMCNN model...')
gmcnn_model.load()
Expand Down