yuval-alaluf / SAM

Official Implementation for "Only a Matter of Style: Age Transformation Using a Style-Based Regression Model" (SIGGRAPH 2021) https://arxiv.org/abs/2102.02754
https://yuval-alaluf.github.io/SAM/
MIT License
632 stars 151 forks source link

Inference cannot be run #37

Closed woshixiaozhou closed 2 years ago

woshixiaozhou commented 2 years ago

Hello, thank you for sharing. I downloaded the pretrained Sam model and installed the environment through annaconda. When I execute python scripts/inference.py \ --exp_dir=path/to/experiment \ --checkpoint_path=pretrained_models/sam_ffhq_aging .pt\ --data_path=path/to/test_data \ --test_batch_size=4 \ --test_workers=4 \ --target_age=0,10,20,30,40,50,60,70,80 No image is output and no error is reported

yuval-alaluf commented 2 years ago

Sorry for the late reply. It could be that Ninja got stuck during compilation and therefore nothing happened. Maybe this can help solve your issue: https://github.com/yuval-alaluf/restyle-encoder/issues/31#issuecomment-898304708