def __init__(self, config, img_size=(64, 256, 256), int_steps=7, vis=False):
    super(ViTVNet, self).__init__()
    self.transformer = Transformer(config, img_size, vis)
    self.decoder = DecoderCup(config, img_size)
    self.reg_head = RegistrationHead(in_channels=config.decoder_channels[(- 1)], out_channels=config['n_dims'], kernel_size=3)
    self.spatial_trans = SpatialTransformer(img_size)
    self.config = config
def __init__(self, config, img_size=(64, 256, 256), int_steps=7, vis=False):
    super(ViTVNet, self).__init__()
    self.transformer = Transformer(config, img_size, vis)
    self.decoder = DecoderCup(config, img_size)
    self.reg_head = RegistrationHead(in_channels=config.decoder_channels[(- 1)], out_channels=config['n_dims'], kernel_size=3)
    self.spatial_trans = SpatialTransformer(img_size)
    self.config = config