理解Keras的ImageDataGenerator中的'follow_links'参数吗? [英] Understanding 'follow_links' argument in Keras's ImageDataGenerator?
问题描述
Keras文档说
'follow_links:是否遵循类子目录内的符号链接 (默认值:False)'
'follow_links: Whether to follow symlinks inside class subdirectories (default: False)'
,但是此参数的确切作用是什么?
, but what is the exact role of this argument?
推荐答案
符号链接用于链接文件或目录.例如,当您安装了多个版本时,您有一个符号链接,它指向任何已安装的python.exe版本(或任何其他文件或目录)的最新版本.
Symlinks are used to link a file or directory. For example you have a symlink, which points to the latest version of any installed version of python.exe (or any other file or directory), while you have multiple version installed.
遵循此符号链接的意思是,您不会将符号链接视为符号链接,而是可以解析它指向的目标文件/目录.在python示例中,您将打开最新的python控制台.在keras示例中,keras还将符号链接视为图像输入数据.如果您的数据目录中没有符号链接,可以将其设为False.
Following this symlink meens you don´t see the symlink as a symlink, but resolve the target file/directory, where it points to. In the python example you would open the latest python console. In the keras example keras would also consider symlinks as image input data. A long you don´t have symlinks in your data directory, you can just let it be False.
请参见 https://en.wikipedia.org/wiki/Symbolic_link
这篇关于理解Keras的ImageDataGenerator中的'follow_links'参数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!