dhruv2842 commited on
Commit
4ca7330
·
verified ·
1 Parent(s): 456a39c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -54,12 +54,12 @@ CLASS_NAMES = ["Normal", "Early Glaucoma", "Advanced Glaucoma"]
54
 
55
  # ✅ Transformation for input images
56
  transform = transforms.Compose([
57
- transforms.Resize((224, 224)), # Adjust size based on training
 
58
  transforms.ToTensor(),
59
- transforms.Normalize(mean=[0.485, 0.456, 0.406], # Standard ImageNet stats
60
- std=[0.229, 0.224, 0.225])
61
  ])
62
-
63
  @app.route('/')
64
  def home():
65
  """Check that the API is working."""
 
54
 
55
  # ✅ Transformation for input images
56
  transform = transforms.Compose([
57
+ transforms.Resize(256),
58
+ transforms.CenterCrop(224),
59
  transforms.ToTensor(),
60
+ transforms.Normalize(mean=[0.485, 0.456, 0.406],
61
+ std=[0.229, 0.224, 0.225]),
62
  ])
 
63
  @app.route('/')
64
  def home():
65
  """Check that the API is working."""