YANGYYYY commited on
Commit
217c9f8
1 Parent(s): 26bb579

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,9 +61,9 @@ def transfer_video(video, transfer_style):
61
  #os.system("wget https://huggingface.co/YANGYYYY/cartoonize/resolve/main/GeneratorV2_train_photo_Hayao_init.pt")
62
  args = parse_args_video()
63
  # 加载视频文件
64
- video_binary = io.BytesIO(video)
65
 
66
- cap = cv2.VideoCapture(video_binary)
67
 
68
  # 读取视频帧并保存到一个列表中
69
  video_frames = []
 
61
  #os.system("wget https://huggingface.co/YANGYYYY/cartoonize/resolve/main/GeneratorV2_train_photo_Hayao_init.pt")
62
  args = parse_args_video()
63
  # 加载视频文件
64
+ #video_binary = io.BytesIO(video)
65
 
66
+ cap = cv2.VideoCapture(video)
67
 
68
  # 读取视频帧并保存到一个列表中
69
  video_frames = []