MonsterMMORPG commited on
Commit
bd8f1a7
·
verified ·
1 Parent(s): 0ef3ed2

Upload 9 files

Browse files
train_log/.DS_Store CHANGED
Binary files a/train_log/.DS_Store and b/train_log/.DS_Store differ
 
train_log/IFNet_HDv3.py CHANGED
@@ -27,7 +27,7 @@ class Head(nn.Module):
27
  self.cnn0 = nn.Conv2d(3, 16, 3, 2, 1)
28
  self.cnn1 = nn.Conv2d(16, 16, 3, 1, 1)
29
  self.cnn2 = nn.Conv2d(16, 16, 3, 1, 1)
30
- self.cnn3 = nn.ConvTranspose2d(16, 16, 4, 2, 1)
31
  self.relu = nn.LeakyReLU(0.2, True)
32
 
33
  def forward(self, x, feat=False):
@@ -92,18 +92,18 @@ class IFBlock(nn.Module):
92
  class IFNet(nn.Module):
93
  def __init__(self):
94
  super(IFNet, self).__init__()
95
- self.block0 = IFBlock(7+32, c=192)
96
- self.block1 = IFBlock(8+4+8+32, c=128)
97
- self.block2 = IFBlock(8+4+8+32, c=96)
98
- self.block3 = IFBlock(8+4+8+32, c=64)
99
- self.block4 = IFBlock(8+4+8+32, c=32)
100
  self.encode = Head()
101
 
102
  # not used during inference
103
  '''
104
- self.teacher = IFBlock(8+4+8+3+32, c=64)
105
  self.caltime = nn.Sequential(
106
- nn.Conv2d(32+9, 8, 3, 2, 1),
107
  nn.LeakyReLU(0.2, True),
108
  nn.Conv2d(32, 64, 3, 2, 1),
109
  nn.LeakyReLU(0.2, True),
 
27
  self.cnn0 = nn.Conv2d(3, 16, 3, 2, 1)
28
  self.cnn1 = nn.Conv2d(16, 16, 3, 1, 1)
29
  self.cnn2 = nn.Conv2d(16, 16, 3, 1, 1)
30
+ self.cnn3 = nn.ConvTranspose2d(16, 4, 4, 2, 1)
31
  self.relu = nn.LeakyReLU(0.2, True)
32
 
33
  def forward(self, x, feat=False):
 
92
  class IFNet(nn.Module):
93
  def __init__(self):
94
  super(IFNet, self).__init__()
95
+ self.block0 = IFBlock(7+8, c=192)
96
+ self.block1 = IFBlock(8+4+8+8, c=128)
97
+ self.block2 = IFBlock(8+4+8+8, c=96)
98
+ self.block3 = IFBlock(8+4+8+8, c=64)
99
+ self.block4 = IFBlock(8+4+8+8, c=24)
100
  self.encode = Head()
101
 
102
  # not used during inference
103
  '''
104
+ self.teacher = IFBlock(8+4+8+3+8, c=64)
105
  self.caltime = nn.Sequential(
106
+ nn.Conv2d(16+9, 8, 3, 2, 1),
107
  nn.LeakyReLU(0.2, True),
108
  nn.Conv2d(32, 64, 3, 2, 1),
109
  nn.LeakyReLU(0.2, True),
train_log/RIFE_HDv3.py CHANGED
@@ -55,7 +55,7 @@ class Model:
55
 
56
  def inference(self, img0, img1, timestep=0.5, scale=1.0):
57
  imgs = torch.cat((img0, img1), 1)
58
- scale_list = [16/scale, 8/scale, 4/scale, 2/scale, 1/scale]
59
  flow, mask, merged = self.flownet(imgs, timestep, scale_list)
60
  return merged[-1]
61
 
 
55
 
56
  def inference(self, img0, img1, timestep=0.5, scale=1.0):
57
  imgs = torch.cat((img0, img1), 1)
58
+ scale_list = [32/scale, 16/scale, 8/scale, 4/scale, 1/scale]
59
  flow, mask, merged = self.flownet(imgs, timestep, scale_list)
60
  return merged[-1]
61
 
train_log/__pycache__/IFNet_HDv3.cpython-310.pyc CHANGED
Binary files a/train_log/__pycache__/IFNet_HDv3.cpython-310.pyc and b/train_log/__pycache__/IFNet_HDv3.cpython-310.pyc differ
 
train_log/__pycache__/RIFE_HDv3.cpython-310.pyc CHANGED
Binary files a/train_log/__pycache__/RIFE_HDv3.cpython-310.pyc and b/train_log/__pycache__/RIFE_HDv3.cpython-310.pyc differ
 
train_log/flownet.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4cc518e172156ad6207b9c7a43364f518832d83a4325d484240493a9e2980537
3
- size 24925133
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81cdba223fe72a120130cc8552e5d2ecac824259d406f0c15323b3decf96b8b1
3
+ size 24467405