Jash-RA commited on
Commit
cf617f9
·
1 Parent(s): b6e6d44

fully-app first commit

Browse files
Files changed (2) hide show
  1. README.md +3 -0
  2. train.py +1 -1
README.md CHANGED
@@ -11,3 +11,6 @@ license: mit
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
14
+
15
+
16
+ LIVE DEPLOYMENT AT: https://huggingface.co/spaces/mrdbourke/foodvision_big
train.py CHANGED
@@ -33,7 +33,7 @@ if __name__ == "__main__":
33
  # print(model)
34
 
35
 
36
- loss_fn = torch.nn.CrossEntropyLoss()
37
  accuracy_fn = MulticlassAccuracy(num_classes = NUM_CLASSES).to(device)
38
  optimizer = torch.optim.Adam(model.parameters(), lr = LEARNIGN_RATE)
39
 
 
33
  # print(model)
34
 
35
 
36
+ loss_fn = torch.nn.CrossEntropyLoss(label_smoothing=0.1)
37
  accuracy_fn = MulticlassAccuracy(num_classes = NUM_CLASSES).to(device)
38
  optimizer = torch.optim.Adam(model.parameters(), lr = LEARNIGN_RATE)
39