Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed Sep 9, 2024
1 parent 2039614 commit 97cc1fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions backend/src/InterpolateTorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
log
)
from .version import __version__
torch.set_float32_matmul_precision("high")
torch.set_float32_matmul_precision("medium")
torch.set_grad_enabled(False)

logging.basicConfig(level=logging.INFO)

class InterpolateRifeTorch:
"""InterpolateRifeTorch class for video interpolation using RIFE model in PyTorch.
Expand Down Expand Up @@ -289,7 +289,7 @@ def __init__(
if self.backend == "tensorrt":
import tensorrt
import torch_tensorrt
logging.basicConfig(level=logging.ERROR)
logging.basicConfig(level=logging.INFO)
trt_engine_path = os.path.join(
os.path.realpath(trt_cache_dir),
(
Expand Down
2 changes: 1 addition & 1 deletion src/Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def downloadFile(link, downloadLocation):
)

with open(downloadLocation, "wb") as f:
for chunk in response.iter_content(chunk_size=128):
for chunk in response.iter_content(chunk_size=1024):
f.write(chunk)


Expand Down

0 comments on commit 97cc1fa

Please sign in to comment.