Update infer.py
Browse files3 unmodified lines4567891042 unmodified lines535455565758593 unmodified linesfrom RealESRGAN import RealESRGANimport tempfileimport numpy as npimport tqdmimport pydubfrom pydub import AudioSegmentfrom moviepy.editor import VideoFileClip, AudioFileClip42 unmodified lines# Process each frame of the video and write it to the output videon_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))for i in tqdm(range(n_frames)):# Read the next frameret, frame = cap.read()if not ret:3 unmodified lines4567891042 unmodified lines535455565758593 unmodified linesfrom RealESRGAN import RealESRGANimport tempfileimport numpy as npfrom tqdm import tqdmimport pydubfrom pydub import AudioSegmentfrom moviepy.editor import VideoFileClip, AudioFileClip42 unmodified lines# Process each frame of the video and write it to the output videon_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))for i in tqdm.tqdm(range(n_frames)):# Read the next frameret, frame = cap.read()if not ret:
infer.py+2-2