Git Product home page Git Product logo

spheregan-tensorflow's Introduction

SphereGAN-Tensorflow

Simple Tensorflow implementation of SphereGAN (CVPR 2019 Oral) | paper | supplementary materials

Usage

  • mnist and cifar10 are used inside keras
  • For your dataset, put images like this:
├── dataset
   └── YOUR_DATASET_NAME
       ├── xxx.jpg (name, format doesn't matter)
       ├── yyy.png
       └── ...

Train

> python main.py --dataset mnist --gan_type sphere --phase train

Test

> python main.py --dataset mnist --gan_type sphere --phase test

Analysis

Inverse of stereographic projection

isp

Moment mode

Results

Score

score

Image (64x64)

  • The paper only posted the results for 32x32 images, but I also tried 64x64

Mnist

mnist

Cifar10

cifar

Lsun bedroom

lsun

CelebA

celeb

Author

Junho Kim

spheregan-tensorflow's People

Contributors

taki0112 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spheregan-tensorflow's Issues

질문이 있어요

안녕하세요 코드보고 공부하고 있는 학생입니다
여쭤보고 싶은게 있어서 질문드립니다

""" Training """
        # divide trainable variables into a group for D and a group for G
        t_vars = tf.trainable_variables()
        d_vars = [var for var in t_vars if 'discriminator' in var.name]
        g_vars = [var for var in t_vars if 'generator' in var.name]

이부분을 각각의 loss 값을 구해 최소화 하면서 weight값을 옵티마이즈 시켜준다고 이해했고 이 vars 의 값들은 weight값이라고 이해했는데

t_vars = tf.trainable_variables()
for var in t_vars: 
     if 'discriminator' in var.name:
           d_vars = [var]
for var in t_vars: 
     if 'generator' in var.name:
           g_vars = [var]

위와 밑의 코드는 같은 코드인가요?
제가 파이썬 문법을 제대로 잘 몰라서 이해가 잘 안되서
일단 밑처럼 이해하고 변환 했는데 제가 이해하고 있는 내용이 맞는지
궁금하여 질문드립니다
감사합니다

Poor Quality?

I have also implemented a SphereGAN, but the quality is not as good as the paper claimed. The results of your code seem also not good enough. Do you have any idea?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.