CentOS生成CelebA-HQ数据集

正文

CelebA-HQ数据集是通过CelebA原始的未裁剪数据集生成的不同分辨率的版本。

数据集下载 Large-scale CelebFaces Attributes (CelebA) Dataset,注意要下载img_celeba.7z这个未裁剪的原始版本

数据集转化方式可以参考:CelebA-HQ的jpg格式版转化

  1. 下载img_celeba.7z,共计14个分卷压缩文件
  2. 解压文件,先合并文件再进行解压
    cat img_celeba.7z.0* > img_celeba.7z
    
    解压文件可以直接使用unzip,但我处理时遇到了一些问题,见后文。
  3. 下载CelebA_hq_deltas,Google Drive,百度云地址见下文。
  4. 下载celebA的人脸标注list_landmarks_celeba.txt,和数据集在同一文件夹中
  5. 图片生成脚本 willylulu/celeba-hq-modified 中的 h5tool.py

遇到的问题:

  1. 使用cat链接之后再centos下无法使用unzip解压,报错如下:
    Archive:  img_celeba.7z
      End-of-central-directory signature not found.  Either this file is not
      a zipfile, or it constitutes one disk of a multi-part archive.  In the
      latter case the central directory and zipfile comment will be found on
      the last disk(s) of this archive.
    unzip:  cannot find zipfile directory in one of img_celeba.7z or
    	img_celeba.7z.zip, and cannot find img_celeba.7z.ZIP, period.
    
    此时需要使用7za工具进行解压:
    sudo yum install -y p7zip
    7za x img_celeba.7z
    
  2. celeba-HQ deltas下载
    链接: https://pan.baidu.com/s/1NmhVaCmRNoBYtIxfxkpQ3g 
    提取码: bmxv
    
  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值