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

How to change the output image size in width and height? #16

Open
rginpan opened this issue Jun 27, 2019 · 1 comment
Open

How to change the output image size in width and height? #16

rginpan opened this issue Jun 27, 2019 · 1 comment

Comments

@rginpan
Copy link

rginpan commented Jun 27, 2019

No description provided.

@carlesventura
Copy link
Collaborator

The ideal should be by including a parameter that allows to choose the image resolution at which you want to train the model. However, in the current implementation, you should change the following code in train.py for zero-shot (see inputRes argument):

    if args.dataset == 'davis2017':
        dataset = get_dataset(args,
                            split=split,
                            image_transforms=image_transforms,
                            target_transforms=None,
                            augment=args.augment and split == 'train',
                            inputRes = (240,427),
                            video_mode = True,
                            use_prev_mask = False)
    else: #args.dataset == 'youtube'
        dataset = get_dataset(args,
                            split=split,
                            image_transforms=image_transforms,
                            target_transforms=None,
                            augment=args.augment and split == 'train',
                            inputRes = (256,448),
                            video_mode = True,
                            use_prev_mask = False)

The same should be done for one-shot in train_previous_mask.py and train_previous_inference_mask.py.

Best regards,

Carles

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

No branches or pull requests

2 participants