Recent Posts
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Meta Learning
- Torch
- web
- pytorch
- Python
- nerf
- 알고리즘
- 자료구조
- PRML
- computervision
- dl
- 딥러닝
- nlp
- FGVC
- clean code
- Vision
- 머신러닝
- math
- SSL
- REACT
- FineGrained
- classification
- CV
- GAN
- 3d
- ML
- Front
- algorithm
- cs
- Depth estimation
- Today
- Total
KalelPark's LAB
[CODE] ZipFile 편리하게 다루는 방법 본문

파일 Zip 편리하게 해제하기
import os
import zipfile
from tqdm import tqdm
all_file = os.listdir("ktti_zips/")
pbar = tqdm(all_file, total = len(all_file), desc = "Unzip..", ncols = 100, ascii = " -", leave = True)
for filed in pbar:
if filed[-4:] == ".zip":
zip_file = zipfile.ZipFile(os.path.join("ktti_zips", filed))
zip_file.extractall("data/")
Reference
https://code.tutsplus.com/ko/tutorials/compressing-and-extracting-files-in-python--cms-26816
파이썬에서 파일 압축 및 압축 해제하기
컴퓨터를 한동안 사용해 왔다면 확장자가 .zip인 파일을 본 적이 있을 것입니다. 이 파일은 다른 여러 파일과 폴더, 하위 폴더를 압축한 내용을 담을 수 있는 특별한 파일입니다. 이 경우 인터넷
code.tutsplus.com
'Data Science > CODE' 카테고리의 다른 글
[ Computer Vision ] MaskedAutoencoder overall CODE (0) | 2023.05.14 |
---|---|
[ Computer Vision ] Real-Time Depth Estimation CODE (2) | 2023.05.01 |
[CODE] Attention Convd 구현 (1) | 2023.04.13 |
[CODE] Masking imaging 코드 구현 (0) | 2023.03.29 |
[CODE] Profile 팁 및 라이브러리 소개 및 logging 추천 (0) | 2023.03.26 |
Comments