Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Style Transfer stylize does no parameter checking #2790

Closed
TobyRoseman opened this issue Dec 4, 2019 · 1 comment
Closed

Style Transfer stylize does no parameter checking #2790

TobyRoseman opened this issue Dec 4, 2019 · 1 comment

Comments

@TobyRoseman
Copy link
Collaborator

The stylize method should do basic parameter checking. It should check that images and style are of supported types. Also that max_size and batch_size are greater than zero. Probably additonal checks also make sense.

Currently it's possible for unsupported values to silently fall thru. The following returns None without error: model.stylize('junk value', style=-1)

@TobyRoseman
Copy link
Collaborator Author

Fixed by #2864

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant