Code Monkey home page Code Monkey logo

Comments (6)

ajbrock avatar ajbrock commented on June 7, 2024 1

There's just an issue in my logic (it's 10PM on a Friday night and I'm coding over an ssh connection on my phone <_<) this most recent commit should handle it.

from biggan-pytorch.

ajbrock avatar ajbrock commented on June 7, 2024 1

Actually one more mistake in my logic (I flipped the greater than the wrong way), but NOW this one should handle it.

from biggan-pytorch.

ajbrock avatar ajbrock commented on June 7, 2024

Ah, this would appear to be an issue with classes_per_sheet being greater than the overall batch size. Should be fixed with this commit.

from biggan-pytorch.

lesnikow avatar lesnikow commented on June 7, 2024

I tried out that commit, though this leads to thisAttributeError: 'Tensor' object has no attribute 'sample_'

Here's more context:

11/250 (  4.00%) (TE/ETA: 0:13 / 5:18) itr: 11, G_loss : +0.418, D_loss_real : +0.149, D_loss_fake : 12/250 (  4.40%) (TE/ETA: 0:13 / 4:55) itr: 12, G_loss : -0.430, D_loss_real : +0.369, D_loss_fake : 13/250 (  4.80%) (TE/ETA: 0:13 / 4:36) itr: 13, G_loss : -0.668, D_loss_real : +0.540, D_loss_fake : 14/250 (  5.20%) (TE/ETA: 0:14 / 4:20) itr: 14, G_loss : -0.389, D_loss_real : +0.516, D_loss_fake : 15/250 (  5.60%) (TE/ETA: 0:14 / 4:05) itr: 15, G_loss : -0.387, D_loss_real : +1.293, D_loss_fake : 16/250 (  6.00%) (TE/ETA: 0:14 / 3:53) itr: 16, G_loss : +0.582, D_loss_real : +1.693, D_loss_fake : 17/250 (  6.40%) (TE/ETA: 0:15 / 3:41) itr: 17, G_loss : +0.666, D_loss_real : +0.569, D_loss_fake : 18/250 (  6.80%) (TE/ETA: 0:15 / 3:32) itr: 18, G_loss : +1.341, D_loss_real : +0.089, D_loss_fake : 19/250 (  7.20%) (TE/ETA: 0:15 / 3:23) itr: 19, G_loss : +0.691, D_loss_real : +0.333, D_loss_fake : 20/250 (  7.60%) (TE/ETA: 0:16 / 3:15) itr: 20, G_loss : +0.195, D_loss_real : +0.000, D_loss_fake : +1.365 Saving weights to weights/BigGAN_C100_seed2_Gch64_Dch64_bs50_nDs4_Glr2.0e-04_Dlr2.0e-04_Gnlrelu_Dnlrelu_GinitN02_DinitN02_ema...
Saving weights to weights/BigGAN_C100_seed2_Gch64_Dch64_bs50_nDs4_Glr2.0e-04_Dlr2.0e-04_Gnlrelu_Dnlrelu_GinitN02_DinitN02_ema/copy0...
Traceback (most recent call last):
  File "train.py", line 227, in <module>
    main()
  File "train.py", line 224, in main
    run(config)
  File "train.py", line 206, in run
    state_dict, config, experiment_name)
  File "/workspace/BigGAN-PyTorch/train_fns.py", line 140, in save_and_sample
    z_=z_)
  File "/workspace/BigGAN-PyTorch/utils.py", line 892, in sample_sheet
    z_.sample_()
AttributeError: 'Tensor' object has no attribute 'sample_'

Any ideas? Thank you

from biggan-pytorch.

lesnikow avatar lesnikow commented on June 7, 2024

I could comment out line 892 and not sample, but I would prefer to sample while training if possible.

from biggan-pytorch.

lesnikow avatar lesnikow commented on June 7, 2024

Not a problem. Thanks, let me try that commit.

from biggan-pytorch.

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.