Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Iteravse opened this issue Sep 27, 2020 · 3 comments

Comments

@Iteravse
Copy link

Iteravse commented Sep 27, 2020

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
Copy link
Author

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

@moldach
Copy link

moldach commented Mar 21, 2021

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.

@mem0rz
Copy link

mem0rz commented Feb 21, 2022

fixed #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants