Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Did you mean simple_extractor.py insted of evaluate.py? #133

Open
shruti-bt opened this issue May 19, 2021 · 0 comments
Open

Did you mean simple_extractor.py insted of evaluate.py? #133

shruti-bt opened this issue May 19, 2021 · 0 comments

Comments

@shruti-bt
Copy link

shruti-bt commented May 19, 2021

I think you have a bug here

import os
import os.path as osp

home = "/path/to/fw_gan_vvt/test/test_frames"
schp = "/path/to/Self-Correction-Human-Parsing"
output = "/path/to/fw_gan_vvt/test/test_frames_parsing"
os.chdir(home)
paths = os.listdir('.')
paths.sort()
for vid in paths:
    os.chdir(osp.join(home, vid))
    input_dir = os.getcwd()
    output_dir = osp.join(output, vid)
    generate_seg = "python evaluate.py --dataset lip --restore-weight 
        checkpoints/exp-schp-201908261155-lip.pth --input " + input_dir + 
        " --output " + output_dir
    os.chdir(schp)
    os.system(generate_seg)

I think you meant simple_extractor.py instead of evaluate.py because there is no such arguments in evaluate.py.

Also where to get this "/path/to/fw_gan_vvt/test/test_frames.

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

No branches or pull requests

1 participant