전체 글(13)
-
[Python] Numpy Load Data
# loadtxt string 입력 받기 np.loadtxt(path, dtype=str) # loadtxt 다른 데이터 입력 받기 np.loadtxt(path, delimiter=' ', usecols=[1,2,5,6])
2021.04.13 -
[Tensorflow] Restore partial weights (부분적으로 네트워크 불러오기)
# Function def get_variables_to_restore(variables, var_keep_dic): variables_to_restore = [] for v in variables: # one can do include or exclude operations here. if v.name.split(':')[0] in var_keep_dic: print("Variables restored: %s" % v.name) variables_to_restore.append(v) return variables_to_restore # get the checkpoint of the old-trained model ckpt = tf.train.get_checkpoint_state(dir_of_ckpt) ..
2021.04.09 -
Colab Tensorflow Cuda 버전 바꾸기
!wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb !dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb !apt-key add /var/cuda-repo-8-0-local-ga2/7fa2af80.pub !apt-get update !apt-get install cuda=8.0.61-1 !apt autoremove
2021.01.19 -
[논문 리뷰] Texture Mapping for 3D Reconstruction with RGB-D Sensor (CVPR 2018) 2020.11.01
-
[C++ Function] 3차원 Euclidean Distance Code
float euclidean(Point3D point1, Point3D point2) { Point3D tmp; float distance; tmp = point1 - point2; distance = powf(tmp[0], 2.0f) + powf(tmp[1], 2.0f) + powf(tmp[2], 2.0f); distance = sqrtf(distance); return distance; }
2020.09.02 -
[C++] Opencv의 모든 것 (설치경로, Mat, 픽셀 접근, 선 그리기)
Opencv 설치 페이지 https://opencv.org/ OpenCV About the author:Pau Rodríguez is a research scientist at Element AI, Montreal. He earned his Ph.D. opencv.org Releases에 들어가서 버전별로 받으면 된다. Windows의 경우 windows용으로 받으면 편리. 이후 설치하면 include, lib, dll이 생성되고 경로 설정해주면 된다. #include Mat 타입 생성 cv::Mat image; cv::Mat image(height, width, CV_8UC3); // height, width의 크기의 Color 이미지 생성 Mat 각 픽셀에 접근 for (int y = 0; y < h..
2020.08.30