Comments (6)
I solved this problem! actually, this is error of pytorch, it should be : RuntimeError: expected type torch.FloatTensor but got torch.cuda.FloatTensor, so we can change the code models/loss.py line50-51 from
fakeIm[0, :, :, :] = self.transform(fakeIm[0, :, :, :])
realIm[0, :, :, :] = self.transform(realIm[0, :, :, :])
to
fakeIm[0, :, :, :] = self.transform(fakeIm[0, :, :, :].data.cpu()) realIm[0, :, :, :] = self.transform(realIm[0, :, :, :].data.cpu())
it will be ok!
from deblurganv2.
the root cause is that the torchvision version is incompatible, just upgrade torchvision to 0.4.0 or above and pytorch correspondingly. In the new version, torchvision transformer(functional.py:215) has fix the bug
from deblurganv2.
File "train.py", line 192, in
There is no line 192 now
from deblurganv2.
I meet this problems too!
from deblurganv2.
I solved this problem! actually, this is error of pytorch, it should be : RuntimeError: expected type torch.FloatTensor but got torch.cuda.FloatTensor, so we can change the code models/loss.py line50-51 from
fakeIm[0, :, :, :] = self.transform(fakeIm[0, :, :, :])
realIm[0, :, :, :] = self.transform(realIm[0, :, :, :])
to
fakeIm[0, :, :, :] = self.transform(fakeIm[0, :, :, :].data.cpu()) realIm[0, :, :, :] = self.transform(realIm[0, :, :, :].data.cpu())
it will be ok!
from deblurganv2.
looks like the issue is not relevant anymore, closing
from deblurganv2.
Related Issues (20)
- How to organize train data?
- Why subsampling buckets
- The points in deblur image are all splited into two
- Is the best model on GOPRO dataset is trained on 256x256 image size or 1280x720 ? HOT 1
- Code fails due to certificate issue with server. HOT 3
- predict.py HOT 3
- how
- how to convert the model to onnx? HOT 3
- url error while running the predict.py ssl certificate error HOT 2
- The command of changing the backbone network
- get the blur estimation value?
- predict.py performs 0 iterations HOT 1
- Certificate issue HOT 4
- I have this problems!win_size exceeds image extent. Either ensure that your images are at least 7x7; HOT 3
- Cannot use predict.py on my dataset
- The imagecolor was changed ? why ? my mistake HOT 1
- Missing Discriminator Weights for pretraining HOT 1
- 模型训练不收敛,loss一直震荡。
- Fixing Security Bugs
- 可以训练tiff文件么 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 deblurganv2.