The present disclosure includes a method, apparatus and system for generating a neural network and a non-transitory computer readable storage medium storing instructions. The method comprises: recognizing at least an attribute of an object in a sample image according to a feature extracted from the sample image, using the neural network; determining a loss function value at least according to a margin value determined based on a semantic relationship between attributes, wherein the semantic relationship is obtained from a predefined table at least according to a real attribute and the recognized attribute of the object, wherein the predefined table is composed of the attributes and the semantic relationship between the attributes; updating a parameter in the neural network according to the determined loss function value. When using the neural network generated according the present disclosure, the accuracy of object attribute recognition can be improved.
Method Apparatus and System for Generating a Neural Network and Storage Medium Storing Instructions