使用 Python 和 PIL 实现图片合并 本文记录了一次使用 Python 和 Pillow 库实现图片批量合并并添加标题的实践过程。目的是将一个文件夹内的多张图片,按照指定的布局合并为单张图片,并在每张图片下方添加标题文字。 需求概述 需要实现以下功能: 批量图片处理:处理指定文件夹内的所有图片文件。 自定义布局:设定合并图片的行数和列数 2025-04-11 Python
WSL2 安装 Tensorflow 假设我们要安装新版的TensorFlow,但自从2.10版本后就不再支持Windows端的GPU加速了,所以最好的解决办法是使用WSL2。 目标:在WSL2上安装TensorFlow 2.19.0 并配置GPU加速 安装 WSL2 这个很简单 2025-03-19 折腾
检测 TensorFlow 是否调用 GPU import tensorflow as tf if tf.config.list_physical_devices("GPU"): print("TensorFlow is using the GPU") else: print("TensorFlow is using the 2025-03-19 Python