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

Getting bad segmentation results in output folder even after running test_pgn.py #50

Open
farazkhanfk7 opened this issue Oct 16, 2020 · 2 comments

Comments

@farazkhanfk7
Copy link

I downloaded the pretrained checkpoints and stored them inside checkpoints folder. After which I ran the test_pgn.py file and it created an output folder with two subfolders cihp_edge_maps and cihp_parsing_maps. Below is the output 0002190_vis.png which was created inside cihp_parsing_maps. And this is clearly not the output I was expecting.
0002190
What went wrong ? What have I missed ?
I have completed all these steps which were mentioned in Readme file.

  • Download the pre-trained model and store in $HOME/checkpoint.
  • Prepare the images and store in $HOME/datasets.
  • Run test_pgn.py.
  • The results are saved in $HOME/output
@TidamCo
Copy link

TidamCo commented Nov 3, 2020

I just ran into the same problem I think. If you read the code, you'll see this :
RESTORE_FROM = './checkpoint/CIHP_pgn'
Which mean you have to unzip the pre-trained model and move the whole folder into checkpoint instead of just the content of the folder.

I find it really surprising that it didn't throw an error when I ran it with the checkpoints in the wrong place.

@sanazsab
Copy link

I just ran into the same problem I think. If you read the code, you'll see this : RESTORE_FROM = './checkpoint/CIHP_pgn' Which mean you have to unzip the pre-trained model and move the whole folder into checkpoint instead of just the content of the folder.

I find it really surprising that it didn't throw an error when I ran it with the checkpoints in the wrong place.

Many Thanks for your point. It also works for me.

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

3 participants