awsaf49 commited on
Commit
69a7cee
1 Parent(s): 7b478b2

fix for base and small model

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. gcvit/models/gcvit.py +1 -1
app.py CHANGED
@@ -15,14 +15,14 @@ demo = gr.Interface(
15
  fn=predict_fn,
16
  inputs=[
17
  gr.inputs.Image(label="Input Image"),
18
- gr.Radio(['GCViTTiny', 'GCViTSmall', 'GCViTBase'], value='GCViTTiny', label='Model Size')
19
  ],
20
  outputs=[
21
  gr.outputs.Label(label="Prediction"),
22
  gr.inputs.Image(label="GradCAM"),
23
  ],
24
  title="Global Context Vision Transformer (GCViT) Demo",
25
- description="Image Classification with ImageNet Pretrain Weights.",
26
  examples=[
27
  ["example/hot_air_ballon.jpg", 'GCViTTiny'],
28
  ["example/chelsea.png", 'GCViTTiny'],
 
15
  fn=predict_fn,
16
  inputs=[
17
  gr.inputs.Image(label="Input Image"),
18
+ gr.Radio(['GCViTTiny', 'GCViTSmall', 'GCViTBase'], value='GCViTTiny', label='Model Name')
19
  ],
20
  outputs=[
21
  gr.outputs.Label(label="Prediction"),
22
  gr.inputs.Image(label="GradCAM"),
23
  ],
24
  title="Global Context Vision Transformer (GCViT) Demo",
25
+ description="Image Classification with GCViT Model using ImageNet Pretrain Weights.",
26
  examples=[
27
  ["example/hot_air_ballon.jpg", 'GCViTTiny'],
28
  ["example/chelsea.png", 'GCViTTiny'],
gcvit/models/gcvit.py CHANGED
@@ -5,7 +5,7 @@ from ..layers import PatchEmbed, GCViTLayer, Identity
5
 
6
 
7
  BASE_URL = 'https://github.com/awsaf49/gcvit-tf/releases/download'
8
- TAG = 'v1.0.0'
9
  NAME2CONFIG = {
10
  'gcvit_tiny': {'window_size': (7, 7, 14, 7),
11
  'dim': 64,
 
5
 
6
 
7
  BASE_URL = 'https://github.com/awsaf49/gcvit-tf/releases/download'
8
+ TAG = 'v1.0.4'
9
  NAME2CONFIG = {
10
  'gcvit_tiny': {'window_size': (7, 7, 14, 7),
11
  'dim': 64,