better architecture

This commit is contained in:
2026-04-30 18:02:47 +02:00
parent fe7d6221e9
commit da2b9c5052
5 changed files with 2 additions and 2 deletions
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -50,7 +50,7 @@ class Bird_CNN(nn.Module):
SkipBlock(c_in=c_hidden, c_out=c_hidden),
SkipBlock(c_in=c_hidden, c_out=c_hidden),
SkipBlock(c_in=c_hidden, c_out=c_hidden),
SkipBlock(c_in=c_hidden, c_out=c_hidden*2),
SkipBlock(c_in=c_hidden*2, c_out=c_hidden*2),
SkipBlock(c_in=c_hidden*2, c_out=c_hidden*2),
Binary file not shown.
+1 -1
View File
@@ -31,7 +31,7 @@ transform = transforms.Compose([
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = Bird_CNN(c_in=3, c_hidden=15, c_out=7)
model =Bird_CNN(c_in=3, c_hidden=64, c_out=7)
full_path = os.path.join(BUILD_PATH, "bird_cnn")
model.load_state_dict(torch.load(full_path, map_location=torch.device(device)))
model.to(device)