Tools
Tools
GitHub 世界上最大的代码托管平台(eebyp)。Git的主要功能就是版本管理(控制)(Windows:官网安装|GitHub)。
Anaconda是一个打包的集合,包了conda、某个版本的python、packages、工具等。而MiniConda,只包含了最基本的python和conda,其他库要自己安装。Anaconda包含了上千个库,空间占用很大,而Miniconda只有1G左右,两者操作没有区别。
为了避免出现问题,一般建议先安装Anaconda,再安装Pycharm。在安装Anaconda的过程中,会询问是否要安装Pycharm。
PyautoGui 控制和获取屏幕、鼠标、键盘信息(介绍1|2),并能做一些图片识别(自动点赞)。
# 图像识别(一个)
btm = pyautogui.locateOnScreen('zan.png')
print(btm) # Box(left=1280, top=344, width=22, height=22)
# 图像识别(多个)
btm = pyautogui.locateAllOnScreen('zan.png')
PIL
PythonWare 公司提供了免费的图像处理工具包 PIL (Python Image Library), 该软件包提供了基本的图像处理功能,如:改变图像大小,旋转图像,图像格式转换,色场空间转换,图像增强,直方图处理,插值和滤波等等。虽然在这个软件包上要实现类似 MATLAB 中的复杂的图像处理算法并不太适合,但是 Python 的快速开发能力以及面向对象等等诸多特点使得它非常适合用来进行原型开发。
官网:The world’s largest Computer Vision library meets the world’s top-rated Face Recognition technology.
飞浆教程|
TensorFlow
cudart64_110.dll
2022-11-16 11:58:13.190848: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2022-11-16 11:58:13.191271: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
解决办法:下载cudart64_110.dll 文件,官方下载地,: (参考)。解压会出现如下文件:cudart64_110.dll,把cudart64_110.dll复制粘贴到C:WindowsSystem32里即可。
2022-11-16 14:59:25.941400: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found
2022-11-16 14:59:25.941805: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
2022-11-16 14:59:25.949673: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: Byp02
2022-11-16 14:59:25.950255: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: Byp02
2022-11-16 14:59:25.950798: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
Downloading data from https://storage.googleapis.com/tensorflow/keras-applications/vgg16/vgg16_weights_tf_dim_ordering_tf_kernels.h5
553467096/553467096 [==============================] - 106s 0us/step
-----
1/1 [==============================] - 1s 506ms/step
Downloading data from https://storage.googleapis.com/download.tensorflow.org/data/imagenet_class_index.json
35363/35363 [==============================] - 0s 3us/step
1/1 [==============================] - 0s 304ms/step
1/1 [==============================] - 0s 305ms/step
1/1 [==============================] - 0s 310ms/step
1/1 [==============================] - 0s 298ms/step
1/1 [==============================] - 0s 279ms/step
1/1 [==============================] - 0s 262ms/step
预测结果是 tiger,预测概率为 56.40 %
预测结果是 tiger,预测概率为 76.31 %
预测结果是 tiger,预测概率为 83.56 %
预测结果是 Egyptian_cat,预测概率为 21.53 %
预测结果是 lynx,预测概率为 69.33 %
预测结果是 golden_retriever,预测概率为 92.49 %
预测结果是 golden_retriever,预测概率为 93.86 %
DeepMind 早在 2016 年 5 月宣布,更换他们使用的开源机器学习平台,从 Torch 转用 TensorFlow。可以说,那两只 AlphaGo 和 AlphaGo Zero,以及更多 Google 发布的人工智能,最后都是在 TensorFlow 上「养成」的。