|
发表于 2023-8-16 22:00:20
|
显示全部楼层
本帖最后由 bbslzj 于 2023-9-26 16:49 编辑
之前都可以运行,一段时间后选择codeformer模式运行每次都报以下错误??无解
Face detection model: retinaface_resnet50
Background upsampling: False, Face upsampling: False
Traceback (most recent call last):
File "inference_codeformer.py", line 204, in <module>
for i, img_path in enumerate(tqdm(input_img_list, total=len(input_img_list), desc="\u63d0\u53d6\u4e2d...", file=sys.stdout)):
File "G:\GPEN_GFPGAN_CodeFormer\GPEN_GFPGAN_CodeFormer\_internal\Python37\lib\site-packages\tqdm\std.py", line 1114, in __init__
self.refresh(lock_args=self.lock_args)
File "G:\GPEN_GFPGAN_CodeFormer\GPEN_GFPGAN_CodeFormer\_internal\Python37\lib\site-packages\tqdm\std.py", line 1351, in refresh
self.display()
File "G:\GPEN_GFPGAN_CodeFormer\GPEN_GFPGAN_CodeFormer\_internal\Python37\lib\site-packages\tqdm\std.py", line 1499, in display
self.sp(self.__str__() if msg is None else msg)
File "G:\GPEN_GFPGAN_CodeFormer\GPEN_GFPGAN_CodeFormer\_internal\Python37\lib\site-packages\tqdm\std.py", line 351, in print_status
fp_write('\r' + s + (' ' * max(last_len[0] - len_s, 0)))
File "G:\GPEN_GFPGAN_CodeFormer\GPEN_GFPGAN_CodeFormer\_internal\Python37\lib\site-packages\tqdm\std.py", line 344, in fp_write
fp.write(_unicode(s))
File "G:\GPEN_GFPGAN_CodeFormer\GPEN_GFPGAN_CodeFormer\_internal\Python37\lib\site-packages\tqdm\utils.py", line 145, in inner
return func(*args, **kwargs)
File "G:\GPEN_GFPGAN_CodeFormer\GPEN_GFPGAN_CodeFormer\_internal\Python37\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 1-3: character maps to <undefined>
Exception ignored in: <function tqdm.__del__ at 0x000002955699D828>
Traceback (most recent call last):
File "G:\GPEN_GFPGAN_CodeFormer\GPEN_GFPGAN_CodeFormer\_internal\Python37\lib\site-packages\tqdm\std.py", line 1152, in __del__
self.close()
File "G:\GPEN_GFPGAN_CodeFormer\GPEN_GFPGAN_CodeFormer\_internal\Python37\lib\site-packages\tqdm\std.py", line 1281, in close
if self.last_print_t < self.start_t + self.delay:
AttributeError: 'tqdm' object has no attribute 'last_print_t'
以上问题已修复,是显卡带来的问题
|
|