Ahsen Khaliq commited on
Commit
41d1a70
1 Parent(s): fd53425

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,11 +5,11 @@ os.system("git clone https://github.com/AK391/realworld-stylegan2-encoder.git")
5
  os.chdir("realworld-stylegan2-encoder")
6
  os.system("pip install gdown")
7
  os.system("pip install dlib")
8
- os.system("gdown https://drive.google.com/uc?id=1nrz2Oc5ljvixplPra55m_NGtGAtSSEOL")
9
- os.system("gdown https://drive.google.com/uc?id=1WocJsMOsn6LP5NNZzhP9ErO7uz8gK8xI")
10
 
11
  def inference(image):
12
- os.system("python scripts/test.py --ckpt_encoder ./art_mobile_encoder_1024p.onnx --ckpt_decoder ./art_decoder_1024p.onnx --network e4e --platform onnx --size 1024 --images_path "+image.name)
 
13
 
14
  return "out.png"
15
 
 
5
  os.chdir("realworld-stylegan2-encoder")
6
  os.system("pip install gdown")
7
  os.system("pip install dlib")
8
+ os.system("gdown https://drive.google.com/uc?id=1i873OKcKjvpxiF0UBU4NzxlMMaD9qR5z")
 
9
 
10
  def inference(image):
11
+
12
+ os.system("python scripts/test.py --ckpt ./e4e_encode_mobile_cartoon.pt --network e4e --platform torch --size 1024 --images_path "+image.name)
13
 
14
  return "out.png"
15