deepfacelab中文网

 找回密码
 立即注册(仅限QQ邮箱)
查看: 16|回复: 1

第二步训练,出现这个提示码

[复制链接]

2

主题

6

帖子

69

积分

高级丹童

Rank: 2

积分
69
 楼主| 发表于 4 小时前 | 显示全部楼层 |阅读模式
星级打分
  • 1
  • 2
  • 3
  • 4
  • 5
平均分:NAN  参与人数:0  我的评分:未评
Process Process-26:
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleGeneratorFace.py", line 134, in batch_func
    x, = SampleProcessor.process ([sample], self.sample_process_options, self.output_sample_types, self.debug, ct_sample=ct_sample)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleProcessor.py", line 113, in process
    warp_rnd_state=warp_rnd_state,
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\core\imagelib\warp.py", line 132, in gen_warp_params
    mapx = cv2.resize(mapx, (w+cell_size,)*2 )[half_cell_size:-half_cell_size,half_cell_size:-half_cell_size].astype(np.float32)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\core\src\alloc.cpp:55: error: (-4:Insufficient memory) Failed to allocate 2163200 bytes in function 'cv::OutOfMemoryError'


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "multiprocessing\process.py", line 258, in _bootstrap
  File "multiprocessing\process.py", line 93, in run
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\core\joblib\SubprocessGenerator.py", line 54, in process_func
    gen_data = next (self.generator_func)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleGeneratorFace.py", line 136, in batch_func
    raise Exception ("Exception occured in sample %s. Error: %s" % (sample.filename, traceback.format_exc() ) )
Exception: Exception occured in sample 16510.jpg. Error: Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleGeneratorFace.py", line 134, in batch_func
    x, = SampleProcessor.process ([sample], self.sample_process_options, self.output_sample_types, self.debug, ct_sample=ct_sample)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleProcessor.py", line 113, in process
    warp_rnd_state=warp_rnd_state,
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\core\imagelib\warp.py", line 132, in gen_warp_params
    mapx = cv2.resize(mapx, (w+cell_size,)*2 )[half_cell_size:-half_cell_size,half_cell_size:-half_cell_size].astype(np.float32)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\core\src\alloc.cpp:55: error: (-4:Insufficient memory) Failed to allocate 2163200 bytes in function 'cv::OutOfMemoryError'


Process Process-32:][0859ms][0.5219][0.3439]
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleGeneratorFace.py", line 134, in batch_func
    x, = SampleProcessor.process ([sample], self.sample_process_options, self.output_sample_types, self.debug, ct_sample=ct_sample)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleProcessor.py", line 206, in process
    img = np.clip(img.astype(np.float32), 0, 1)
  File "<__array_function__ internals>", line 6, in clip
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\python-3.6.8\lib\site-packages\numpy\core\fromnumeric.py", line 2097, in clip
    return _wrapfunc(a, 'clip', a_min, a_max, out=out, **kwargs)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\python-3.6.8\lib\site-packages\numpy\core\fromnumeric.py", line 58, in _wrapfunc
    return bound(*args, **kwds)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\python-3.6.8\lib\site-packages\numpy\core\_methods.py", line 141, in _clip
    um.clip, a, min, max, out=out, casting=casting, **kwargs)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\python-3.6.8\lib\site-packages\numpy\core\_methods.py", line 94, in _clip_dep_invoke_with_casting
    return ufunc(*args, out=out, **kwargs)
MemoryError: Unable to allocate 1.98 MiB for an array with shape (416, 416, 3) and data type float32

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "multiprocessing\process.py", line 258, in _bootstrap
  File "multiprocessing\process.py", line 93, in run
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\core\joblib\SubprocessGenerator.py", line 54, in process_func
    gen_data = next (self.generator_func)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleGeneratorFace.py", line 136, in batch_func
    raise Exception ("Exception occured in sample %s. Error: %s" % (sample.filename, traceback.format_exc() ) )
Exception: Exception occured in sample 03626.jpg. Error: Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleGeneratorFace.py", line 134, in batch_func
    x, = SampleProcessor.process ([sample], self.sample_process_options, self.output_sample_types, self.debug, ct_sample=ct_sample)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleProcessor.py", line 206, in process
    img = np.clip(img.astype(np.float32), 0, 1)
  File "<__array_function__ internals>", line 6, in clip
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\python-3.6.8\lib\site-packages\numpy\core\fromnumeric.py", line 2097, in clip
    return _wrapfunc(a, 'clip', a_min, a_max, out=out, **kwargs)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\python-3.6.8\lib\site-packages\numpy\core\fromnumeric.py", line 58, in _wrapfunc
    return bound(*args, **kwds)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\python-3.6.8\lib\site-packages\numpy\core\_methods.py", line 141, in _clip
    um.clip, a, min, max, out=out, casting=casting, **kwargs)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\python-3.6.8\lib\site-packages\numpy\core\_methods.py", line 94, in _clip_dep_invoke_with_casting
    return ufunc(*args, out=out, **kwargs)
MemoryError: Unable to allocate 1.98 MiB for an array with shape (416, 416, 3) and data type float32

Process Process-38:][0906ms][0.3878][0.4304]
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleGeneratorFace.py", line 134, in batch_func
    x, = SampleProcessor.process ([sample], self.sample_process_options, self.output_sample_types, self.debug, ct_sample=ct_sample)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleProcessor.py", line 113, in process
    warp_rnd_state=warp_rnd_state,
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\core\imagelib\warp.py", line 132, in gen_warp_params
    mapx = cv2.resize(mapx, (w+cell_size,)*2 )[half_cell_size:-half_cell_size,half_cell_size:-half_cell_size].astype(np.float32)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\core\src\alloc.cpp:55: error: (-4:Insufficient memory) Failed to allocate 3115008 bytes in function 'cv::OutOfMemoryError'


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "multiprocessing\process.py", line 258, in _bootstrap
  File "multiprocessing\process.py", line 93, in run
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\core\joblib\SubprocessGenerator.py", line 54, in process_func
    gen_data = next (self.generator_func)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleGeneratorFace.py", line 136, in batch_func
    raise Exception ("Exception occured in sample %s. Error: %s" % (sample.filename, traceback.format_exc() ) )
Exception: Exception occured in sample 16674.jpg. Error: Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleGeneratorFace.py", line 134, in batch_func
    x, = SampleProcessor.process ([sample], self.sample_process_options, self.output_sample_types, self.debug, ct_sample=ct_sample)
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\samplelib\SampleProcessor.py", line 113, in process
    warp_rnd_state=warp_rnd_state,
  File "C:\Users\Administrator\Desktop\DeepFaceLa\_internal\DeepFaceLab\core\imagelib\warp.py", line 132, in gen_warp_params
    mapx = cv2.resize(mapx, (w+cell_size,)*2 )[half_cell_size:-half_cell_size,half_cell_size:-half_cell_size].astype(np.float32)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\core\src\alloc.cpp:55: error: (-4:Insufficient memory) Failed to allocate 3115008 bytes in function 'cv::OutOfMemoryError'

有大神解答下么

回复

使用道具 举报

0

主题

66

帖子

3382

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
3382

万事如意节日勋章

发表于 3 小时前 | 显示全部楼层
OutOfMemoryError = OOM = 爆显存/虚拟内存
回复 支持 反对

使用道具 举报

QQ|Archiver|手机版|deepfacelab中文网 |网站地图

GMT+8, 2026-6-23 16:25 , Processed in 0.103976 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表