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