Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run the GUI operation in the debug mode? #3

Closed
zzxzzx123 opened this issue Mar 22, 2021 · 1 comment
Closed

How to run the GUI operation in the debug mode? #3

zzxzzx123 opened this issue Mar 22, 2021 · 1 comment

Comments

@zzxzzx123
Copy link

Thanks for your code. I wonder if you can introduce how to run the GUI operation in the debug mode more specifically?

@idealwhite
Copy link
Owner

idealwhite commented Mar 25, 2021

In practice, I add a debug line import ipdb; ipdb.set_trace() in ui_model.py at line 321. You can run the GUI with the following steps:

  1. Rename the test checkpoint as "bird" or "coco" in the checkpoints like ./checkpoints/bird/

  2. Run the command: python ui_main.py --img_file ./datasets/CUB_200_2011/valid.flist --no_variance --display_port 8000 --gpu_id -1 --results_dir result/ --model tdanet
    The program will wait at line 321 during inpainting, then you need to input ''c'' at the debug console to get the completed image.

Operation on UI

image

Why using the debug code

In my desktop, PyQt5 will break after filling, without any error info for the python codes. Waiting at line 321 and then continue could avoid the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants