MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / main

Function main

script/feature/efficientnet.py:273–282  ·  view source on GitHub ↗

test model

()

Source from the content-addressed store, hash-verified

271 return feature_maps, predict
272
273def main():
274 """
275 test model
276 """
277 from torchsummary import summary
278 device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
279 feat_model = EfficientNetB3()
280 # feat_model.load_state_dict(torch.load(''))
281 feat_model.to(device)
282 summary(feat_model, (3, 240, 427))
283
284if __name__ == '__main__':
285 main()

Callers 1

efficientnet.pyFile · 0.70

Calls 1

EfficientNetB3Class · 0.70

Tested by

no test coverage detected