You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/11/02 23:44:15 UTC

[GitHub] piiswrong closed pull request #8517: Correct Initialization Description in Finetune Tutorial.

piiswrong closed pull request #8517: Correct Initialization Description in Finetune Tutorial.
URL: https://github.com/apache/incubator-mxnet/pull/8517
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/faq/finetune.md b/docs/faq/finetune.md
index 6c49656eae..533c3caf52 100644
--- a/docs/faq/finetune.md
+++ b/docs/faq/finetune.md
@@ -145,8 +145,8 @@ def get_fine_tune_model(symbol, arg_params, num_classes, layer_name='flatten0'):
     return (net, new_args)
 ```
 
-Now we create a module. We first call `init_params` to randomly initialize parameters, next use `set_params` to replace all parameters except for the last fully-connected layer with pretrained model.
-
+Now we create a module. Note we pass the existing parameters from the loaded model via the `arg_params` argument.
+The parameters of the last fully-connected layer will be randomly initialized by the `initializer`.
 
 ```python
 import logging


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services