Saitama0510 commited on
Commit
f1c3b2e
·
verified ·
1 Parent(s): b6d6a39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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: