[python] 파일 옮기기
·
개발세상
import shutilpath = os.path.join(os.getcwd(), '[원래 있던 파일 경로')path2 = os.path.join(os.getcwd(), '옮기고 싶은 파일 경로')print(path)img_list = os.listdir(path)for i in range(len(img_list)): path_img = os.path.join(path, img_list[i]) #path_img2 = os.path.join(path2) shutil.move(path_img, path2) 잘 들어왔나 확인path2 = os.path.join(os.getcwd(), '옮기고 싶은 파일 경로')print(len(os.listdir(path2))) 애초에 경로 설정을 잘하자.. !!unzip [..
[pytorch] mac 가상환경 만들기 및 opencv 설치방법
·
개발세상/pytorch
1. 터미널 켜기 2. 콘솔 창에 입력하기conda create -n 가상환경 이름 python == 버전 -y예 ) conda create -n image python==3.8 -y 3. 가상환경에 접속conda activate 가상환경 이름예 ) conda activate image 4. 패키지 설치하기- opencvpip install opencv-python - pytorchconda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cpuonly -c pytorch - scikit-learnpip install scikit-learn - pandaspip install pandas  -torchsummarypip install torchs..
[R] macOS R 시작하기
·
개발세상/R
https://www.r-project.org  R: The R Project for Statistical ComputingThe R Project for Statistical Computing Getting Started R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS. To download R, please choose your preferred CRAN mwww.r-project.org위 링크로 들어가서R을 다운 받습니다만약 다운로드를 눌렀는데 CRAN ~~ 이 나온다면한국 - 영남대..