Spaces:
Sleeping
Sleeping
Siddhant Sharma commited on
Commit ·
faff698
1
Parent(s): 21d5f99
feat: port RIFE architectures and modify for 1-channel TIR
Browse files- src/model/ifnet.py +4 -4
- src/model/refine.py +1 -1
src/model/ifnet.py
CHANGED
|
@@ -82,10 +82,10 @@ class IFNet(nn.Module):
|
|
| 82 |
def __init__(self):
|
| 83 |
super(IFNet, self).__init__()
|
| 84 |
# 1-channel Grayscale (TIR) ke hisaab se updated channels
|
| 85 |
-
self.block0 = IFBlock(
|
| 86 |
-
self.block1 = IFBlock(9
|
| 87 |
-
self.block2 = IFBlock(9
|
| 88 |
-
self.block_tea = IFBlock(6 + 4
|
| 89 |
self.contextnet = Contextnet()
|
| 90 |
self.unet = Unet()
|
| 91 |
|
|
|
|
| 82 |
def __init__(self):
|
| 83 |
super(IFNet, self).__init__()
|
| 84 |
# 1-channel Grayscale (TIR) ke hisaab se updated channels
|
| 85 |
+
self.block0 = IFBlock(2, c=240) # 1+1 = 2 channels (No flow here)
|
| 86 |
+
self.block1 = IFBlock(9, c=150) # 5 + 4(flow) = 9 channels
|
| 87 |
+
self.block2 = IFBlock(9, c=90) # 5 + 4(flow) = 9 channels
|
| 88 |
+
self.block_tea = IFBlock(10, c=90) # 6 + 4(flow) = 10 channels
|
| 89 |
self.contextnet = Contextnet()
|
| 90 |
self.unet = Unet()
|
| 91 |
|
src/model/refine.py
CHANGED
|
@@ -6,7 +6,7 @@ import torch.nn as nn
|
|
| 6 |
import torch.nn.functional as F
|
| 7 |
import torch.optim as optim
|
| 8 |
|
| 9 |
-
from model.warplayer import warp
|
| 10 |
|
| 11 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 12 |
|
|
|
|
| 6 |
import torch.nn.functional as F
|
| 7 |
import torch.optim as optim
|
| 8 |
|
| 9 |
+
from src.model.warplayer import warp
|
| 10 |
|
| 11 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 12 |
|