Skip to main content

004425: Invalid parameter. model_weight must be either False, or the path to a model weight file from the model repository <value> ,for example, False or <value>. Remember to use double backslashes '\\' instead of single '\' in the path.

Description

The model_weight argument is invalid. The value must be either False or a valid path to a model weight file.

For more information about valid argument values, see Deep learning arguments.

Solution

Ensure that the argument is either False or a valid file path to a model weight file. If a file path is specified, ensure that you use double backslashes (\\) for the file path.