zoukankan      html  css  js  c++  java
  • Exception in thread Thread-3:第三个线程意外

    Status:Executing -train.py

    02/09/2019 09:33:38 INFO Log level set to: INFO

    Using TensorFlow backend.

    02/09/2019 09:33:39 INFO Model A Directory: /home/afda/faceswap/faceswap-master/output

    02/09/2019 09:33:39 INFO Model B Directory: /home/afda/faceswap/faceswap-master/plugins/extract/align

    02/09/2019 09:33:39 INFO Training data directory: /home/afda/faceswap/faceswap-master/models

    02/09/2019 09:33:39 INFO Loading data, this may take a while...

    02/09/2019 09:33:39 INFO Starting. Press 'ENTER' to stop training and save model

    02/09/2019 09:33:39 INFO Loading Model from Model_Original plugin...

    02/09/2019 09:33:39 WARNING Error loading training info: No such file or directory

    02/09/2019 09:33:39 WARNING Failed loading existing training data. Starting a fresh model: /home/afda

    /faceswap

    /faceswap-master/models

    02/09/2019 09:33:39 INFO Loading Trainer from Model_Original plugin...

    Exception in thread Thread-3:

    Traceback (most recent call last):

    File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner

    self.run()

    File "/home/afda/faceswap/faceswap-master/lib/multithreading.py", line 187, in run

    for item in self.generator:

    File "/home/afda/faceswap/faceswap-master/lib/training_data.py", line 23, in minibatch

    assert length >= batchsize, "Number of images is lower than batch-size (Note that too few images may lead to bad

    training). # images: {}, batch-size: {}".format(length, batchsize)

    AssertionError: Number of images is lower than batch-size (Note that too few images may lead to bad training). #

    images: 33, batch-size: 64

    至少数据量为64张图片,而数据量只有33个,所以导致换脸失败,如果实在没有那么多图片可以复制一下来增加数据量欺骗tensorflow。。

    换脸要求双方都有效才会效果好

    而且换脸的顺序也有问题。。。input1和input2之间到底是怎么回事

  • 相关阅读:
    知识经济中的贫富差距固定化
    分布式锁
    Activiti
    一种避免在scrollViewDidEndDragging中改变contentInset时闪动的解决方案
    一个封装好的iOS无限滚动组件HXInfiniteScrollView
    使用ReactiveCocoa限制UITextField只能输入正确的金额
    关于ReactiveCocoa的RACObserve的一些研究
    iOS使用masonry快速将一组view在superview中等宽排列
    使用AutoLayOut为UIScrollView添加约束图解及要点
    使用AutoLayOut技术告别UITableViewCell高度计算
  • 原文地址:https://www.cnblogs.com/2008nmj/p/10358426.html
Copyright © 2011-2022 走看看