Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道在caffe中使用的 lmdb 文件是否比包含原始图像的文件大得多是有原因的。你能给我一个解释吗?
对于这样一个抽象的问题,很难给出具体的答案,但我会试一试: 图像文件通常是压缩的:a .pngor .jpgof size hby wby由于压缩,3占用的磁盘空间比字节少得多。h*w*3另一方面,要在神经网络(或任何其他 ML 软件)中处理图像,您需要使用图像的未压缩表示。因此,lmdbcaffe使用的数据集以未压缩的方式存储输入图像,leveldb每个像素使用 32 位浮点数(而不是),因此文件大小急剧增加。hdf5uint8
.png
.jpg
h
w
3
h*w*3
lmdb
leveldb
hdf5
uint8