Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
import streamlit as st
|
2 |
from PIL import Image, ImageFilter
|
|
|
|
|
|
|
|
|
3 |
|
4 |
def depth_based_blur(orig_image: Image.Image, depth_map: Image.Image, max_blur: float = 15,
|
5 |
num_bands: int = 10, invert_depth: bool = True) -> Image.Image:
|
|
|
1 |
import streamlit as st
|
2 |
from PIL import Image, ImageFilter
|
3 |
+
import matplotlib.pyplot as plt
|
4 |
+
import torch
|
5 |
+
from torchvision import transforms
|
6 |
+
from transformers import AutoModelForImageSegmentation
|
7 |
|
8 |
def depth_based_blur(orig_image: Image.Image, depth_map: Image.Image, max_blur: float = 15,
|
9 |
num_bands: int = 10, invert_depth: bool = True) -> Image.Image:
|