Giter Site home page Giter Site logo

Comments (4)

youyuge34 avatar youyuge34 commented on July 24, 2024 1

@xuqiantong I have made a PR which fixed several bugs and modified the structure. Details are shown in PR comment.
THX for your paper and codes again.

from gan-metrics.

youyuge34 avatar youyuge34 commented on July 24, 2024

The bugs are easy to be fixed by following:

  • If windows, make the codes in demo_dcgan.py run under
    if __name__ == '__main__': to handle with the multi-process errors.
    (or make the parameter num_worker to 0 in all dataloader() functions)
  • open metric.py file in the root directory, line 105-116 which should be
    iter = 0
    for i, data in enumerate(dataloader, 0):
        img, _ = data
        for j in range(0, len(img)):

            vutils.save_image(img[j].mul(0.5).add(
                0.5), saveFolder + giveName(iter) + ".png")
            iter += 1
            if iter >= sampleSize:
                break
        if iter >= sampleSize:
            break

the author input redundant tabs to these lines. use shift+tab to delete the tabs ! That's why no real sample is generated in the folder.

from gan-metrics.

xuqiantong avatar xuqiantong commented on July 24, 2024

Thanks @youyuge34 for pointing out the problem! Would you mind to send out a PR to fix it?

from gan-metrics.

xuqiantong avatar xuqiantong commented on July 24, 2024

Bug fixed by @youyuge34 in #2. Closing.

from gan-metrics.

Related Issues (8)

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.