deepfacelab中文网

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

colab导入模型后,就出错。哪里出问题了

[复制链接]

34

主题

639

帖子

4090

积分

高级丹圣

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

积分
4090

万事如意节日勋章开心娱乐节日勋章

 楼主| 发表于 2024-2-14 22:11:51 | 显示全部楼层 |阅读模式
星级打分
  • 1
  • 2
  • 3
  • 4
  • 5
平均分:NAN  参与人数:0  我的评分:未评
本帖最后由 WaveBedo 于 2024-2-14 22:19 编辑

捕获00326.PNG
两天前是可以正常训练的
是哪里出问题了,怎么解决?
有经验的坛友,有空指导一下啊



/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab
Running trainer.


Choose one of saved models, or enter a name to create a new model.
[r] : rename
[d] : delete


[0] : LY-256-WF-DFUD - latest
[1] : ZIBI06-1msj2
: 0
0
Loading LY-256-WF-DFUD_SAEHD model...
Initializing models: 100% 5/5 [00:38<00:00,  7.74s/it]
Loaded 5115 packed faces from /content/drive/MyDrive/DeepFaceLab/workspace/data_src/aligned
Sort by yaw: 100% 128/128 [00:00<00:00, 623.13it/s]
Loaded 4335 packed faces from /content/drive/MyDrive/DeepFaceLab/workspace/data_dst/aligned
Sort by yaw: 100% 128/128 [00:00<00:00, 742.97it/s]
Process Process-3:
Traceback (most recent call last):
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/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 "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/samplelib/SampleProcessor.py", line 147, in process
    img = get_eyes_mouth_mask()*mask
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/samplelib/SampleProcessor.py", line 76, in get_eyes_mouth_mask
    eyes_mask = LandmarksProcessor.get_image_eye_mask (sample_bgr.shape, sample_landmarks)
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/facelib/LandmarksProcessor.py", line 421, in get_image_eye_mask
    image_landmarks = image_landmarks.astype(np.int)
  File "/usr/local/lib/python3.10/dist-packages/numpy/__init__.py", line 319, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations


During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/core/joblib/SubprocessGenerator.py", line 54, in process_func
    gen_data = next (self.generator_func)
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/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 longde (240).jpg. Error: Traceback (most recent call last):
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/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 "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/samplelib/SampleProcessor.py", line 147, in process
    img = get_eyes_mouth_mask()*mask
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/samplelib/SampleProcessor.py", line 76, in get_eyes_mouth_mask
    eyes_mask = LandmarksProcessor.get_image_eye_mask (sample_bgr.shape, sample_landmarks)
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/facelib/LandmarksProcessor.py", line 421, in get_image_eye_mask
    image_landmarks = image_landmarks.astype(np.int)
  File "/usr/local/lib/python3.10/dist-packages/numpy/__init__.py", line 319, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations


Process Process-4:
Traceback (most recent call last):
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/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 "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/samplelib/SampleProcessor.py", line 147, in process
    img = get_eyes_mouth_mask()*mask
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/samplelib/SampleProcessor.py", line 76, in get_eyes_mouth_mask
    eyes_mask = LandmarksProcessor.get_image_eye_mask (sample_bgr.shape, sample_landmarks)
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/facelib/LandmarksProcessor.py", line 421, in get_image_eye_mask
    image_landmarks = image_landmarks.astype(np.int)
  File "/usr/local/lib/python3.10/dist-packages/numpy/__init__.py", line 319, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations


During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/core/joblib/SubprocessGenerator.py", line 54, in process_func
    gen_data = next (self.generator_func)
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/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 002 (171).jpg. Error: Traceback (most recent call last):
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/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 "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/samplelib/SampleProcessor.py", line 147, in process
    img = get_eyes_mouth_mask()*mask
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/samplelib/SampleProcessor.py", line 76, in get_eyes_mouth_mask
    eyes_mask = LandmarksProcessor.get_image_eye_mask (sample_bgr.shape, sample_landmarks)
  File "/content/drive/MyDrive/DeepFaceLab/DeepFaceLab_Colab/facelib/LandmarksProcessor.py", line 421, in get_image_eye_mask
    image_landmarks = image_landmarks.astype(np.int)
  File "/usr/local/lib/python3.10/dist-packages/numpy/__init__.py", line 319, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations


Traceback (most recent call last):


Exception ignored in: <module 'threading' from '/usr/lib/python3.10/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1567, in _shutdown
/usr/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 31 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '
^C

回复

使用道具 举报

9

主题

1931

帖子

1万

积分

高级丹圣

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

积分
10696

真我风采勋章万事如意节日勋章

发表于 2024-2-15 11:13:16 | 显示全部楼层
头几天能用,现在不能用,中间如果没更改过任何代码的话,大概率是你模型坏掉了。找备份再尝试下吧。
回复 支持 反对

使用道具 举报

0

主题

96

帖子

2778

积分

初级丹圣

Rank: 8Rank: 8

积分
2778
发表于 2024-2-15 22:54:17 | 显示全部楼层
大概是python的库有改动所以出错

评分

参与人数 1贡献 +1 收起 理由
WaveBedo + 1 感谢提醒

查看全部评分

回复 支持 反对

使用道具 举报

34

主题

639

帖子

4090

积分

高级丹圣

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

积分
4090

万事如意节日勋章开心娱乐节日勋章

 楼主| 发表于 2024-2-17 08:24:20 | 显示全部楼层
本帖最后由 WaveBedo 于 2024-2-17 08:33 编辑
youxia 发表于 2024-2-15 22:54
大概是python的库有改动所以出错

有人说
在 Colab 的“安装 DeepFaceLab”单元中添加了以下行
!python -m pip install numpy==1.23.5
我搞不清楚他说的是哪里,
你知道他说的是在哪里添加吗?

捕获00329.PNG
https://mrdeepfakes.com/forums/t ... -guide.1340/page-54
捕获00328.PNG
我改了安装文件夹里的requirements-colab跟requirements_colab里的参数,但没有用
捕获00330.PNG
捕获00331.PNG
回复 支持 反对

使用道具 举报

34

主题

639

帖子

4090

积分

高级丹圣

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

积分
4090

万事如意节日勋章开心娱乐节日勋章

 楼主| 发表于 2024-2-17 08:31:10 | 显示全部楼层
wtxx8888 发表于 2024-2-15 11:13
头几天能用,现在不能用,中间如果没更改过任何代码的话,大概率是你模型坏掉了。找备份再尝试下吧。 ...

用其他模型测试过,会出现同样的问题,
网上也有其他人反映同样的问题
https://mrdeepfakes.com/forums/t ... -guide.1340/page-54
回复 支持 反对

使用道具 举报

0

主题

96

帖子

2778

积分

初级丹圣

Rank: 8Rank: 8

积分
2778
发表于 2024-2-17 09:49:47 | 显示全部楼层
WaveBedo 发表于 2024-2-17 08:24
有人说
在 Colab 的“安装 DeepFaceLab”单元中添加了以下行
!python -m pip install numpy==1.23.5

在这个下面插入代码单元格把!python -m pip install numpy==1.23.5粘上去,安装了依赖后再运行这个单元格

评分

参与人数 1贡献 +1 收起 理由
WaveBedo + 1 祝老哥身体健康,万事兴龙,称心如意!.

查看全部评分

回复 支持 反对

使用道具 举报

34

主题

639

帖子

4090

积分

高级丹圣

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

积分
4090

万事如意节日勋章开心娱乐节日勋章

 楼主| 发表于 2024-2-17 20:55:16 | 显示全部楼层
youxia 发表于 2024-2-17 09:49
在这个下面插入代码单元格把!python -m pip install numpy==1.23.5粘上去,安装了依赖后再运行这个单元格 ...

非常感谢,我被这个问题拦住了4天,
你帮了很大的忙!
回复 支持 反对

使用道具 举报

0

主题

2

帖子

232

积分

初级丹师

Rank: 3Rank: 3

积分
232
发表于 2024-3-17 03:37:24 | 显示全部楼层
WaveBedo 发表于 2024-2-17 20:55
非常感谢,我被这个问题拦住了4天,
你帮了很大的忙!

您好,我也遇到同样的问题,可是我在安装软件环境后 再次运行
!python -m pip install numpy==1.23.5  此命令行
如图报错,

1.png
2.png
回复 支持 反对

使用道具 举报

34

主题

639

帖子

4090

积分

高级丹圣

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

积分
4090

万事如意节日勋章开心娱乐节日勋章

 楼主| 发表于 2024-3-17 16:01:42 | 显示全部楼层
本帖最后由 WaveBedo 于 2024-3-17 16:05 编辑
为所欲为 发表于 2024-3-17 03:37
您好,我也遇到同样的问题,可是我在安装软件环境后 再次运行
!python -m pip install numpy==1.23.5  此 ...

托尼应该已经将这句加进去了,不用另外再运行!python -m pip install numpy==1.23.5
如果不行的话,那就只能等其他办法了。或者直接找托尼
https://github.com/dream80/DeepF ... eLab_Colab_V5.ipynb
我已经不用colab了,太麻烦了
回复 支持 反对

使用道具 举报

9

主题

91

帖子

1970

积分

初级丹圣

Rank: 8Rank: 8

积分
1970
发表于 2024-4-12 18:38:24 | 显示全部楼层
WaveBedo 发表于 2024-3-17 16:01
托尼应该已经将这句加进去了,不用另外再运行!python -m pip install numpy==1.23.5
如果不行的话,那就只 ...

你现在还在云平台上面训练吗?
回复 支持 反对

使用道具 举报

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

GMT+8, 2024-5-19 00:20 , Processed in 0.102469 second(s), 12 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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