Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The fourth ConvBlock of the BallDetection forward() function doesn't use DropOut in file 'models/TTNet.py' #19

Open
dozingLee opened this issue Sep 27, 2021 · 0 comments

Comments

@dozingLee
Copy link

Will this greatly affect the TTNet?

`
class BallDetection(nn.Module):
def init(self, num_frames_sequence, dropout_p):
.......

def forward(self, x):
  x = self.relu(self.batchnorm(self.conv1(x)))
  out_block2 = self.convblock2(self.convblock1(x))
  x = self.dropout2d(out_block2)
  out_block3 = self.convblock3(x)
  out_block4 = self.convblock4(out_block3)
  x = self.dropout2d(out_block4)

  # out_block5 = self.convblock5(out_block4) # Original Code
  out_block5 = self.convblock5(x)  # The Code should be this.
  
  features = self.convblock6(out_block5)
  x = self.dropout2d(features)
  
  x = x.contiguous().view(x.size(0), -1)
  x = self.dropout1d(self.relu(self.fc1(x)))
  x = self.dropout1d(self.relu(self.fc2(x)))
  out = self.sigmoid(self.fc3(x))

  return out, features, out_block2, out_block3, out_block4, out_block5`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant