当前位置:网站首页>Using keras to visualize the network model, failed to import pydot appears
Using keras to visualize the network model, failed to import pydot appears
2022-07-28 14:55:00 【javafalcon】
One 、 For installation graphviz、pydot、pygraphviz
1. Install first graphviz
pip install graphviz
After installation bin Add environment variable path Inside
2. install pydot or pydot-ng
Use pip Install it on the command line .
3. install pygraphviz
3.1 Download... On the official website pygraphviz-1.5.zip
3.2 Unzip to pygraphviz-1.5 Under the path , And then modify setup.py Of 57、58 Two lines , Such as :
include_dirs=['C:\\Program Files (x86)\\Graphviz2.38\\include'],
library_dirs=['C:\\Program Files (x86)\\Graphviz2.38\lib'],
3.3 stay pygraphviz-1.5 Under the table of contents , Run on command line
pip setup.py install
There is no visual c++ 14.0, So you can't compile , I choose a lazy way , Direct download whl file , Download address :
https://github.com/CristiFati/Prebuilt-Binaries/tree/master/PyGraphviz/v1.5/Graphviz-2.42.2
download pygraphviz-1.5-cp37-cp37m-win_amd64.whl after , Use... On the command line pip The command can be installed directly
Two 、 Use
After installation , Use the following :
from tensorflow.keras.utils import plot_model
plot_model(model, to_file='filename.png')
边栏推荐
- Afnetworking crash course
- VTK vtkcontourwidget extracts regions of interest
- Brief introduction of diversity technology
- [leetcode] sticker spelling (dynamic planning)
- 8、 Picker usage drop-down box selection effect
- MITK create module
- Focus on differentiated product design, intelligent technology efficiency improvement and literacy education around new citizen Finance
- SwiftUI 布局 —— 尺寸( 下 )
- Multi merchant mall system function disassembly lecture 17 - platform side order list
- Product Manager
猜你喜欢

Raspberry pie foundation | summarize and record some operations in the learning process of raspberry pie

35道MySQL面试必问题图解,这样也太好理解了吧

Thoughts on the construction of some enterprise data platforms

VTK notes - picker picker summary

Digital transformation security issues occur frequently, and Shanshi Netcom helps build a digital government

BGP experiment

MQTT入门级简单介绍与使用

Many "double first-class" universities have launched the research guarantee and prediction name!

How to reduce the resolution of only 3D camera but not UI camera

九、uni-popup用法 下拉框底部弹窗效果
随机推荐
Penguin side: why not recommend using select *?
2022 high altitude installation, maintenance, removal of examination question bank and online simulated examination
QT environment cannot run error set
17、 Solutions to duplicate names of ROS function packages and nodes
How long can we "eat" the dividends of domestic databases?
Store and guarantee rancher data based on Minio objects
Crawler: from entry to imprisonment (II) -- Web collector
Redis-持久化
How many ways can multithread run in sequence?
[Tanabata] Tanabata lonely little frog research edition? The final chapter of Tanabata Festival!
35道MySQL面试必问题图解,这样也太好理解了吧
【七夕】七夕孤寡小青蛙究极版?七夕节最终章!
面试官:ThreadLocal使用场景有哪些?内存泄露问题如何避免?
MQTT入门级简单介绍与使用
I am using a blog creation tool
The second pre class exercise
基于 MinIO 对象存储保障 Rancher 数据
It's so hot that solar power can't take off? Hello, head
QT hex, decimal, qbytearray, qstring data conversion
SwiftUI 布局 —— 对齐