Comments (5)
@Hedronmx
I think this warning will not kill the program...
You can replace the nn.Upsample to nn.functional.interpolate. You need to re-write the structure, because the whole model is in a nn.Sequential
now and nn.functional.interpolate should be used in the forward function.
from esrgan.
This is not a problem, it is just a warning. Because pytorch has changed the interface and nn.Upsample is deprecated.
from esrgan.
I get the same issue but my process gets killed.
/home/carlos/.local/lib/python3.6/site-packages/torch/nn/modules/upsampling.py:129: UserWarning: nn.Upsample is deprecated. Use nn.functional.interpolate instead. warnings.warn("nn.{} is deprecated. Use nn.functional.interpolate instead.".format(self.name)) Killed
from esrgan.
You could implement yourself:
class Interpolate(nn.Module):
def __init__(self, scale_factor, mode):
super(Interpolate, self).__init__()
self.interp = nn.functional.interpolate
self.scale_factor = scale_factor
self.mode = mode
def forward(self, x):
x = self.interp(x, scale_factor=self.scale_factor, mode=self.mode)
return x
Then assign it:
upsample = Interpolate(scale_factor=upscale_factor, mode=mode)
from esrgan.
@young666 Thanks.
We are now updating a new version for ESRGAN testing codes and BasicSR repo and we will fix it.
from esrgan.
Related Issues (20)
- artifacts in the SR images
- Is there a way to do I/O with YUV instead of RGB?
- Inference ESRGAN with Multiple GPUs
- 有关参数的设置
- CUDA runs out of memory HOT 4
- _pickle.UnpicklingError: invalid load key, '<'. run in google colab HOT 4
- Can you put the complete training code of ESRGAN in this repo? BasicSR is too complex and not very friendly for beginners HOT 2
- 为什么我使用自己修改的rrdb之后训练进行插值会得到这个bug
- Not recognising my upscale model.
- When I use RDN as the generator for training, the details of the generated image will appear R, G or B color spots.
- Please stop changing the state keys HOT 1
- Do you have a x2 pre-trained model?
- When I trained Real-ESRNet, I encountered this problem. HOT 1
- Not an issue just a question about image extend
- fail on MacOS(VENTURA) with NDArray > 2**32
- Shortcut connection / Residual structure in unnecessary for RRDB
- Error: Found no NVIDIA driver on your system #3699
- What is differents between RealESRGAN_x4plus.pth and RealESRGAN_x4plusD.pth
- Why the result is not statisfactory as like the result in paper? HOT 1
- Can esrgan use the 4x-ultrasharp model? 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 esrgan.