computer vision/dna_study
이미지 디렉토리 관리
dohunNewte
2023. 3. 16. 17:02
반응형
GitHub - dohun-mat/dna_study_semina
Contribute to dohun-mat/dna_study_semina development by creating an account on GitHub.
github.com
자세한코드는 깃헙참고
init으로 나의 현재 디렉토리의 경로를 준다.
디렉토리 생성
train파일안에 각class의 파일이 생긴다.
만들어둔 각 file안으로 각이미지를 train, valid, test를 7:2:1의 비율로해서 옮겨준다.
run함수
mk_dir함수와 move_img함수를 실행시켜준다.
checking_dirs함수
잘옮겨졌는지 확인해주는함수
여기까지 실행시키면 각file별로 이미지들이 잘 옮겨진다.
728x90