Skip to content

Instantly share code, notes, and snippets.

View khunfloat's full-sized avatar
🐳
chilling

Chayoot Kosiwanich khunfloat

🐳
chilling
  • Chulalongkorn University
  • Bangkok, Thailand
View GitHub Profile
from os import listdir
from pathlib import Path
from PIL import Image
root_dir = Path('images_xray', 'images')
covid_train_dir = Path(root_dir, 'train', 'covid')
noncovid_train_dir = Path(root_dir, 'train', 'noncovid')
covid_test_dir = Path(root_dir, 'test', 'covid')