Face-Image-Motion-Model
Face-Image-Motion-Model copied to clipboard
Transform image errors
FileNotFoundError: No such file: '/content/first_order_model/aligned_images/photo-0.jpg'
Fixed after moving photo from /content/first_order_model/aligned_images/raw_images/ into /content/first_order_model/aligned_images/
But more errors appear.
ModuleNotFoundError: No module named 'imageio_ffmpeg'
I needed to install it manually
pip install imageio-ffmpeg
and then:
`TypeError Traceback (most recent call last)
[<ipython-input-11-05d6884bba1f>](https://localhost:8080/#) 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()
[/content/first_order_model/demo.py](https://localhost:8080/#) in load_checkpoints(config_path, checkpoint_path, cpu)
25
26 with open(config_path) as f:
---> 27 config = yaml.load(f)
28
29 generator = OcclusionAwareGenerator(**config['model_params']['generator_params'],
TypeError: load() missing 1 required positional argument: 'Loader'`
I am unable to fix this and check for more errors.
Changing 27th line in demo.py to:
config = yaml.load(f,Loader=yaml.FullLoader)
helped
But now there is another error:
TypeError Traceback (most recent call last)
[<ipython-input-7-b3570f62a0e3>](https://localhost:8080/#) in <module>
41 return ani
42
---> 43 generator, kp_detector = load_checkpoints(config_path='config/vox-256.yaml', checkpoint_path='vox-cpk.pth.tar')
44
45 #clear_output()
2 frames
[/usr/local/lib/python3.7/dist-packages/torch/serialization.py](https://localhost:8080/#) 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