웹 시프_model_20241120
2024.11.20 14:23
https://drive.google.com/file/d/1PgvjpEId1mlX7i4MqNfsJeoiB1rJfxJ3/view?usp=drive_link
https://drive.google.com/file/d/16nCigXxDjH7KKyZxJ-KvE-Zlv79ZO-mz/view?usp=drive_link
https://drive.google.com/file/d/1mLB3UZ0hgVPXguPRedHtb1UWAy2nlUyF/view?usp=drive_link
!gdown https://drive.google.com/uc?id=1PgvjpEId1mlX7i4MqNfsJeoiB1rJfxJ3 -O ./models/colorization_release_v2.caffemodel
## 모델 로드
import cv2
import numpy as np
import matplotlib.pyplot as plt
proto = './models/colorization_deploy_v2.prototxt'
weight = './models/colorization_release_v2.caffemodel'
pts_in_hull = np.load('./models/pts_in_hull.npy')
pts_in_hull = pts_in_hull.transpose().reshape(2, 313, 1, 1).astype(np.float32)
net = cv2.dnn.readNetFromCaffe(proto, weight)
net.getLayer(net.getLayerId('class8_ab')).blobs = [pts_in_hull]
net.getLayer(net.getLayerId('conv8_313_rh')).blobs = [np.full((1,313), 2.606, np.float32)]
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
» | 웹 시프_model_20241120 | setUID | 2024.11.20 | 26 |
4 | 웹시스템프로그래밍_word embedding | setUID | 2024.11.06 | 41 |
3 | 시스템 프로그래밍 1차 과제 | setUID | 2024.10.04 | 237 |
2 | minecraft assets | setUID | 2024.10.02 | 79 |
1 | 2주차 시스템 프로그래밍 | setUID | 2024.09.13 | 234 |