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)
|
_, predicted = torch.max(output.data, 1)
|
||||||
|
|
||||||
result = classes[predicted.item()]
|
result = classes[predicted.item()]
|
||||||
|
|
||||||
|
|
||||||
if result == "ziemniak":
|
if result == "ziemniak":
|
||||||
result = 'marchew'
|
result = 'marchew'
|
||||||
return result
|
return result
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 9.2 KiB |
Loading…
Reference in New Issue
Block a user