|
发表于 2024-3-22 23:01:40
|
显示全部楼层
1.原头像备份两份,其中一份放在data_src\aligned
2.另一份用PS修改图像大小后,直接覆盖存储,不修改文件名
3.执行4.2) data_src util faceset resize.bat修改原头像大小和PS的一致
4.执行4.2) data_src util faceset metadata save.bat,生成meta.dat文件
5.用PS修改后的头像文件替换data_src\aligned目录下的头像文件,保留meta.dat文件
6.执行4.2) data_src util faceset metadata restore.bat
出现以下错误提示,请问大佬,这个是什么原因呢?
/!\ Exception occured while DFLJPG.load : Traceback (most recent call last):
File "D:\DFL\DeepFaceLab_NV30_1120_CN\_internal\DeepFaceLab\DFLIMG\DFLJPG.py", line 49, in load_raw
raise ValueError(f"No Valid JPG info in {filename}")
ValueError: No Valid JPG info in D:\DFL\DeepFaceLab_NV30_1120_CN\workspace\data_src\aligned\00001.jpg
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\DFL\DeepFaceLab_NV30_1120_CN\_internal\DeepFaceLab\DFLIMG\DFLJPG.py", line 131, in load
inst = DFLJPG.load_raw (filename, loader_func=loader_func)
File "D:\DFL\DeepFaceLab_NV30_1120_CN\_internal\DeepFaceLab\DFLIMG\DFLJPG.py", line 126, in load_raw
raise Exception (f"Corrupted JPG file {filename} {e}")
Exception: Corrupted JPG file D:\DFL\DeepFaceLab_NV30_1120_CN\workspace\data_src\aligned\00001.jpg No Valid JPG info in D:\DFL\DeepFaceLab_NV30_1120_CN\workspace\data_src\aligned\00001.jpg
处理中...: 0%| | 0/6771 [00:00<?, ?it/s]
Traceback (most recent call last):
File "D:\DFL\DeepFaceLab_NV30_1120_CN\_internal\DeepFaceLab\main.py", line 343, in <module>
arguments.func(arguments)
File "D:\DFL\DeepFaceLab_NV30_1120_CN\_internal\DeepFaceLab\main.py", line 90, in process_util
Util.restore_faceset_metadata_folder (input_path=arguments.input_dir)
File "D:\DFL\DeepFaceLab_NV30_1120_CN\_internal\DeepFaceLab\mainscripts\Util.py", line 73, in restore_faceset_metadata_folder
dflimg.set_dict(dfl_dict)
AttributeError: 'NoneType' object has no attribute 'set_dict' |
|