MCPcopy Create free account
hub / github.com/ChenhongyiYang/QueryDet-PyTorch / forward

Method forward

models/querydet/detector.py:163–167  ·  view source on GitHub ↗
(self, batched_inputs, just_forward=False)

Source from the content-addressed store, hash-verified

161 return self.pixel_mean.device
162
163 def forward(self, batched_inputs, just_forward=False):
164 if self.training:
165 return self.train_forward(batched_inputs, just_forward)
166 else:
167 return self.test(batched_inputs)
168
169 def train_forward(self, batched_inputs, just_forward=False):
170 if self.clear_cuda_cache:

Callers

nothing calls this directly

Calls 2

train_forwardMethod · 0.95
testMethod · 0.95

Tested by

no test coverage detected