chansung commited on
Commit
1ef6430
·
1 Parent(s): e8dd5da

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -5
handler.py CHANGED
@@ -11,11 +11,7 @@ from keras_cv.models.generative.stable_diffusion.constants import _ALPHAS_CUMPRO
11
  from keras_cv.models.generative.stable_diffusion.diffusion_model import DiffusionModel
12
 
13
  class EndpointHandler():
14
- def __init__(self, path=""):
15
- gpus = tf.config.list_physical_devices(device_type = 'GPU')
16
- for gpu in gpus:
17
- tf.config.experimental.set_memory_growth(gpu, True)
18
-
19
  self.seed = None
20
 
21
  img_height = 512
 
11
  from keras_cv.models.generative.stable_diffusion.diffusion_model import DiffusionModel
12
 
13
  class EndpointHandler():
14
+ def __init__(self, path=""):
 
 
 
 
15
  self.seed = None
16
 
17
  img_height = 512