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

Function _pcfg

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

Source from the content-addressed store, hash-verified

38
39
40def _pcfg(url='', hf_hub='', **kwargs):
41 # OpenAI / OpenCLIP defaults
42 return {
43 'url': url,
44 'hf_hub': hf_hub,
45 'mean': OPENAI_DATASET_MEAN,
46 'std': OPENAI_DATASET_STD,
47 'interpolation': 'bicubic',
48 'resize_mode': 'shortest',
49 **kwargs,
50 }
51
52
53def _slpcfg(url='', hf_hub='', **kwargs):

Callers 1

pretrained.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected