Coder Social home page Coder Social logo

Comments (5)

sangwoomo avatar sangwoomo commented on June 14, 2024

Hi, basically we run both train and test on the train dataset (as the goal of GANs are mimicking the training distribution). Hence, you can simply add option --phase train to test the trained model on the train dataset.
However, we also provide validation dataset to check the generalizability of the model. To this end, we train an additional segmentation model on the CCP train dataset, and predicted masks on the CCP val dataset. As CCP dataset contains only one mask per image, we simply used the pix2pix model, which can be simply run under the code base.
Sorry for not providing the pre-trained weights of the segmentation model, but it is not so difficult to reproduce it.

from instagan.

chaipangpang avatar chaipangpang commented on June 14, 2024

test
train

It worked, thanks!
But, I have encountered some new problems while runing test ccp.
There are two results output during training and testing(mark in the top-left corner of the image), but results during testing(upper one) seems to be unnormal.
Shouldn’t this result be like the results during training(lower one)? Why are they different?
I checked the code for this part, 'save_images()' and 'display_current_results()' both use 'util.tensor2im()' and save images to html.
What could be a reason for getting this problem? thanks!

from instagan.

sangwoomo avatar sangwoomo commented on June 14, 2024

Hi, what is the upper one and lower one?
The lower one seems to work ok, but do you have a problem at the upper one?

from instagan.

chaipangpang avatar chaipangpang commented on June 14, 2024

I am sorry for the expression is not accurate.
I have re-edited the previous message.
thanks!

from instagan.

sangwoomo avatar sangwoomo commented on June 14, 2024

Thank you for your revised question!
Did you you the model of the same epoch?
Occasionally, the training becomes weirdly unstable, and all the results collapse.
Can you check 1) your loss curves are stable, 2) test results are still weird for earlier epochs?

from instagan.

Related Issues (20)

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.