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

Cannot transform image #14

Open
elpatron37 opened this issue Dec 28, 2020 · 3 comments
Open

Cannot transform image #14

elpatron37 opened this issue Dec 28, 2020 · 3 comments

Comments

@elpatron37
Copy link

When I try to run 'Transform image'
it shows an error like this

Preparing videos and photos for transformation


FileNotFoundError Traceback (most recent call last)
in ()
8 source_images = []
9 for photoname in aligned_photolist:
---> 10 source_image = imageio.imread('aligned_images/' + photoname)
11 source_image = resize(source_image, (256, 256))[..., :3]
12 source_images.append(source_image)

3 frames
/usr/local/lib/python3.6/dist-packages/imageio/core/request.py in _parse_uri(self, uri)
271 # Reading: check that the file exists (but is allowed a dir)
272 if not os.path.exists(fn):
--> 273 raise FileNotFoundError("No such file: '%s'" % fn)
274 else:
275 # Writing: check that the directory to write to does exist

FileNotFoundError: No such file: '/content/first_order_model/aligned_images/photo-0_01.png'

I would really appreciate it if someone help me solve this

mem0rz added a commit to mem0rz/Face-Image-Motion-Model that referenced this issue Feb 21, 2022
@mem0rz
Copy link

mem0rz commented Feb 21, 2022

@holycowdude
Copy link

Hi, i'm getting this error on transform image:

Preparing videos and photos for transformation

FileNotFoundError Traceback (most recent call last)
in ()
8 source_images = []
9 for photoname in aligned_photolist:
---> 10 source_image = imageio.imread('aligned_images/' + photoname)
11 source_image = resize(source_image, (256, 256))[..., :3]
12 source_images.append(source_image)

3 frames
/usr/local/lib/python3.7/dist-packages/imageio/core/request.py in _parse_uri(self, uri)
271 # Reading: check that the file exists (but is allowed a dir)
272 if not os.path.exists(fn):
--> 273 raise FileNotFoundError("No such file: '%s'" % fn)
274 else:
275 # Writing: check that the directory to write to does exist

FileNotFoundError: No such file: '/content/first_order_model/aligned_images/photo-0_01.png'

Please can you help?

@warriorwizard
Copy link

change the directory to :

print('Preparing videos and photos for transformation')
source_images = []
for photoname in aligned_photolist:
source_image = imageio.imread('aligned_images/raw_images/' + photoname)
source_image = resize(source_image, (256, 256))[..., :3]
source_images.append(source_image)

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

4 participants