mv ../shape_predictor_68_face_landmarks.dat.bz2 ../ffhq.pkl ../model_ir_se50.pth ../faces_w_encoder.pt checkpoints/
FIRST correction required to work
mv data_preprcoess/ data_preprocess # (!!)
SETTING PYTHONPATH required to work
export PYTHONPATH=$PYTHONPATH:pwd
this fails, dlib model is in bz2 archive, must be bunzipped
python data_preprocess/0_align_face.py
--images_dir test_album
--save_dir test
--trash_dir trash
--landmarks_model checkpoints/shape_predictor_68_face_landmarks.dat.bz2
--id_model checkpoints/model_ir_se50.pth
Traceback (most recent call last):
File "PATH-EDITED/mystyle/data_preprocess/0_align_face.py", line 242, in
main()
File "PATH-EDITED/mystyle/data_preprocess/0_align_face.py", line 219, in main
lnds_predictor = dlib.shape_predictor(str(args.landmarks_model))
RuntimeError: Unexpected version found while deserializing dlib::shape_predictor.
cd checkpoints
bunzip2 shape_predictor_68_face_landmarks.dat.bz2 # (!)
cd ..
python data_preprocess/0_align_face.py
--images_dir test_album
--save_dir test
--trash_dir trash
--landmarks_model checkpoints/shape_predictor_68_face_landmarks.dat
--id_model checkpoints/model_ir_se50.pth
OK - now it fails a bit further, but it's because I have n physical GPU no board. I managed to run arcnet/resnet withut GPU before, so I will try later to check whether I'll be able to do it here. We'll see.