1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Nigel Barink 69089d2af9 Moving FashionLabelingModel into a models folder 2023-03-30 19:43:13 +02:00
Nigel Barink 23a0591630 Dataloaders and datasets 2023-03-30 19:41:46 +02:00
6 changed files with 272 additions and 4 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
data
venv
.venv
.vscode

267
data.ipynb Normal file

File diff suppressed because one or more lines are too long

View File

@ -56,7 +56,7 @@ class NeuralNetwork(nn.Module):
return logits
model = NeuralNetwork()
model.load_state_dict(torch.load("FashionLabeling_model.pth"))
model.load_state_dict(torch.load("mdoels/FashionLabeling_model.pth"))
classes = [
"T-shirt/top",

View File

@ -101,5 +101,5 @@ for t in range(epochs):
print("Done!")
torch.save(model.state_dict(), "model.pth")
torch.save(model.state_dict(), "models/model.pth")
print("Saved PyTorch Model State to model.pth")

View File

@ -4,4 +4,5 @@ torch
torchvision
--index-url https://download.pytorch.org/whl/cu117
torchaudio
numpy
numpy
pandas