전체 글
-
Model vs Estimator라이브러리/Tensorflow keras 2022. 1. 3. 17:01
Background The Estimators API was added to Tensorflow in Release 1.1, and provides a high-level abstraction over lower-level Tensorflow core operations. It works with an Estimator instance, which is TensorFlow's high-level representation of a complete model. Keras is similar to the Estimators API in that it abstracts deep learning model components such as layers, activation functions and optimiz..
-
Dockerfile 설정프로그래밍/Docker 2021. 12. 26. 00:07
항상 공식 문서를 참고하자. https://docs.docker.com/engine/reference/builder/ Dockerfile reference docs.docker.com ADD 빌드 컨텍스트나 원격 URL에서 이미지로 파일을 복사한다. 아카이브 파일이 로컬 경로에 추가되면 자동으로 파일이 풀어지게 된다. ADD에 의해서 지원되는 기능의 범위가 매우 크기 때문에 일반적으로 비교적 간단한 COPY 명령을 이용하여 빌드 컨텍스트에 있는 파일들과 디렉터리들을 복사하고 RUN 설정을 curl 또는 wget과 같이 이용하여 원격 자원-같은 설정 안에서 다운로드를 처리하고 삭제할 가능성이 있음-을 다운로드 하는 방법이 선호된다. CMD 컨테이너가 시작되는 시점에 해당 설정이 실행된다. ENTRYPOIN..
-
Conditional Random Field컴퓨터 비젼(Computer Vision) 2021. 12. 8. 17:36
CrfRnn Conditional Random Field(CRF, 조건부 무작위장) 이란.. 멀까요? https://viesure.io/improving-performance-of-image-segmentation-with-conditional-random-fields-crf/ viesure | Improving Performance of Image Segmentation with Conditional Random Fields (CRF) 14 May Improving Performance of Image Segmentation with Conditional Random Fields (CRF) Posted at 16:16h in Tech by ihorshylo In a modern world of theo..
-
정규 표현식프로그래밍/정규 표현식 2021. 12. 7. 19:28
re.search(r'[A-Za-z]{6}', cc_list) # cc_list = '''Ezra Koenig , Rostam Batmanglij , Chris Tomson , Bobbi Baio ''' import re 캐릭터 세트 선택적으로 일치할 수 있는 문자는 정규 표현식의 정의에서 대괄호로 묶어서 나타낸다. B 또는 R로 시작해서 obb가 이어지고 i 혹은 y로 끝나는 이름을 찾을 수 있다. re.search(r'[RB]obb[iy]', cc_list) # 콤마로 구분된 개별 문자를 입력하거나 범위를 사용할 수도 있다. A-Z는 대문자 모두를 포함하며, 0-9는 0에서 9까지의 모든 숫자를 포함한다. re.search(r'Chr[a-z][a-z]', cc_list) # 어떤 항목 뒤에 있는 ..
-
의용 영상에서의 히스토그램 균일화 (1)컴퓨터 비젼(Computer Vision) 2021. 11. 18. 10:37
영상에서 자주 발생하지 않는 그레이레벨들의 합과 전체적인 변환은 의용 영상에서는 중대한 문제가 도리 수 있다. 이 문제를 해결하기 위하여 히스토그램 균일화를 국부적으로 시도한 적이 있었고, 이것을 국부 영역 히스토그램 균일화(local-area histogram equalization)라고 한다.움직이는 사각형 윈도우 중앙에 있는 화소가 중심이 되어 화소들의 히스토그램이 처리되며, 처리가 모든 화소에 대하여 이뤄진다. 이러한 방법은 계산적 비용이 크며, 이동하는 윈도우의 인공적인 사각형 모양으로 인하여 아티팩트를 유발할 수도 있다. 적응적 국부영역 히스토그램 균일화(adaptive local area equalization)도 또한 사용되었으며, 여기서 특정 화소를 위한 윈도우가 특정한 모양이나 크기로 ..
-
Tensorflow_io로 dicom 데이터 다루기컴퓨터 비젼(Computer Vision) 2021. 8. 9. 23:48
pydicom라이브러리를 사용하지 않고 Dicom 파일을 읽고 시각화해보자. 사용 데이터: https://www.kaggle.com/c/rsna-miccai-brain-tumor-radiogenomic-classification/data 1. tensorflow-io 설치 !pip install -q tensorflow-io 2. 필수 라이브러리 호출 import matplotlib.pyplot as plt import numpy as np import tensorflow as tf import tensorflow_io as tfio import glob import os 3. 파일 읽어오기 train_dir = '../input/rsna-miccai-brain-tumor-radiogenomic-clas..