Feature Extraction
Transformers
PyTorch
bbsnet
custom_code
thinh-huynh-re commited on
Commit
d585715
1 Parent(s): 8f640e6

Update BBSNet_model.py

Browse files
Files changed (1) hide show
  1. BBSNet_model.py +2 -2
BBSNet_model.py CHANGED
@@ -297,8 +297,8 @@ class BBSNet(nn.Module):
297
  self.out1_conv = nn.Conv2d(32 * 2, 1, kernel_size=1, stride=1, bias=True)
298
  self.out2_conv = nn.Conv2d(32 * 1, 1, kernel_size=1, stride=1, bias=True)
299
 
300
- if self.training:
301
- self.initialize_weights()
302
 
303
  def forward(self, x, x_depth):
304
  x = self.resnet.conv1(x)
 
297
  self.out1_conv = nn.Conv2d(32 * 2, 1, kernel_size=1, stride=1, bias=True)
298
  self.out2_conv = nn.Conv2d(32 * 1, 1, kernel_size=1, stride=1, bias=True)
299
 
300
+ #if self.training:
301
+ # self.initialize_weights()
302
 
303
  def forward(self, x, x_depth):
304
  x = self.resnet.conv1(x)