본문 바로가기

211003_AI_generate 본문

A/Software

211003_AI_generate

생름 2021. 10. 3. 03:31

GAN에 대해 하루종일(적어도 깨어있는 동안은) 많이 읽었더니 덤비기 무섭지 않다. 

https://ebbnflow.tistory.com/167

 

[GAN] 생성적 적대 신경망(GAN) 쉽게 알아보기

● GAN이란? G - Generative A - Adversarial N - Network GAN은 '생성적 적대 신경망'의 약자로 풀어서 쓰면, 생성자와 식별자가 서로 경쟁(Adversarial)하며 데이터를 생성(Generative)하는 모델(Network)을..

ebbnflow.tistory.com

여기 사이트에 설명이 그나마 이해하기 쉽다. 한국말로 개념을 바꾸어 이해를 해야, 영어로 이해가 더 잘된다. 이 단계를 거치지 않으면 한국어로 설명하기 어려워진다. (영어로는 과연 이해한 걸까?) 예전 해운사 가서 만난 네덜란드-미국인 친구에게 너는 어느나라 말로 생각하냐고 물었는데, 그 때 언어의 체계에 대해 조금 이해+안심이 되었다. 해당 언어를 쓸 때는 그 언어로 생각한단다. 나는 영어로 생각할 정도는 아닌 것 같다. 하지만 단어에 대해서는 영어와 한국어 둘다 애매하게 알고 있는 것 같아서,, 무언가를 배울 때는 둘다 알아두어야 한다고 생각한다. (영어 정보가 많을 때는 한국어로 읽어두어야 할 것 같은 강박이 있고,, 한국어 정보가 많을 때는 영어로 읽어두어야 미리 맛보기를 한 것 같은 자신감이 붙고.) 

 

*어떻게 resolution을 높이지?

*definition

-trucation : stemming, 버림또는 반올림: 유사한 정도를 표현하는건가 or 변주를 얼마나 할지 정하는건가

 

Big GAN

옥수수는 이상한 interporlation을 생성한다. 우리에게 익숙한 얼굴이 중간에 팝업처럼 튀어나와..
위젯을 이용해 키워드를 불러온다. 데려오는 이미지가 rnadom noise로 생성하는 것인지, 위젯에 저장되어있는 것인지 잘 모르겠다. random seed를 이용해 이미지를 조금 다르게 바꿀 수도 있다. 
모기장과 암탉. 형태를 비슷하게 믹스했다. 

생물과 무생물

 

Prog GAN(Progressive Growing)

-generate 20 samples "from random noise" 얼굴 이미지를 random noise로 어떻게 생성하는 거지? 

 

"Wait - we run the same code and get two different values! That makes no sense! It does makes sense if you know what's happening. z is not a variable here, it's a TF operation of random_normal, so every time you materialize it with a session it runs and randomizes new values from a random distribution - hence giving you different values. This is the reason I asked TF to also give me z_values from the session, so that we can get the actual values used to generate the images below."

 

"Wait - we run the same code and get two different values! That makes no sense! It does makes sense if you know what's happening. z is not a variable here, it's a TF operation of random_normal, so every time you materialize it with a session it runs and randomizes new values from a random distribution - hence giving you different values. This is the reason I asked TF to also give me z_values from the session, so that we can get the actual values used to generate the images below."

한번에 같은 세션을 두번 parsing한다. z는 random 수직 TF작업내용(아마도 레이어)이고, 매 세션마다 다른 랜던값이 분배되어야 한다. z는 변수가 아니라 상수값이며 랜덤으로 매번 다르게 적용되어야 하는 값이라는 뜻.  세션은 두번이 맞나? 카테고리 개수만큼 늘어나는가? 

 

 

Cycle GAN

얼룩 만들기. (나는 얼룩말고,, 다른거 만들어볼래, 만화이미지..)

 

NVIDIA imaginarie

-stack overflow가 있었으나 해결했다. 처음 import를 하지 않거나, 파일 생성전에 다음단계로 넘어갔기 때문이다. 확인하면서 하면 문제없음. 

 

 

 

 

'A > Software' 카테고리의 다른 글

바탕화면 애완묘 만들기 작업-1  (0) 2023.04.28
Comments