MCPcopy
hub / github.com/mlfoundations/open_clip / _apcfg

Function _apcfg

src/open_clip/pretrained.py:66–76  ·  view source on GitHub ↗
(url='', hf_hub='', **kwargs)

Source from the content-addressed store, hash-verified

64
65
66def _apcfg(url='', hf_hub='', **kwargs):
67 # CLIPA defaults
68 return {
69 'url': url,
70 'hf_hub': hf_hub,
71 'mean': IMAGENET_MEAN,
72 'std': IMAGENET_STD,
73 'interpolation': 'bilinear',
74 'resize_mode': 'squash',
75 **kwargs,
76 }
77
78
79def _mccfg(url='', hf_hub='', **kwargs):

Callers 1

pretrained.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected