MCPcopy
hub / github.com/thuml/Transfer-Learning-Library / reid_resnet18

Function reid_resnet18

tllib/vision/models/reid/resnet.py:48–56  ·  view source on GitHub ↗

r"""Constructs a Reid-ResNet-18 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet progress (bool): If True, displays a progress bar of the download to stderr

(pretrained=False, progress=True, **kwargs)

Source from the content-addressed store, hash-verified

46
47
48def reid_resnet18(pretrained=False, progress=True, **kwargs):
49 r"""Constructs a Reid-ResNet-18 model.
50
51 Args:
52 pretrained (bool): If True, returns a model pre-trained on ImageNet
53 progress (bool): If True, displays a progress bar of the download to stderr
54 """
55 return _reid_resnet('resnet18', BasicBlock, [2, 2, 2, 2], pretrained, progress,
56 **kwargs)
57
58
59def reid_resnet34(pretrained=False, progress=True, **kwargs):

Callers

nothing calls this directly

Calls 1

_reid_resnetFunction · 0.85

Tested by

no test coverage detected