(self, opt, fc_unit=1024)
| 4 | |
| 5 | class post_refine(nn.Module): |
| 6 | def __init__(self, opt, fc_unit=1024): |
| 7 | super().__init__() |
| 8 | |
| 9 | if opt.refine: |
| 10 | fc_unit = 1536 |
| 11 | |
| 12 | fc_in = 3 * 2 *opt.n_joints |
| 13 | fc_out = 2 * opt.n_joints |
| 14 | |
| 15 | self.post_refine = nn.Sequential( |
| 16 | nn.Linear(fc_in, fc_unit), |
| 17 | nn.ReLU(), |
| 18 | nn.Dropout(0.5,inplace=True), |
| 19 | nn.Linear(fc_unit, fc_out), |
| 20 | nn.Sigmoid() |
| 21 | ) |
| 22 | |
| 23 | def forward(self, x, x_1): |
| 24 | N, T, V,_ = x.size() |
nothing calls this directly
no outgoing calls
no test coverage detected