tensorflow - 如何在 google colab 中解压缩文件夹?

标签 tensorflow google-colaboratory

我正在尝试在 Colab 中进行图像分类任务,但从 kaggle 导入数据集后,数据采用 zip 格式。解压缩后,数据集不提供文件夹,而是提供图像列表。我怎样才能得到一个文件夹?

最佳答案

如果您使用的是 colab,则可以使用 !向内核发送 bash 命令。

这意味着新单元格中的类似内容应该可以解决问题:

!unzip my_data.zip -d my_data

关于tensorflow - 如何在 google colab 中解压缩文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56537863/

相关文章:

pytorch 代码在 colab 上与系统上的 NVIDIA 驱动程序突然失败太旧

python - matplotlib 绘图在 google colab 中不起作用

python - 精确模型在 keras-tf 上收敛,但在 keras 上不收敛

amazon-web-services - 适用于tensorflow和pymysql的Sagemaker内核

python - 如何将 tfrecord 数据读入张量/numpy 数组?

谷歌colab上的pytorch几何 "Detected that PyTorch and torch_sparse were compiled with different CUDA versions"

google-colaboratory - 卡在数据实验室目录中,无法导航到我想要的目录

jupyter-notebook - 如何在 Colab 上创建非 root 帐户?

python - model.fit() Keras 分类多输入-单输出给出错误 : AttributeError: 'NoneType' object has no attribute 'fit'

python - 训练神经网络,我无法弄清楚我的学习曲线