@@ -2432,6 +2432,7 @@ def _cfg(url: str = '', **kwargs) -> Dict[str, Any]:
24322432 'crop_pct' : 0.875 , 'interpolation' : 'bilinear' ,
24332433 'mean' : IMAGENET_DEFAULT_MEAN , 'std' : IMAGENET_DEFAULT_STD ,
24342434 'first_conv' : 'stem.conv' , 'classifier' : 'head.fc' ,
2435+ 'license' : 'apache-2.0' ,
24352436 ** kwargs
24362437 }
24372438
@@ -2451,6 +2452,7 @@ def _cfgr(url: str = '', **kwargs) -> Dict[str, Any]:
24512452 'crop_pct' : 0.9 , 'interpolation' : 'bicubic' ,
24522453 'mean' : IMAGENET_DEFAULT_MEAN , 'std' : IMAGENET_DEFAULT_STD ,
24532454 'first_conv' : 'stem.conv1.conv' , 'classifier' : 'head.fc' ,
2455+ 'license' : 'apache-2.0' ,
24542456 ** kwargs
24552457 }
24562458
@@ -2604,26 +2606,31 @@ def _cfgr(url: str = '', **kwargs) -> Dict[str, Any]:
26042606 hf_hub_id = 'timm/' ,
26052607 crop_pct = 0.875 ,
26062608 first_conv = ('stem.conv_kxk.0.conv' , 'stem.conv_scale.conv' ),
2609+ license = 'other' ,
26072610 ),
26082611 'mobileone_s1.apple_in1k' : _cfg (
26092612 hf_hub_id = 'timm/' ,
26102613 crop_pct = 0.9 ,
26112614 first_conv = ('stem.conv_kxk.0.conv' , 'stem.conv_scale.conv' ),
2615+ license = 'other' ,
26122616 ),
26132617 'mobileone_s2.apple_in1k' : _cfg (
26142618 hf_hub_id = 'timm/' ,
26152619 crop_pct = 0.9 ,
26162620 first_conv = ('stem.conv_kxk.0.conv' , 'stem.conv_scale.conv' ),
2621+ license = 'other' ,
26172622 ),
26182623 'mobileone_s3.apple_in1k' : _cfg (
26192624 hf_hub_id = 'timm/' ,
26202625 crop_pct = 0.9 ,
26212626 first_conv = ('stem.conv_kxk.0.conv' , 'stem.conv_scale.conv' ),
2627+ license = 'other' ,
26222628 ),
26232629 'mobileone_s4.apple_in1k' : _cfg (
26242630 hf_hub_id = 'timm/' ,
26252631 crop_pct = 0.9 ,
26262632 first_conv = ('stem.conv_kxk.0.conv' , 'stem.conv_scale.conv' ),
2633+ license = 'other' ,
26272634 ),
26282635
26292636 # original attention pool head variants
@@ -2632,90 +2639,106 @@ def _cfgr(url: str = '', **kwargs) -> Dict[str, Any]:
26322639 num_classes = 1024 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
26332640 fixed_input_size = True , input_size = (3 , 224 , 224 ), pool_size = (7 , 7 ),
26342641 classifier = 'head.proj' ,
2642+ license = 'mit' ,
26352643 ),
26362644 'resnet101_clip.openai' : _cfgr (
26372645 hf_hub_id = 'timm/' ,
26382646 num_classes = 512 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
26392647 fixed_input_size = True , input_size = (3 , 224 , 224 ), pool_size = (7 , 7 ),
26402648 classifier = 'head.proj' ,
2649+ license = 'mit' ,
26412650 ),
26422651 'resnet50x4_clip.openai' : _cfgr (
26432652 hf_hub_id = 'timm/' ,
26442653 num_classes = 640 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
26452654 fixed_input_size = True , input_size = (3 , 288 , 288 ), pool_size = (9 , 9 ),
26462655 classifier = 'head.proj' ,
2656+ license = 'mit' ,
26472657 ),
26482658 'resnet50x16_clip.openai' : _cfgr (
26492659 hf_hub_id = 'timm/' ,
26502660 num_classes = 768 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
26512661 fixed_input_size = True , input_size = (3 , 384 , 384 ), pool_size = (12 , 12 ),
26522662 classifier = 'head.proj' ,
2663+ license = 'mit' ,
26532664 ),
26542665 'resnet50x64_clip.openai' : _cfgr (
26552666 hf_hub_id = 'timm/' ,
26562667 num_classes = 1024 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
26572668 fixed_input_size = True , input_size = (3 , 448 , 448 ), pool_size = (14 , 14 ),
26582669 classifier = 'head.proj' ,
2670+ license = 'mit' ,
26592671 ),
26602672 'resnet50_clip.cc12m' : _cfgr (
26612673 hf_hub_id = 'timm/' ,
26622674 num_classes = 1024 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
26632675 fixed_input_size = True , input_size = (3 , 224 , 224 ), pool_size = (7 , 7 ),
26642676 classifier = 'head.proj' ,
2677+ license = 'mit' ,
26652678 ),
26662679 'resnet50_clip.yfcc15m' : _cfgr (
26672680 hf_hub_id = 'timm/' ,
26682681 num_classes = 1024 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
26692682 fixed_input_size = True , input_size = (3 , 224 , 224 ), pool_size = (7 , 7 ),
26702683 classifier = 'head.proj' ,
2684+ license = 'mit' ,
26712685 ),
26722686 'resnet101_clip.yfcc15m' : _cfgr (
26732687 hf_hub_id = 'timm/' ,
26742688 num_classes = 512 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
26752689 fixed_input_size = True , input_size = (3 , 224 , 224 ), pool_size = (7 , 7 ),
26762690 classifier = 'head.proj' ,
2691+ license = 'mit' ,
26772692 ),
26782693
26792694 # avg-pool w/ optional standard classifier head variants
26802695 'resnet50_clip_gap.openai' : _cfgr (
26812696 hf_hub_id = 'timm/' ,
26822697 num_classes = 0 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
26832698 input_size = (3 , 224 , 224 ), pool_size = (7 , 7 ),
2699+ license = 'mit' ,
26842700 ),
26852701 'resnet101_clip_gap.openai' : _cfgr (
26862702 hf_hub_id = 'timm/' ,
26872703 num_classes = 0 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
26882704 input_size = (3 , 224 , 224 ), pool_size = (7 , 7 ),
2705+ license = 'mit' ,
26892706 ),
26902707 'resnet50x4_clip_gap.openai' : _cfgr (
26912708 hf_hub_id = 'timm/' ,
26922709 num_classes = 0 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
26932710 input_size = (3 , 288 , 288 ), pool_size = (9 , 9 ),
2711+ license = 'mit' ,
26942712 ),
26952713 'resnet50x16_clip_gap.openai' : _cfgr (
26962714 hf_hub_id = 'timm/' ,
26972715 num_classes = 0 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
26982716 input_size = (3 , 384 , 384 ), pool_size = (12 , 12 ),
2717+ license = 'mit' ,
26992718 ),
27002719 'resnet50x64_clip_gap.openai' : _cfgr (
27012720 hf_hub_id = 'timm/' ,
27022721 num_classes = 0 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
27032722 input_size = (3 , 448 , 448 ), pool_size = (14 , 14 ),
2723+ license = 'mit' ,
27042724 ),
27052725 'resnet50_clip_gap.cc12m' : _cfgr (
27062726 hf_hub_id = 'timm/' ,
27072727 num_classes = 0 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
27082728 input_size = (3 , 224 , 224 ), pool_size = (7 , 7 ),
2729+ license = 'mit' ,
27092730 ),
27102731 'resnet50_clip_gap.yfcc15m' : _cfgr (
27112732 hf_hub_id = 'timm/' ,
27122733 num_classes = 0 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
27132734 input_size = (3 , 224 , 224 ), pool_size = (7 , 7 ),
2735+ license = 'mit' ,
27142736 ),
27152737 'resnet101_clip_gap.yfcc15m' : _cfgr (
27162738 hf_hub_id = 'timm/' ,
27172739 num_classes = 0 , mean = OPENAI_CLIP_MEAN , std = OPENAI_CLIP_STD ,
27182740 input_size = (3 , 224 , 224 ), pool_size = (7 , 7 ),
2741+ license = 'mit' ,
27192742 ),
27202743
27212744 'resnet50_mlp.untrained' : _cfgr (
0 commit comments