We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a memory leak in src/test.py caused by the following snippet
src/test.py
if configs.save_test_output: fig, axes = plt.subplots(nrows=batch_size, ncols=2, figsize=(10, 5)) plt.tight_layout() ... plt.savefig(os.path.join(configs.saved_dir, 'batch_idx_{}_sample_idx_{}.jpg'.format(batch_idx, sample_idx)))
We need to call plt.close() post the savefig method so that plt can release memory
plt.close()
savefig
plt
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is a memory leak in
src/test.py
caused by the following snippetWe need to call
plt.close()
post thesavefig
method so thatplt
can release memoryThe text was updated successfully, but these errors were encountered: