--weight or -w

Applicability

Product

Supported (√/x)

Atlas A3 training product/Atlas A3 inference product

x

Atlas A2 training product/Atlas A2 inference product

x

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Sets the model weight file directory, including the file name.

This option is required for a Caffe model.

The Atlas A2 training product/Atlas A2 inference product does not support the Caffe framework.

The Atlas A3 training product/Atlas A3 inference product does not support the Caffe framework.

See Also

If the original model is of the Caffe framework, this option must be used together with --model or -m. If the weight file and model file have the same name and are stored in the same path, you do not need to specify --weight or -w because the system will match them.

Arguments

Argument: weight file directory, including the file name.

Format: The directory (including the file name) can contain uppercase and lowercase letters (A–Z, a–z), digits (0–9), underscores (_), hyphens (-), periods (.), and Chinese characters.

Suggestions and Benefits

None

Examples

--model=${HOME}/test/resnet50.prototxt --weight=${HOME}/test/resnet50new.caffemodel

Dependencies and Restrictions

None