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之間到底是怎么回事


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM