code cleaning
This commit is contained in:
parent
03724c3cf4
commit
856816e108
3
.vscode/extensions.json
vendored
Normal file
3
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"recommendations": ["sbsnippets.pytorch-snippets"]
|
||||
}
|
@ -108,6 +108,8 @@ class Tile(pygame.sprite.Sprite):
|
||||
_, predicted = torch.max(output.data, 1)
|
||||
|
||||
result = classes[predicted.item()]
|
||||
|
||||
|
||||
if result == "ziemniak":
|
||||
result = 'marchew'
|
||||
return result
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 9.2 KiB |
Loading…
Reference in New Issue
Block a user