ZeroGPU
Browse files
demo.py
CHANGED
@@ -383,6 +383,7 @@ def decode_latent_to_pixel(latent_image):
|
|
383 |
return decoded_image
|
384 |
|
385 |
|
|
|
386 |
def check_privacy(latent_image_numpy, class_selection):
|
387 |
"""Check if the latent image is too similar to database images"""
|
388 |
latent_image = torch.from_numpy(latent_image_numpy).to(device, dtype=dtype)
|
|
|
383 |
return decoded_image
|
384 |
|
385 |
|
386 |
+
@spaces.GPU
|
387 |
def check_privacy(latent_image_numpy, class_selection):
|
388 |
"""Check if the latent image is too similar to database images"""
|
389 |
latent_image = torch.from_numpy(latent_image_numpy).to(device, dtype=dtype)
|