[O] Limit GPU usage
This commit is contained in:
@@ -16,8 +16,13 @@ from PIL import Image
|
||||
from inaSpeechSegmenter import *
|
||||
from matplotlib.axes import Axes
|
||||
from matplotlib.figure import Figure
|
||||
import tensorflow as tf
|
||||
|
||||
|
||||
gpus = tf.config.experimental.list_physical_devices('GPU')
|
||||
for gpu in gpus:
|
||||
tf.config.experimental.set_memory_growth(gpu, True)
|
||||
|
||||
seg = Segmenter()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user