avatarify-python icon indicating copy to clipboard operation
avatarify-python copied to clipboard

change avatar

Open moaeddy opened this issue 4 years ago • 3 comments

how do i change avatar when using python version?

and how do i fix this error

warnings.warn("nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.")

moaeddy avatar Oct 28 '21 15:10 moaeddy

Here are the keys: https://github.com/alievk/avatarify-python/tree/master/docs#controls

It says it's a warning, so it shouldn't be an error. Does it cause any problems for you?

JohanAR avatar Oct 28 '21 16:10 JohanAR

avatarify-python works fine for yesterday but today it is showing this error

Traceback (most recent call last): File "afy/cam_fomm.py", line 229, in avatars, avatar_names = load_images() File "afy/cam_fomm.py", line 78, in load_images log("Failed to open image: {}".format(f)) File "C:\Users\Desktop\avatarify-python\afy\utils.py", line 31, in call return self.write(*args, **kwargs) File "C:\Users\Desktop\avatarify-python\afy\utils.py", line 27, in write log(*args, file=self.file, **kwargs) File "C:\Users\Desktop\avatarify-python\afy\utils.py", line 11, in log print(f'[{time_str}]', *args, file=file, **kwargs) File "C:\Users.conda\envs\avatarify\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 32-37: character maps to

moaeddy avatar Oct 29 '21 17:10 moaeddy

Sounds like there is something wrong with one of the files you put in the images folder. Try figuring out which file is causing the problem and delete it

JohanAR avatar Oct 30 '21 09:10 JohanAR

How do I change my image in the folder because I don't know how to trace my img folder

BILLO116 avatar Mar 18 '23 16:03 BILLO116

Closing this issue since original creator appears to have solved their problems.

@BILLO116 it's the folder named "avatars". Check the documentation when in doubt :)

JohanAR avatar Mar 18 '23 18:03 JohanAR