Skip to content

Conversation

xuyihui1996
Copy link

This pull request removes a redundant call to plt.figure() in vis_pred.py.

The duplicated plt.figure() at line 359 was unnecessary, as a figure was already created at line 345 and properly closed later. Keeping both leads to excessive figure creation during large-scale visualization, eventually causing memory exhaustion and killing the process.

Removing the extra call helps prevent memory leaks and allows the script to run to completion when visualizing large datasets.

Thank you for your great work on this project!

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

Successfully merging this pull request may close these issues.

1 participant