Pie31415 commited on
Commit
867e44f
1 Parent(s): 6d4fd39

updated app

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -2,10 +2,12 @@ import os, sys
2
  import argparse
3
  import numpy as np
4
  import torch
5
- from torchvision import transforms
6
  import matplotlib.pyplot as plt
7
  from PIL import Image
8
 
 
 
 
9
  # loading models ---- create model repo
10
  from huggingface_hub import hf_hub_url
11
  default_modnet_path = hf_hub_url('Pie31415/rome','modnet_photographic_portrait_matting.ckpt')
 
2
  import argparse
3
  import numpy as np
4
  import torch
 
5
  import matplotlib.pyplot as plt
6
  from PIL import Image
7
 
8
+ from ROME.src.utils import args as args_utils
9
+ from ROME.src.utils.processing import process_black_shape, tensor2image
10
+
11
  # loading models ---- create model repo
12
  from huggingface_hub import hf_hub_url
13
  default_modnet_path = hf_hub_url('Pie31415/rome','modnet_photographic_portrait_matting.ckpt')