lbd-hfut / Computing-Platform

Solving digital image correlation based on physical information network
MIT License
13 stars 0 forks source link

Execute scale_list.py program failed #1

Open SSDGADsss opened 1 week ago

SSDGADsss commented 1 week ago

When I use scale_list.py to cal my image colleges, I receive this error:

/home/pve/Computing-Platform/utils/scale_select.py:97: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). Consider using `matplotlib.pyplot.close()`.
  plt.figure(figsize=(8, 6))

this image show there

example020_match

Who can help me?

lbd-hfut commented 1 week ago

The warning issued by Matplotlib that you received is due to the fact that more than 20 graphical interfaces are currently open simultaneously, which may significantly increase memory consumption. I realize that during the testing of large batches of image calculations, I failed to properly manage the opening and closing of graphical interfaces, and I sincerely apologize for any inconvenience this may have caused you.

To address this issue and optimize program performance, I plan to make modifications to the program. Specifically, before generating a new graphic, I will ensure that any old graphics that are no longer needed are closed. This will not only effectively reduce memory usage but also make the program run more smoothly.

Thank you for your understanding and support. I will complete the modifications to the program as soon as possible and once again, thank you for your feedback, as it has been very helpful in improving the program.

SSDGADsss commented 1 week ago

Thank you contribute for this project, so if some picture handle failed, Will this error affect the subsequent steps? Or Can I safe ignore those failed message