Skip to content

Instantly share code, notes, and snippets.

View rrryan2016's full-sized avatar

WENZHE LIU rrryan2016

  • Changsha, China
View GitHub Profile
@rrryan2016
rrryan2016 / decompress_feret.py
Created February 9, 2021 14:04
Decompress feret dataset, decompress .bz2 file in batch by python
import sys
import os
import bz2
from bz2 import decompress
set = 'dvd1' # switch in ['dvd1','dvd2'] to decompress different dataset
if set == 'dvd1':
path = '/data/amax/users/liuwenzhe/face/feret/colorferet/dvd1/data/images' # path of dataset in dvd1 to decompress
un_path = '/data/amax/users/liuwenzhe/face/feret/decompressed_colorferet/dvd1/data' # path of decompressed dvd1 data you intend to store