Code Monkey home page Code Monkey logo

eccv16_attr2img's People

Contributors

xcyan 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  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  avatar  avatar  avatar  avatar

eccv16_attr2img's Issues

Do we need segmentation masks to train disCVAE?

Hi Xinchen,

I just got to your wonderful paper Attribute2Image and I have a question about it. It will be great if you can answer it.

I saw that disCVAE decomposes the image generation into a foreground image generation and a background generation. The final image is the composition of the two. My question is do we need ground truth segmentation masks of training images to implement disCVAE?

It seem your code use the ground truth segmentation to train disCVAE?

local cur_mask = trainData[idx][2]:float():clone()

Thanks in advance!

How to convert training networks so they do not require CUDA?

I was finally able to train the networks using leased time in a GPU cluster, saved the trained networks (the net-epoch-100.t7 files), and run the decoder for testing. Everything runs fine in the GPU cluster, but when trying to use the trained networks on a machine without GPU the net-epoch-100.t7 files cannot be loaded. Speed is indeed needed for training, but, after the network has been trained, just feeding attributes + latent variables to the decoder to get synthetic images is a different matter. Is there any way to convert the net-epoch-100.t7 files into something equivalent that does not require using a GPU? Thank you!

code not running without GPU

I tried to run ./demo_lfw_trainCVAE.sh on my machine but it is giving an error. Assuming that it may be due to not having an appropriate GPU I rerun it with the flag that states not to use GPU:

th scripts/train_lfw_condVAE.lua --maxEpoch 100 --gpu -1

However I get an identical error:

miguel@whitney:~/eccv16_attr2img/eccv16_attr2img-master$ th scripts/train_lfw_condVAE.lua --maxEpoch 100 --gpu -1
THCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-541/cutorch/lib/THC/THCGeneral.c line=70 error=30 : unknown error
/home/miguel/torch/install/bin/luajit: /home/miguel/torch/install/share/lua/5.1/trepl/init.lua:389: cuda runtime error (30) : unknown error at /tmp/luarocks_cutorch-scm-1-541/cutorch/lib/THC/THCGeneral.c:70
stack traceback:
[C]: in function 'error'
/home/miguel/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
scripts/train_lfw_condVAE.lua:2: in main chunk
[C]: in function 'dofile'
...guel/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50

I believe that may be related to the "require 'cutorch'" in train_lfw_condVAE.lua - why require cutorch if I stated not to use GPU?

Note that in order to avoid similar errors I was getting before I installed cutorch and cuda (following the instructions I found in various places), but I am still getting the error above.

Thank you.

Attribute vectors for arbitrary images?

Hi, I wonder how to get the corresponding attribute vector of a given image (one not in the valData) for testing, so I can just change one attribute while keep others intact.

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.