Spaces:
Sleeping
Sleeping
Steven Chen
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,8 +39,8 @@ def handle_image_size_selection(img_size, content_img):
|
|
| 39 |
def process_images(content_img, style_img, epochs, steps_per_epoch, learning_rate, content_loss_factor, style_loss_factor, img_size, img_width, img_height):
|
| 40 |
print("Start processing")
|
| 41 |
print(tf.config.list_physical_devices('GPU'))
|
| 42 |
-
with tf.device("/cuda:0"):
|
| 43 |
-
|
| 44 |
return output_img
|
| 45 |
|
| 46 |
# @spaces.GPU
|
|
|
|
| 39 |
def process_images(content_img, style_img, epochs, steps_per_epoch, learning_rate, content_loss_factor, style_loss_factor, img_size, img_width, img_height):
|
| 40 |
print("Start processing")
|
| 41 |
print(tf.config.list_physical_devices('GPU'))
|
| 42 |
+
# with tf.device("/cuda:0"):
|
| 43 |
+
output_img = main(content_img, style_img, epochs, steps_per_epoch, learning_rate, content_loss_factor, style_loss_factor, img_size, img_width, img_height)
|
| 44 |
return output_img
|
| 45 |
|
| 46 |
# @spaces.GPU
|