pycharm passes in initial parameter information (terminal and run-configuration)

Taking cycleGAN, a project on github, as an example, you need to pass the values ​​of the three variables of dataroot name model into the parser

method one

Run in the command line terminal

This method can run the code, but cannot debug

You can import pdb, use pdb.set_trace() to set the breakpoint position for debugging

Method Two

Configure the initial parameters of the variable in Run-Edit Configuration

 Copy the information behind python train.py to Parameters, and the debug can run normally

 

 

 

Guess you like

Origin blog.csdn.net/m0_63077499/article/details/129358487