xedwin23x commited on
Commit
bbf66df
·
verified ·
1 Parent(s): d8b6005

Card: load with fgir_zoo create_model

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -73,7 +73,7 @@ from PIL import Image
73
  from torchvision import transforms
74
  from fgir_zoo import backbones
75
 
76
- model = backbones.create_backbone('vit_b16', dataset='cub', strategy='cal') # cal_224/cub_vit_b16_cal.pth
77
  cfg = model.config
78
  tf = transforms.Compose([
79
  transforms.Resize((cfg.test_resize_size, cfg.test_resize_size),
 
73
  from torchvision import transforms
74
  from fgir_zoo import backbones
75
 
76
+ model = backbones.create_model('cal_224/cub_vit_b16_cal') # or model_name='vit_b16', dataset='cub', strategy='cal'
77
  cfg = model.config
78
  tf = transforms.Compose([
79
  transforms.Resize((cfg.test_resize_size, cfg.test_resize_size),