Giter Club home page Giter Club logo

Comments (4)

Spandan-Madan avatar Spandan-Madan commented on July 23, 2024 1

@t-vi Is there a codebase for training available as well?

Thanks!

from lernapparat.

Spandan-Madan avatar Spandan-Madan commented on July 23, 2024

Hey! Can you share your training code? That might help debug it.

from lernapparat.

t-vi avatar t-vi commented on July 23, 2024

So the place that I immediately saw is the kernel in the blur layer, you could just do .contiguous() before passing it in. You can also use this recipe to find the exact place where the computation fails and then enforce contiguity.

from lernapparat.

yayeoCddy avatar yayeoCddy commented on July 23, 2024

Hi,
When I attempt to train is model on GPU, it reports the error below, while it can be trained on CPU.

RuntimeError: Assertion dWeight.isContiguous()' failed. at /opt/conda/conda-bld/pytorch_1532581333611/work/aten/src/THCUNN/generic/SpatialDepthwiseConvolution.cu:140`

Do you have any ideas about it?
pytorch 0.4.1
cuda 9.0

Have you solved this problem?
I also attempt to train the frozen pre-trained stylegan and a new encoder(modiffied d_basic) from scratch, the code like this:
latent = torch.randn(args.batch_size, 512, device=device)
fake_hr_imgs = g_all(latent)
re_latent = d_basic(fake_hr_imgs)

recons_latent_loss = l2_loss(re_latent, latent.detach(), reduct='mean')
recons_latent_loss.backward()

but also meet the issue:
RuntimeError: Assertion dWeight.isContiguous()' failed. at /opt/conda/conda-bld/pytorch_1532581333611/work/aten/src/THCUNN/generic/SpatialDepthwiseConvolution.cu:140`
image

Meanwhile, I have tried the method "At the very top of your program, before you import anything (and in particular PyTorch), insert

import os
os.environ['CUDA_LAUNCH_BLOCKING'] = "1""

But there is still the same issue like above

pytorch 0.4.1
cuda 9.0

from lernapparat.

Related Issues (11)

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.