ahatamiz commited on
Commit
f0fbcbd
·
verified ·
1 Parent(s): 75893a3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -6
README.md CHANGED
@@ -66,9 +66,14 @@ model.cuda().eval()
66
  # prepare image for the model
67
  url = 'http://images.cocodataset.org/val2017/000000020247.jpg'
68
  image = Image.open(requests.get(url, stream=True).raw)
69
- input_resolution = (3, 224, 224) # MambaVision supports any input resolutions but has been originally trained on (3, 224, 224)
70
 
71
- transform = create_transform(input_size=input_resolution, is_training=False, mean=model.config.mean, std=model.config.std, crop_mode=model.config.crop_mode, crop_pct=model.config.crop_pct)
 
 
 
 
 
72
 
73
  inputs = transform(image).unsqueeze(0).cuda()
74
  # model inference
@@ -102,10 +107,14 @@ model.cuda().eval()
102
  # prepare image for the model
103
  url = 'http://images.cocodataset.org/val2017/000000020247.jpg'
104
  image = Image.open(requests.get(url, stream=True).raw)
105
- input_resolution = (3, 224, 224) # MambaVision supports any input resolutions but has been originally trained on (3, 224, 224)
106
-
107
- transform = create_transform(input_size=input_resolution, is_training=False, mean=model.config.mean, std=model.config.std, crop_mode=model.config.crop_mode, crop_pct=model.config.crop_pct)
108
-
 
 
 
 
109
  inputs = transform(image).unsqueeze(0).cuda()
110
  # model inference
111
  out_avg_pool, features = model(inputs)
 
66
  # prepare image for the model
67
  url = 'http://images.cocodataset.org/val2017/000000020247.jpg'
68
  image = Image.open(requests.get(url, stream=True).raw)
69
+ input_resolution = (3, 224, 224) # MambaVision supports any input resolutions
70
 
71
+ transform = create_transform(input_size=input_resolution,
72
+ is_training=False,
73
+ mean=model.config.mean,
74
+ std=model.config.std,
75
+ crop_mode=model.config.crop_mode,
76
+ crop_pct=model.config.crop_pct)
77
 
78
  inputs = transform(image).unsqueeze(0).cuda()
79
  # model inference
 
107
  # prepare image for the model
108
  url = 'http://images.cocodataset.org/val2017/000000020247.jpg'
109
  image = Image.open(requests.get(url, stream=True).raw)
110
+ input_resolution = (3, 224, 224) # MambaVision supports any input resolutions
111
+
112
+ transform = create_transform(input_size=input_resolution,
113
+ is_training=False,
114
+ mean=model.config.mean,
115
+ std=model.config.std,
116
+ crop_mode=model.config.crop_mode,
117
+ crop_pct=model.config.crop_pct)
118
  inputs = transform(image).unsqueeze(0).cuda()
119
  # model inference
120
  out_avg_pool, features = model(inputs)