-
-
Notifications
You must be signed in to change notification settings - Fork 92
/
models.py
23 lines (18 loc) · 784 Bytes
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import torch
import torch.nn as nn
from torch.nn import init
import math
import numpy as np
from networks import FlowNetE, FlowNetER, FlowNetERM
class FlowNetE(FlowNetE.FlowNetEncoder):
def __init__(self, args, div_flow=20):
super(FlowNetE,self).__init__(args, input_channels=6, div_flow=div_flow)
print('div_flow', div_flow)
class FlowNetER(FlowNetER.FlowNetEncoderRefine):
def __init__(self, args, div_flow=20):
super(FlowNetER,self).__init__(args, input_channels=6, div_flow=div_flow)
print('div_flow', div_flow)
class FlowNetERM(FlowNetERM.FlowNetEncoderRefineMultiscale):
def __init__(self, args, div_flow=20):
super(FlowNetERM,self).__init__(args, input_channels=6, div_flow=div_flow)
print('div_flow', div_flow)