File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 88class RIFEConfig (VFIBaseConfig ):
99 arch : Union [ArchType , str ] = ArchType .IFNET
1010 model : Union [ModelType , str ] = ModelType .RIFE
11- num_frame : int = 3
11+ num_frame : int = 2
1212
1313
1414RIFEConfigs = [
Original file line number Diff line number Diff line change 1010
1111# --- IFNet, use fp16 to inference (vs.RGBH)
1212
13- model : VFIBaseModel = AutoModel .from_pretrained (
14- ConfigType .RIFE_IFNet_v426_heavy ,
15- fp16 = True ,
16- )
13+ model : VFIBaseModel = AutoModel .from_pretrained (ConfigType .RIFE_IFNet_v426_heavy , fp16 = True , tile = None )
1714
1815core .num_threads = 1 # should be set to single thread now, TODO: fix it
1916clip = core .bs .VideoSource (source = "s.mkv" )
Original file line number Diff line number Diff line change 77img = cv2 .imdecode (np .fromfile ("../assets/test.jpg" , dtype = np .uint8 ), cv2 .IMREAD_COLOR )
88imgList = [img , img , img ]
99
10- model : VSRBaseModel = AutoModel .from_pretrained (ConfigType .AnimeSR_v2_4x , fp16 = False )
10+ model : VSRBaseModel = AutoModel .from_pretrained (ConfigType .AnimeSR_v2_4x )
1111
1212imgOutList = model .inference_image_list (imgList )
1313
You can’t perform that action at this time.
0 commit comments