Comments (4)
@t-vi Is there a codebase for training available as well?
Thanks!
from lernapparat.
Hey! Can you share your training code? That might help debug it.
from lernapparat.
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.
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`
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)
- Can not be consistent with the Official version HOT 1
- MIT License HOT 1
- Code for training models? HOT 4
- Change defintion of padding in "MyConv2d" HOT 3
- can not encode another resolution image except 1024x1024
- StyleGAN discriminator? HOT 1
- Syntheses two faces through Style-GAN
- Trojan detection!
- Notebooks require old tensorflow (on google colab).
- Do you have any thoughts of implementing stylegan2? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lernapparat.