-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathflownet.py
41 lines (33 loc) · 986 Bytes
/
flownet.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
'''
.. module:: flownet
Contains utilities for incorporating FlowNetSimple weights. The weights can be downloaded from
`here <https://s3.us-east-2.amazonaws.com/flownetdata/weights.tar.gz>`_ . This file contains all
weights for all FlowNet versions and is thus unfortunately huge.
.. data:: flownet_prefix
The variable scope in which the flownet weights live
.. data:: flownet_kernel_suffix
The variable name of the kernel weights
.. data:: flownet_bias_suffix
The variable name of the bias weights
.. data:: flownet_layer_names
Names of the 10 conv layers
'''
# variable scope as used in the checkpoints file
flownet_prefix = 'FlowNetS'
# name of the kernel weight variable
flownet_kernel_suffix = 'weights'
# name of the bias variable
flownet_bias_suffix = 'biases'
# names of the 10 conv layers
flownet_layer_names = [
'conv1',
'conv2',
'conv3',
'conv3_1',
'conv4',
'conv4_1',
'conv5',
'conv5_1',
'conv6',
'conv6_1',
]