neural_network #25

Merged
s481834 merged 12 commits from neural_network into refactor 2024-06-04 13:23:20 +02:00
Showing only changes of commit 34bfe78218 - Show all commits

View File

@ -14,7 +14,7 @@ fertilizer = {labels[0]: 'kompost', labels[1]: 'saletra amonowa', labels[2]: 'su
torch.manual_seed(42) torch.manual_seed(42)
device = torch.device('cuda') device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
def getTransformation(): def getTransformation():
transform=transforms.Compose([ transform=transforms.Compose([