Face-Image-Motion-Model icon indicating copy to clipboard operation
Face-Image-Motion-Model copied to clipboard

python3: can't open file 'align_images.py, what's the problem with this project?

Open Iteravse opened this issue 3 years ago • 3 comments

i encounter a error in this project like this: python3: can't open file 'align_images.py': [Errno 2] No such file or directory

seems it can't prepare photo successfully,if i ignoring that error,then next step will always report a error like this:

FileNotFoundError: No such file: '/content/first_order_model/aligned_images/photo-0.png'

even i put photo in that folder,it still pop a error like this:

UnpicklingError                           Traceback (most recent call last)
<ipython-input-18-05d6884bba1f> in <module>()
     43 
     44 generator, kp_detector = load_checkpoints(config_path='config/vox-256.yaml', 
---> 45                                           checkpoint_path='vox-cpk.pth.tar')
     46 
     47 #clear_output()

2 frames
/usr/local/lib/python3.6/dist-packages/torch/serialization.py in _legacy_load(f, map_location, pickle_module, **pickle_load_args)
    690             f.seek(0)
    691 
--> 692     magic_number = pickle_module.load(f, **pickle_load_args)
    693     if magic_number != MAGIC_NUMBER:
    694         raise RuntimeError("Invalid magic number; corrupt file?")

UnpicklingError: pickle data was truncated

so it's environment problem? how to slove that?

Iteravse avatar Sep 27 '20 16:09 Iteravse

btw, these code runing successfylly just two days ago,just today,it broken

Iteravse avatar Sep 27 '20 17:09 Iteravse

Hi I'm having the exact same problem as @Iteravse

Initially, I ran into an issue here but it seems like it may be better to use this repo instead.

Running the examples provided For example, you can use this available materials: https://drive.google.com/drive/folders/1kZ1gCnpfU0BnpdU47pLM_TQ6RypDDqgw in Collab notebook resulted in that error (I loaded 00.mp4 and 01.png)

I've saved a copy of the notebook here with the error.

moldach avatar Mar 21 '21 16:03 moldach

fixed https://github.com/tg-bomze/Face-Image-Motion-Model/issues/14

mem0rz avatar Feb 21 '22 17:02 mem0rz