I used to draw many pictures with Matplotlib before. When I encountered this problem, I was out of memory
Solution:
Just add this at the beginning
import matplotlib
matplotlib.use("Agg")
Read More:
- [Solved] Matplotlib scatter Draw Error: TypeError: ufunc ‘sqrt‘ not supported for the input types…rule ‘‘safe‘‘
- [Solved] matplotlib.units.ConversionError: Failed to convert value(s) to axis units: ‘LiR‘
- import matplotlib.pyplot as plt [How to Solve]
- [Solved] Python matplotlib Error: RuntimeError: In set_size: Could not set the fontsize…
- Opencv: How to Draw Palette
- [Solved] RuntimeError: DefaultCPUAllocator: not enough memory: you tried to allocate 1105920 bytes.
- [Solved] Matplotlib ERROR: MatplotlibDeprecationWarning: Adding an axes using the same arguments…
- YOLOX Model conversion error: [TensorRT] ERROR: runtime.cpp (25) – Cuda Error in allocate: 2 (out of memory)
- How to Solve Python Importerror: DLL load failed: unable to find the specified program using tensorflow
- [Solved] Django backend error: Assertion failed: (NSViewIsCurrentlyBuildingLayerTreeForDisplay()
- [Python] Right-click Selenium to Save the picture error: attributeerror: solution to module ‘pyscreen’ has no attribute ‘locationonwindow’
- How to Solve Error: Error no module “Tkinter”
- ‘c’ argument looks like a single numeric RGB or RGBA sequence, which should be avoided as value-mapp
- How to Solve Pytorch eval Stuck Error
- [Solved] TensorFlow Error: UnknownError (see above for traceback): Failed to get convolution algorithm.
- [Perfectly Solved] attributeerror: module ‘SciPy. Misc’ has no attribute ‘toimage’ error
- NameError: name “defaultParams“ is not defined [How to Solve]
- How to Solve Yolox Training C Disk Full Issue
- Plt.acorr() Function Error: ValueError: object too deep for desired array
- OSError: [WinError 1455] The page file is too small to complete the operation. Error loading…