yourusername commited on
Commit
e2a7285
·
1 Parent(s): 8911f3b

:lipstick: apply style

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,6 +19,7 @@ model = torch.hub.load(
19
  progress=True,
20
  )
21
 
 
22
  def face2paint(model: torch.nn.Module, img: Image.Image, size: int = 512, device: str = 'cuda'):
23
  w, h = img.size
24
  s = min(w, h)
@@ -107,7 +108,7 @@ def inference_step(vid, start_sec, duration, out_fps):
107
 
108
 
109
  def predict_fn(filepath, start_sec, duration):
110
- out_fps=12
111
  vid = EncodedVideo.from_path(filepath)
112
  for i in range(duration):
113
  print(f"🖼️ Processing step {i + 1}/{duration}...")
 
19
  progress=True,
20
  )
21
 
22
+
23
  def face2paint(model: torch.nn.Module, img: Image.Image, size: int = 512, device: str = 'cuda'):
24
  w, h = img.size
25
  s = min(w, h)
 
108
 
109
 
110
  def predict_fn(filepath, start_sec, duration):
111
+ out_fps = 12
112
  vid = EncodedVideo.from_path(filepath)
113
  for i in range(duration):
114
  print(f"🖼️ Processing step {i + 1}/{duration}...")