fully-app first commit
Browse files
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 |
|