Fix create_head initialization in 15_arch_details.ipynb (#383)
Fixed as per the solution in https://forums.fast.ai/t/chapter-15-fastai-book-issue-siamese-training-running-mean/84534
This commit is contained in:
parent
3916b71bdf
commit
663431d1ee
@ -350,7 +350,7 @@
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"Then we can create our head. A look at the encoder tells us the last layer has 512 features, so this head will need to receive `512*4`. Why 4? First we have to multiply by 2 because we have two images. Then we need a second multiplication by 2 because of our concat-pool trick. So we create the head as follows:"
|
||||
"Then we can create our head. A look at the encoder tells us the last layer has 512 features, so this head will need to receive `512*2`. Why 2? We have to multiply by 2 because we have two images. So we create the head as follows:"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -359,7 +359,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"head = create_head(512*4, 2, ps=0.5)"
|
||||
"head = create_head(512*2, 2, ps=0.5)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -813,4 +813,4 @@
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user