Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Bunch of corrections #7

@szopeno

Description

@szopeno

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions