mystudynote

  • 홈
  • 태그
  • 방명록
  • 글쓰기

Deeplearning 2

[Nvidia 강의정리] CNN 레이어, Data augmentation 데이터 증강

Creating a Convolutional Model (CNN) CNN의 각 레이어들을 간단하게 알아보자. Conv2D, MaxPool, Dropout, Batchnorm, Dense, Flatten from tensorflow.keras.models import Sequential from tensorflow.keras.layers import ( Dense, Conv2D, MaxPool2D, Flatten, Dropout, BatchNormalization, ) model = Sequential() model.add(Conv2D(75, (3, 3), strides=1, padding="same", activation="relu", input_shape=(28, 28, 1))) model.add(Ba..

DeepLearning 2022.04.12

[python] Iterator slicing

Iterator class의 객체를 슬라이싱 하는 방법을 알아보자! Iterator를 사용함으로서 모든 요소를 저장할 필요가 없어 CPU 메모리를 절약할 수 있고, 코드를 깔끔하게 만들 수 있다. 자세한 설명은 위 사진 source 링크 참조 딥러닝 사용 예: Autoencoder에서 encoder부분만 필요해서, 학습된 모델에서 encoder부분 parameter만 뽑아내고 싶다. 이 때 파라미터들은 loaded_model.parameters() 에 저장되어 있는데, parameters()는 iterator 형식이다. 즉, for문을 통해 각 객체에 접근할 수 있는 type이다. 따라서 encoder 부분만 slicing하기 위해서는, 먼저 itertools 모듈을 import해야 한다. import ..

python 2021.12.24
이전
1
다음
더보기
  • 분류 전체보기 (130)
    • DeepLearning (32)
    • Web: html ccs javascript re.. (16)
    • git (8)
    • python (24)
    • 코딩놀이: python C C++ (28)
    • Linux, etc (13)
    • 이것저것 공부 (9)

Tag

python, lv3, GIT, Deeplearning, latex, PyCharm, classifier, posterior, 프로그래머스, rmdir, Naive Bayes, augmentation, overleaf, 리액트, React, gitignore, 백준, Bayes Theorem, argparse, DateTime,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바