File size: 380 Bytes
8652b14
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import torch.nn as nn
class SimpleCameraPoseEncoder(nn.Module):
    def __init__(self, c_in, c_out, hidden_dim=128):
        super(SimpleCameraPoseEncoder, self).__init__()
        self.model = nn.Sequential(
            nn.Linear(c_in, hidden_dim),
            nn.ReLU(),
            nn.Linear(hidden_dim, c_out)
        )
    def forward(self, x):
        return self.model(x)