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

TypeError: ord() expected a character, but string of length 0 found

Open ANYMS-A opened this issue 4 years ago • 2 comments

when I run the colab notebook at the block "Transform image", it raises the error: "TypeError: ord() expected a character, but string of length 0 found"

Preparing videos and photos for transformation

TypeError Traceback (most recent call last) in () 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 _is_zipfile(f) 74 match = True 75 for magic_byte, read_byte in zip(magic_number, read_bytes): ---> 76 if ord(magic_byte) != ord(read_byte): 77 match = False 78 break

TypeError: ord() expected a character, but string of length 0 found

How should I solve it? Many thanks!

ANYMS-A avatar Dec 10 '20 10:12 ANYMS-A

I find that it is because the file "vox-cpk.pth.tar" is an empty file with 0 bytes. Any solution for this? Many thanks!

ANYMS-A avatar Dec 11 '20 02:12 ANYMS-A

Download from here and upload

https://www.kaggle.com/datasets/rkuo2000/first-order-motion-model?resource=download

pkmchand avatar Jan 31 '23 15:01 pkmchand