Skip to content

Commit

Permalink
fix: vsr vs_inference (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tohrusky authored Oct 9, 2024
1 parent ef11d44 commit cee4763
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ccrestoration/model/vsr_base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def inference_image_list(self, img_list: List[np.ndarray]) -> List[np.ndarray]:

for i in range(out.shape[1]):
img = out[0, i, :, :, :]
img = img.squeeze(0).permute(1, 2, 0).cpu().numpy()
img = img.permute(1, 2, 0).cpu().numpy()
img = (img * 255).clip(0, 255).astype("uint8")
img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
res_img_list.append(img)
Expand Down
2 changes: 1 addition & 1 deletion ccrestoration/vs/vsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _inference(n: int, f: list[vs.VideoFrame]) -> vs.VideoFrame:
output = inference(img)

for i in range(output.shape[0]):
cache[n + i] = output[i, :, :, :]
cache[n + i] = output[0, i, :, :, :]

return _tensor_to_frame(cache[n], f[1].copy())

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ license = "MIT"
name = "ccrestoration"
readme = "README.md"
repository = "https://github.com/TensoRaws/ccrestoration"
version = "0.0.6"
version = "0.0.7"

# Requirements
[tool.poetry.dependencies]
Expand Down

0 comments on commit cee4763

Please sign in to comment.