Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P PyTorch-GAN
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 102
    • Issues 102
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 24
    • Merge requests 24
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Erik Linder-Norén
  • PyTorch-GAN
  • Merge requests
  • !1
An error occurred while fetching the assigned milestone of the selected merge_request.

Fix apparent copy-paste bugs that made it crash with NameErrors

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/tlbtlbtlb/fixes into master 7 years ago
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: tlbtlbtlb

Compare
  • master (base)

and
  • latest version
    d8dee640
    1 commit, 2 years ago

1 file
+ 2
- 2

    Preferences

    File browser
    Compare changes
implementations/bgan/bgan.py
+ 2
- 2
  • View file @ d8dee640

  • Edit in single-file editor

  • Open in Web IDE


@@ -102,7 +102,7 @@ discriminator = Discriminator()
if cuda:
generator.cuda()
discriminator.cuda()
adversarial_loss.cuda()
discriminator_loss.cuda()
# Initialize weights
generator.apply(weights_init_normal)
@@ -171,6 +171,6 @@ for epoch in range(opt.n_epochs):
print ("[Epoch %d/%d] [Batch %d/%d] [D loss: %f] [G loss: %f]" % (epoch, opt.n_epochs, i, len(mnist_loader),
d_loss.data[0], g_loss.data[0]))
batches_done = epoch * len(dataloader) + i
batches_done = epoch * len(mnist_loader) + i
if batches_done % opt.sample_interval == 0:
save_image(gen_imgs.data[:25], 'images/%d.png' % batches_done, nrow=5, normalize=True)
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: github/fork/tlbtlbtlb/fixes

Menu

Explore Projects Groups Snippets