Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protobuf not compatiable #1248

Open
350050183 opened this issue Apr 27, 2023 · 2 comments
Open

protobuf not compatiable #1248

350050183 opened this issue Apr 27, 2023 · 2 comments

Comments

@350050183
Copy link

macOS
python 3.10
pip 23.0.1

visualdl 2.5.0+ 需要protobuf>=3.20.3,但是paddlepaddle 2.4.2 需要 <= 3.20.0,会冲突.

@rainyfly
Copy link
Collaborator

要不降低一下visualdldl的版本吧,因为现在visualdl里面对于protobuf的版本就是为了支持paddlepaddle的升级,我理解paddlepaddle之后2.5的版本就是会>=3.20

@350050183
Copy link
Author

350050183 commented Apr 29, 2023

依赖问题就像俄罗斯套娃一样,一个接着一个。

降级了版本 pip install visualdl==2.4.2

可以运行,执行demo时,又提示numpy.float版本在1.20后废弃了,默认安装的numpy==1.24.3。

visualdl 2.4.2 还在使用numpy.float(代码在 base_compnent.py引用 labels.astype(np.float) )

好吧,降级numpy==1.19.5

结果build wheel编译不了...

setup.py:67: RuntimeWarning: NumPy 1.19.5 may not yet support Python 3.10.

哈哈。。。


Fine,查了一下 https://pypi.org/project/paddlepaddle/ 对各系统的支持,原来macOS才支持到python3.8

MacOS version 10.11/10.12/10.13/10.14 (64 bit) (not support GPU version yet)

Python version 2.7.15+/3.5.1+/3.6/3.7/3.8 (64 bit)

pip or pip3 version 9.0.1+ (64 bit)


然后,有依赖cv2,也没有放到依赖定义里。

File "/xxx/lib/python3.8/site-packages/visualdl/utils/img_util.py", line 81, in merge_images
import cv2
ModuleNotFoundError: No module named 'cv2'


有些兼容的依赖不管了,只要能运行,带病上阵跑通了。

[validation]After epoch 8: accuracy/loss: 0.9789999723434448/0.0741102322936058
epoch: 9, batch: 0, loss is: [0.30198297]
epoch: 9, batch: 200, loss is: [0.00953341]
epoch: 9, batch: 400, loss is: [0.13935366]
epoch: 9, batch: 600, loss is: [0.03519356]
epoch: 9, batch: 800, loss is: [0.31002262]
epoch: 9, batch: 1000, loss is: [0.13624737]
epoch: 9, batch: 1200, loss is: [0.11106298]
epoch: 9, batch: 1400, loss is: [0.01193419]
epoch: 9, batch: 1600, loss is: [0.0177941]
epoch: 9, batch: 1800, loss is: [0.15403453]
epoch: 9, batch: 2000, loss is: [0.26570588]
epoch: 9, batch: 2200, loss is: [0.04749862]
epoch: 9, batch: 2400, loss is: [0.16404185]
epoch: 9, batch: 2600, loss is: [0.01320071]
epoch: 9, batch: 2800, loss is: [0.03590102]
epoch: 9, batch: 3000, loss is: [0.01216479]
epoch: 9, batch: 3200, loss is: [0.09615429]
epoch: 9, batch: 3400, loss is: [0.05989292]
epoch: 9, batch: 3600, loss is: [0.24041927]
[validation]After epoch 9: accuracy/loss: 0.9783999919891357/0.07142657041549683

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants