Closed
Description
I just made two modifications on examples/few-shot/maml-omniglot.py
:
- change the net structure in
line 98
to my net:
net = nn.Sequential(
nn.Conv2d(1, 64, (3, 3), 2, 0), nn.BatchNorm2d(64), nn.ReLU(),
nn.Conv2d(64, 64, (3, 3), 2, 0), nn.BatchNorm2d(64), nn.ReLU(),
nn.Conv2d(64, 64, (3, 3), 2, 0), nn.BatchNorm2d(64), nn.ReLU(),
nn.Conv2d(64, 64, (2, 2), 1, 0), nn.BatchNorm2d(64), nn.ReLU(),
nn.Flatten(), nn.Linear(64, args.n_way),
).to(device)
- change the inner_opt from
MetaSGD
toMetaAdam
inline 120
.
Then I got 'nan' parameters after first time of meta_opt.step()
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done