-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Add smoke tests for the training examples #585
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
Conversation
| def test_train_unconditional(self): | ||
| stream_handler = logging.StreamHandler(sys.stdout) | ||
| logger.addHandler(stream_handler) | ||
|
|
||
| with tempfile.TemporaryDirectory() as tmpdir: | ||
| test_args = f""" | ||
| examples/unconditional_image_generation/train_unconditional.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test will pass after #570 is merged
|
The documentation is not available anymore as the PR was closed or merged. |
patil-suraj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you for adding these tests !
|
Very nice idea! Also good to test something! |
Checks whether the models and model cards get saved after a (successful) training run, nothing more!
To run locally, run
python -m pytest -s -v ./examplesfrom the root dir.