Giter Club home page Giter Club logo

Comments (2)

rainyfly avatar rainyfly commented on May 24, 2024

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

from visualdl.

350050183 avatar 350050183 commented on May 24, 2024

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

降级了版本 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

from visualdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.