andrewjong / ShineOn-Virtual-Tryon

Code for "ShineOn: Illuminating Design Choices for Practical Video-based Virtual Clothing Try-on", accepted at WACV 2021 Generation of Human Behavior Workshop.
131 stars 31 forks source link

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

Open shruti-bt opened 3 years ago

shruti-bt commented 3 years ago

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.