Skip to content

Commit be97193

Browse files
super_resolution(): Bug fixes
1 parent 5bbb212 commit be97193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

muvsfunc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4381,7 +4381,7 @@ def inference(clip, dev_id):
43814381
patch_w=block_w+pad*2, patch_h=block_h+pad*2, scale=up_scale, output_w=block_w*up_scale, output_h=block_h*up_scale,
43824382
frame_w=w*up_scale, frame_h=h*up_scale, step_w=block_w, step_h=block_h,
43834383
outstep_w=block_w*up_scale, outstep_h=block_h*up_scale, padding=pad if use_plugins_padding else 0,
4384-
ctx=2 if dev_id >= 0 else 1, dev_id=dev_id)
4384+
ctx=2 if dev_id >= 0 else 1, dev_id=max(dev_id, 0))
43854385

43864386
super_res = core.std.ShufflePlanes(yuv_list, [0] * num_planes, clip.format.color_family)
43874387

0 commit comments

Comments
 (0)