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

Transform image errors #17

Open
CelularBat opened this issue Sep 6, 2022 · 1 comment
Open

Transform image errors #17

CelularBat opened this issue Sep 6, 2022 · 1 comment

Comments

@CelularBat
Copy link

CelularBat commented Sep 6, 2022

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.

@CelularBat
Copy link
Author

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

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

1 participant