标题:使用命令开始进行人脸信息模型的训练 出错,怎么解决?
取消只看楼主
yuma
Rank: 11Rank: 11Rank: 11Rank: 11
来 自:银河系
等 级:贵宾
威 望:33
帖 子:1883
专家分:2904
注 册:2009-12-22
结帖率:89.13%
已结贴  问题点数:20 回复次数:0 
使用命令开始进行人脸信息模型的训练 出错,怎么解决?
C:\Users\Admin\Desktop\faceswap-master>python.exe faceswap.py train -A faceA_folder/ -B faceB_folder  -m models/
Setting Faceswap backend to CPU
01/16/2023 10:20:18 INFO     Log level set to: INFO
01/16/2023 10:20:28 INFO     Model A Directory: 'C:\Users\Admin\Desktop\faceswap-master\faceA_folder' (689 images)
01/16/2023 10:20:28 INFO     Model B Directory: 'C:\Users\Admin\Desktop\faceswap-master\faceB_folder' (315 images)
01/16/2023 10:20:28 INFO     Training data directory: C:\Users\Admin\Desktop\faceswap-master\models
01/16/2023 10:20:28 INFO     ===================================================
01/16/2023 10:20:28 INFO       Starting
01/16/2023 10:20:28 INFO       Press 'ENTER' to save and quit
01/16/2023 10:20:28 INFO       Press 'S' to save model weights immediately
01/16/2023 10:20:28 INFO     ===================================================
01/16/2023 10:20:28 INFO     Exit requested! The trainer will complete its current cycle, save the models and quit (This can take a couple of minutes depending on your training speed). If you want to kill it now, press Ctrl + c
01/16/2023 10:20:28 INFO     Loading data, this may take a while...
01/16/2023 10:20:28 INFO     Loading Model from Original plugin...
01/16/2023 10:20:28 ERROR    Caught exception in thread: '_training'
WARNING: Ignoring invalid distribution -ymupdf (c:\users\admin\appdata\local\programs\python\python310\lib\site-packages)
01/16/2023 10:20:31 ERROR    Got Exception on main handler:
Traceback (most recent call last):
  File "C:\Users\Admin\Desktop\faceswap-master\lib\cli\launcher.py", line 222, in execute_script
    process.process()
  File "C:\Users\Admin\Desktop\faceswap-master\scripts\train.py", line 213, in process
    self._end_thread(thread, err)
  File "C:\Users\Admin\Desktop\faceswap-master\scripts\train.py", line 253, in _end_thread
    thread.join()
  File "C:\Users\Admin\Desktop\faceswap-master\lib\multithreading.py", line 217, in join
    raise thread.err[1].with_traceback(thread.err[2])
  File "C:\Users\Admin\Desktop\faceswap-master\lib\multithreading.py", line 96, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Admin\Desktop\faceswap-master\scripts\train.py", line 275, in _training
    raise err
  File "C:\Users\Admin\Desktop\faceswap-master\scripts\train.py", line 263, in _training
    model = self._load_model()
  File "C:\Users\Admin\Desktop\faceswap-master\scripts\train.py", line 287, in _load_model
    model: "ModelBase" = PluginLoader.get_model(self._args.trainer)(
  File "C:\Users\Admin\Desktop\faceswap-master\plugins\plugin_loader.py", line 131, in get_model
    return PluginLoader._import("train.model", name, disable_logging)
  File "C:\Users\Admin\Desktop\faceswap-master\plugins\plugin_loader.py", line 197, in _import
    module = import_module(mod)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\Lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\Admin\Desktop\faceswap-master\plugins\train\model\original.py", line 11, in <module>
    from ._base import KerasModel, ModelBase
  File "C:\Users\Admin\Desktop\faceswap-master\plugins\train\model\_base\__init__.py", line 4, in <module>
    from .model import get_all_sub_models, KerasModel, ModelBase  # noqa
  File "C:\Users\Admin\Desktop\faceswap-master\plugins\train\model\_base\model.py", line 23, in <module>
    from .settings import Loss, Optimizer, Settings
  File "C:\Users\Admin\Desktop\faceswap-master\plugins\train\model\_base\settings.py", line 37, in <module>
    from lib.model.autoclip import AutoClipper  # pylint:disable=ungrouped-imports
  File "C:\Users\Admin\Desktop\faceswap-master\lib\model\autoclip.py", line 8, in <module>
    import tensorflow_probability as tfp
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\__init__.py", line 20, in <module>
    from tensorflow_probability import substrates
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\substrates\__init__.py", line 17, in <module>
    from tensorflow_probability.python.internal import all_util
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\__init__.py", line 138, in <module>
    dir(globals()[pkg_name])  # Forces loading the package from its lazy loader.
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\internal\lazy_loader.py", line 57, in __dir__
    module = self._load()
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\internal\lazy_loader.py", line 37, in _load
    self._on_first_access()
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\__init__.py", line 59, in _validate_tf_environment
    raise ImportError(
ImportError: This version of TensorFlow Probability requires TensorFlow version >= 2.11; Detected an installation of version 2.10.0. Please upgrade TensorFlow to proceed.
01/16/2023 10:20:31 CRITICAL An unexpected crash has occurred. Crash report written to 'C:\Users\Admin\Desktop\faceswap-master\crash_report.2023.01.16.102028697125.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting

日志文件:
crash_report.2023.01.16.102028697125.zip (11.2 KB)


[此贴子已经被作者于2023-1-16 10:31编辑过]

搜索更多相关主题的帖子: line Users File Desktop Admin 
2023-01-16 10:23



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-511118-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.679392 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved