AliaksandrSiarohin / first-order-model

This repository contains the source code for the paper First Order Motion Model for Image Animation
https://aliaksandrsiarohin.github.io/first-order-model-website/
MIT License
14.57k stars 3.22k forks source link

ffmpeg error in Googlecolab #516

Closed bretasvj closed 2 years ago

bretasvj commented 2 years ago

For the last couple of months I've been trying to using FOMM for portrait animation with no success

Always the same error. Can someone help me ?

ModuleNotFoundError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/imageio/plugins/ffmpeg.py in _get_ffmpeg_api() 58 try: ---> 59 import imageio_ffmpeg 60 except ImportError:

ModuleNotFoundError: No module named 'imageio_ffmpeg'

During handling of the above exception, another exception occurred:

ImportError Traceback (most recent call last) 8 frames /usr/local/lib/python3.7/dist-packages/imageio/plugins/ffmpeg.py in _get_ffmpeg_api() 60 except ImportError: 61 raise ImportError( ---> 62 "To use the imageio ffmpeg plugin you need to " 63 "'pip install imageio-ffmpeg'" 64 )

ImportError: To use the imageio ffmpeg plugin you need to 'pip install imageio-ffmpeg'


NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the "Open Examples" button below.

AliaksandrSiarohin commented 2 years ago

Add cell: !pip install imageio-ffmpeg

bretasvj commented 2 years ago

can you tell where should i add it ? really a beguinner here :) open for any tips

thanks for the help!

AliaksandrSiarohin commented 2 years ago

Before everything.

bretasvj commented 2 years ago

now i was hable to generate the menu but got stopped by this new error

TypeError Traceback (most recent call last) in generate(button) 418 for frame in reader: 419 driving_video.append(frame) --> 420 generator, kp_detector = load_checkpoints(config_path='config/%s-256.yaml' % model.value, checkpoint_path=filename) 421 predictions = make_animation( 422 skimage.transform.resize(numpy.asarray(selected_image), (256, 256)),

/content/demo.py 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'

TypeError Traceback (most recent call last) in generate(button) 418 for frame in reader: 419 driving_video.append(frame) --> 420 generator, kp_detector = load_checkpoints(config_path='config/%s-256.yaml' % model.value, checkpoint_path=filename) 421 predictions = make_animation( 422 skimage.transform.resize(numpy.asarray(selected_image), (256, 256)),

/content/demo.py 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'

TypeError Traceback (most recent call last) in generate(button) 418 for frame in reader: 419 driving_video.append(frame) --> 420 generator, kp_detector = load_checkpoints(config_path='config/%s-256.yaml' % model.value, checkpoint_path=filename) 421 predictions = make_animation( 422 skimage.transform.resize(numpy.asarray(selected_image), (256, 256)),

/content/demo.py 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'