목록python (11)
IT_World
파이썬에서 고언어로 변경할 때 사용되는 함수들 python golang 뜻 os.getcwd() os.Getwd() 현재 커서가 위치해 있는 디렉터리 알려줌 for alphabet in alphabetList : for _, alphabet := range alphabetList { alphabetList에서 alphabet 하나씩 꺼내줌 re.sub(원본바꿀단어, 새로운단어 ,원본문자) strings.Replace(문장, 원본단어 , 새 단어 , -1) strings.Replace(문장, 원본단어 , 새 단어 , 1) 문자열 치환 (문자열 변경) -1은 모든 문장 name.strip() strings.Trim(name, " ") 맨 앞 맨 뒤 name공백 제거 ex ) name = " abcde " -..
[문제] 신규 유저가 입력한 아이디를 나타내는 new_id가 매개변수로 주어질 때, "네오"가 설계한 7단계의 처리 과정을 거친 후의 추천 아이디를 return 하도록 solution 함수를 완성해 주세요. [제한사항] new_id는 길이 1 이상 1,000 이하인 문자열입니다. new_id는 알파벳 대문자, 알파벳 소문자, 숫자, 특수문자로 구성되어 있습니다. new_id에 나타날 수 있는 특수문자는 -_.~!@#$%^&*()=+[{]}:?,/ 로 한정됩니다. [입출력 예] no new_id result 예1 "...!@BaT#*..y.abcdefghijklm" "bat.y.abcdefghi" 예2 "z-+.^." "z--" 예3 "=.=" "aaa" 예4 "123_.def" "123_.def" 예5 ..
시작하기에 앞서 Django로 웹사이트 만들기 포스트에서는 파이썬 기반의 프레임워크인 장고로 웹 백엔드를 설계하는 방법에 대해 소개하려 한다. 따라서 웹 백엔드 자체에 포커스를 두기 위해 프로그램 설치나 파이썬 언어에 대한 기본 설명은 최대한 생략하려 한다. 해당 내용은 다음 포스트에서 확인할 수 있다. 실습 환경 운영체제나 패키지 등 포스트의 실습 환경은 다음과 같다. Ubuntu 16.04 PyCharm Python Django 2.0.7 MariaDB 5.5 1. 프로젝트 생성 1) 프로젝트 생성 및 장고 설치 파이참에서 새 프로젝트 환경을 Django로 설정 후 원하는 위치의 프로젝트 루트 디렉토리 경로와 가상환경 경로를 설정 django_site라는 디렉토리가 두개 생성됨 1-1)상위 djang..

How to Visualize Filters and Feature Maps in Convolutional Neural Networks Deep learning neural networks are generally opaque, meaning that although they can make useful and skillful predictions, it is not […] machinelearningmastery.com [Deep learning]컨볼 루션 신경망에서 필터 및 기능 맵을 시각화하는 방법 -2- machinelearningmastery.com/how-to-visualize-filters-and-feature-maps-in-convolutional-neural-networks/ How to ..

machinelearningmastery.com/how-to-visualize-filters-and-feature-maps-in-convolutional-neural-networks/ How to Visualize Filters and Feature Maps in Convolutional Neural Networks Deep learning neural networks are generally opaque, meaning that although they can make useful and skillful predictions, it is not […] machinelearningmastery.com niniit.tistory.com/12 [Deep learning]컨볼 루션 신경망에서 필터 및 기능 맵..

machinelearningmastery.com/how-to-visualize-filters-and-feature-maps-in-convolutional-neural-networks/ How to Visualize Filters and Feature Maps in Convolutional Neural Networks Deep learning neural networks are generally opaque, meaning that although they can make useful and skillful predictions, it is not […] machinelearningmastery.com 블로그를 참조하여 컨볼 루션 신경망에서 특정 필터에 대한 시각화를 개발하는 방법 컨볼 루션 신경망에서 특..

열화상이 베이스로 자리 잡은 요즘 시대를 맞이해 vgg16 모델과 이 두 가지 코드를 참조하여 thermal face을 만들 것이다. 처음에는 tensorflow로 만들었는데 Tuning 하기 좋은 Torch로 변동해서 만들어봤다. github.com/pytorch/vision/blob/master/torchvision/models/vgg.py pytorch/vision Datasets, Transforms and Models specific to Computer Vision - pytorch/vision github.com github.com/raguilar-f/Thermal-Face-Recognition-Using-Convolutional-Neural-Networks-and-Transfer-Learn..

3 채널 컬러를 1 채널 흑백으로 만들 것이다. python tensorflow 로 만들 것이다. 이번 포스팅에서는 openCV 를 이용해서 만들 것이다. 1. cvtColor를 이용해서 1채널로 만들기 import cv2 from PIL import Image path = "/home/test.jpg" # 이미지 읽기 img_gray = cv2.imread("/home/save_directory/opencv_gary.jpg", cv2.IMREAD_COLOR) # 컬러 이미지를 그레이스케일로 변환 img_cv_gray = cv2.cvtColor(img_color, cv2.COLOR_BGR2GRAY) # 이미지 저장 cv2.imwrite(path, img_cv_gray) # 이미지 사이즈 변경 # img_..