Comments (7)
Hi @Beinsezii
I tested with CPU mode (with PyTorch 1.0) and there is no crash.
BTW, if you have cuda, why not try using GPU mode?
from esrgan.
A 1000x1000 image uses more than my 8 gigabytes of VRAM. Main area I use fancy up-scaling is for converting <=1080p images to better fit newer (4k) screens.
It's not really a big deal since I wrote a simply python command line utility that uses PIL and Imagemagick to split an into smaller strips and recombine them, which therefore lets me process basically any image with CUDA.
Since its not reproducible on your end, later I could try playing around with some stuff to see if anything bites.
from esrgan.
A 1000x1000 image uses more than my 8 gigabytes of VRAM. Main area I use fancy up-scaling is for converting <=1080p images to better fit newer (4k) screens.
It's not really a big deal since I wrote a simply python command line utility that uses PIL and Imagemagick to split an into smaller strips and recombine them, which therefore lets me process basically any image with CUDA.
Since its not reproducible on your end, later I could try playing around with some stuff to see if anything bites.
Any chance you could share this utility? I'm about to do something similar, but this would save some effort. Thanks!
from esrgan.
Any chance you could share this utility? I'm about to do something similar, but this would save some effort. Thanks!
Uhhhh I guess. I've never shared code before and this script in particular is rather incomplete, so it's kinda archaic with almost no documentation or error processing, but here you go.
File in my cloud drive
--Github doesn't want me sharing a .py file. Mildly ironic.
It's a command-line utility, so you use it like you would any other. argparse generates help info, so image_split.py -h
or something should work. I'm booted in Windows instead of Arch right now so I can't test it myself.
Needs Python 3.6+, imagemagick, and Python Imaging Library (PIL)
from esrgan.
Any chance you could share this utility? I'm about to do something similar, but this would save some effort. Thanks!
Uhhhh I guess. I've never shared code before and this script in particular is rather incomplete, so it's kinda archaic with almost no documentation or error processing, but here you go.
File in my cloud drive
--Github doesn't want me sharing a .py file. Mildly ironic.It's a command-line utility, so you use it like you would any other. argparse generates help info, so
image_split.py -h
or something should work. I'm booted in Windows instead of Arch right now so I can't test it myself.
Needs Python 3.6+, imagemagick, and Python Imaging Library (PIL)
That works quite well, thanks!
from esrgan.
I encountered a segmentation fault as well, but not on smaller images like the sample baboon. I don't know the precise cut-off point, but 710 x 443 seems to be sufficiently large to trigger it.
It's unlikely to be a RAM issue, because it doesn't exceed ~1.2 GB (and I have a total of 32).
$ python3 test.py models/RRDB_ESRGAN_x4.pth
Model path models/RRDB_ESRGAN_x4.pth.
Testing...
1 ultima7
/home/frans/.local/lib/python3.7/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))
Segmentation fault
--Github doesn't want me sharing a .py file. Mildly ironic.
It'll work as an archive of various sorts:
image_split.py.tar.gz
But yeah, otherwise they want you to use a gist, I guess.
from esrgan.
I encountered a segmentation fault as well, but not on smaller images like the sample baboon. I don't know the precise cut-off point, but 710 x 443 seems to be sufficiently large to trigger it.
It's unlikely to be a RAM issue, because it doesn't exceed ~1.2 GB (and I have a total of 32).
I have this exact same error and tried to troubleshoot for the past few days with no success. Any help would be appreciated!
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.