Skip to content

Commit 3487d13

Browse files
committed
feat: ccvfi
1 parent 04d0107 commit 3487d13

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

cccv/config/vfi/rife_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class 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

1414
RIFEConfigs = [

example/vfi_vs.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
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

1815
core.num_threads = 1 # should be set to single thread now, TODO: fix it
1916
clip = core.bs.VideoSource(source="s.mkv")

example/vsr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
img = cv2.imdecode(np.fromfile("../assets/test.jpg", dtype=np.uint8), cv2.IMREAD_COLOR)
88
imgList = [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

1212
imgOutList = model.inference_image_list(imgList)
1313

0 commit comments

Comments
 (0)