15. Check out open source projects

15.1 parser.add_argument

① Just like running Tensorboar, in the Terminal terminal, you can command to run the .py file.

② As shown in the figure below, when the Terminal terminal runs the .py file, the value after the -- variable is assigned to the variable, and then runs in the .py file after the assignment. For example, ./datasets/maps assigns a value to the previous dataroot, maps_cyclegan assigns a value to the previous name, and cycle_gan assigns a value to the previous model.

③ required means that parameters must be specified, and default means that there are default parameters. Terminal command statement, if the default variable is not newly written, the default parameters are directly called; if the default variable is newly written, the default parameters are overwritten by the newly written parameters.

 

Guess you like

Origin blog.csdn.net/qq_54932411/article/details/132521964