Pytorch Tensor 자료형을 .npy 로 저장하고, 불러오고, Tensor로 다시 변형하는 아래 과정을 모두 알아보자. Tensor -> numpy array -> np.save() -> .npy 파일 -> np.load() -> numpy array -> Tensor - Tensor를 numpy로 변형 # (3, 50, 50) 크기의 랜덤으로 초기화된 텐서 배열을 생성 a = torch.randn(3, 50, 50) ## a == torch.Size([3, 50, 50]) # Tensor -> numpy a_np = a.numpy() - 여기서 Tensor의 device type이 'cuda'라면 'cpu'로 바꿔주는 과정이 필요하다 b = torch.randn(3, 50, 50).to('cud..
locale.Error: unsupported locale setting Locale 설정이 제대로 되어있지 않아서 생기는 에러, 해결 방법은 간단하다. * locale.Error: unsupported locale setting 에러 해결 방법 ------------------------------------------------------------- (설정은 아래 두 방법을 해보면 아마 대부분 해결 될 것이다) 1) C는 default Language로 설정하는 방법 $ export LC_ALL=C 2) 1)로 해결이 안될 때, 직접 설정해준다. $ export LC_ALL="en_US.UTF-8" $ export LC_CTYPE="en_US.UTF-8" $ sudo dpkg-reconfigure ..

- git LFS 설치 최신버전의 git-lfs https://github.com/git-lfs/git-lfs/releases git-lfs/git-lfs Git extension for versioning large files. Contribute to git-lfs/git-lfs development by creating an account on GitHub. github.com 선택해서 그냥 다운받아도 되고 gui가 없는 서버의 경우 링크를 복사해서 확인한 후 아래와 같이 wget 명령어로 다운 받는다. $ wget https://github.com/git-lfs/git-lfs/releases/download/v2.10.0/git-lfs-linux-386-v2.10.0.tar.gz 압축 풀고 $ t..

100mb 이상의 파일을 디렉토리에 둔 채로 add를 하면 에러가 나면서 add를 못하게 되고, 파일을 지우고 다시 add commit 해도 해결되지 않아 취소가 불가피한 상황이 오게 된다. 100mb 이상의 파일을 git에 올리기 위해서는 Git LFS를 쓰면 된다. https://nuggy875.tistory.com/76 Git LFS를 사용하여 100mb 넘는 파일 git에 업로드하기 최신버전의 git-lfs https://github.com/git-lfs/git-lfs/releases git-lfs/git-lfs Git extension for versioning large files. Contribute to git-lfs/git-lfs development by creating an accou..

GUI를 쓰지 못하는 ubuntu 서버를 가지고 있는 경우 data를 받는 일이 굉장히 귀찮아진다.. 이때는 google drive에 data를 올려놓고 wget을 통해 다운받으면 쉽게 받을 수 있다. 1. 다운이 필요한 파일을 Google Drive에 올리고 공유 가능한 링크 가져오기를 누른다. 2. 공유 설정에 들어가서 회색 상자 (링크가 있는 어쩌구...)를 눌러 더보기...를 들어가서 사용 - 모든 웹사용자 를 통해 모든 사용자가 볼 수 있도록 바꾸자. (중요한 비밀 데이터라면 이 방법을 사용하지 말도록 하자) 3. 저장 하고 나왔을 때, /d/______/view?usp= 빨간색 부분이 이다. 저장해놓자. 4. 서버 터미널에 접속하여 아래와 같이 명령어를 입력하면 다운로드 완료! $ wget -..
- Total
- Today
- Yesterday
- vscode
- Novel View Synthesis
- git
- Android
- 2-stage Detector
- numpy
- MySQL
- Docker
- error
- 3Dvision
- pytorch
- SSH
- Object Detection
- GPU
- Macbook
- nerf
- CUDA
- GaussianSplatting
- java
- nvidia
- Deep Learning
- Machine Learning
- Neural Radiance Field
- ubuntu
- Computer Vision
- nginx
- Python
- Anaconda
- MacOS
- 우분투
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |