3:21 I had it paused, walked away to grab a beer. Sat back down, pressed play, nearly spit out it out laughing... Awesome Nicolas
@NicholasRenotte2 жыл бұрын
Hahahaha, I watched it back and I was like wtf am I doing 😂
@JohnWalz972 жыл бұрын
Dude, I need just a smidge of your motivation. I swear everytime I get on KZbin you've uploaded a new, super high-quality and educational video!!! Keep it up 💯
@infoprendre49872 жыл бұрын
💯
@NicholasRenotte2 жыл бұрын
Hahahah, I hype the crap out of myself before I start recording 😂 life is good though with all this tech so it tends to gee me up even more!
@FedorYevseev Жыл бұрын
Hi there, I have an error, it writes: CUDA out of memory. Tried to allocate 4.69 GiB (GPU 0; 8.00 GiB total capacity; 6.23 GiB already allocated; 0 bytes free; 6.53 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF. Do you have any idea? Do I need to install virtual environment? Thanks
@juliproo39622 жыл бұрын
hi it works but when i try to upscale some bigger images i get this error: RuntimeError: CUDA out of memory. Tried to allocate 4.57 GiB (GPU 0; 8.00 GiB total capacity; 4.78 GiB already allocated; 1.49 GiB free; 4.78 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF but i have definitly enough vram!! can someone help me please?
@valhallaraiders79012 жыл бұрын
yeah can someone help please? Mr. Nicholas?
@ShahHeetDixitbhaiBEE2 жыл бұрын
I dont have a gpu but when I run with CPU it shows Torch not compiled with CUDA enabled error and If I install with cuda then it shows no driver found error what to do?
@housesparrow92732 жыл бұрын
why not downscale one image before applying I.A upscale, then compare ?
@igormichetti Жыл бұрын
that's basically how they trained it, the problem is not the complexity of the task, but like with most of ml projects, the enormous amount of data and processing power involved to train it
@kiwisaft2 жыл бұрын
very good tutorial. tried some old pictures of mine and some other stuff. results were always worse than upscaling in photo editing software. would be nice to know how to tweak the results. they look like if you apply a sharpening filter to a picture for 50 times in a row
@shan_world_6 ай бұрын
i tried it only work good on the sample image, its juts shit on any other image u throw at it!
@ramilgabibov7500 Жыл бұрын
I am facing the following problem. My laptop does not have a GPU, when installing pytorch in Compute Platform I choose CPU. But when I run test py I get the following errorI am facing the following problem. My laptop does not have a GPU, when installing pytorch in Compute Platform I choose CPU. But when I run test py I get the following error: Torch not compiled with CUDA enabled. How to fix it?
@kiSABREWULF0072 жыл бұрын
how can i customize the scaling that i want this program to do for me?
@UZMAALFATMI Жыл бұрын
Thank you so much! I needed it in my project, and now I know how to do it!
@salvatorepolverino52602 жыл бұрын
Unfortunately it says me, RuntimeError: Unable to find a valid cuDNN algorithm to run convolution
@ozama97572 жыл бұрын
The thing works great, but only with icon size pictures, if I try with an image larger than 500x500 it returns an error of out of allocated memory. I have a gtx 1650 4gb, it's not enough? I run deepfacelab nicely and a lot of games, what I'm missing here?
@aminhaikall2 жыл бұрын
You are my hero! The video explaning the fundamental and tutorial very well.Thank you so much!
@zhalberd2 жыл бұрын
Congrats on hitting 100k subscribers earlier this morning!
@mozzie27292 жыл бұрын
I typed "git clone" but received a message from the command prompt (running as an admin) that "git" is not a valid command. Edit: I ended up just downloading the .zip and extracted it anyway, just curious why I couldn't use "git" on my PC. Edit 2: I get the same issue with "pip3", is there some sort of prerequisite for these commands to work? Edit 3: OK, I'm making these edits incase someone else has the same issues. I was able to get "pip" to work after installing Python directly from their website AND did a restart on the PC. It's downloading Pytorch now. Last Edit: Awesome tutorial! Your methodical way of explaining things has helped me keep up with what you're saying and doing! I was able to get this working and it is really cool to see just how far we've come in terms of computing abilities.
@meetvardoriya25502 жыл бұрын
Amazing as always 🔥🤩
@NicholasRenotte2 жыл бұрын
Thanks a mill Meet!!
@globalwealthsociety2 жыл бұрын
ERROR: Could not find a version that satisfies the requirement torch (from versions: none) ERROR: No matching distribution found for torch
@sohambasu660 Жыл бұрын
Can you also teach us to train custom dataset on ESRGAN
@NoMercy80082 жыл бұрын
Super awesome, as always thank you so much for this, Nick! Have been waiting for this one! :) This is really really useful in so many situations. One of the main examples that I often see is it being used in games, usually in the form of Nvidia DLSS or AMDs FidelityFX, but it has many other applications, too. For example in digitizing old books, posters, art, etc. Scanners used for this are already high-res but I can see this being very helpful, for example if letters in an old book are hard to read/decipher I guess every bit of resolution counts. And these tools are doing a great job at it. Together with methods to DeOldify/colorize images, it is so amazing what we can do nowadays. As I mentioned before, I find it so fascinating and so wonderful that it ultimately is so easy to (mostly) reconstruct information that was previosly completely lost to us. All those old black&white images or video footage, for example. It sounds weird but I think it helps realize that the past wasn't b&w or sepia and 360p, if you know what I mean. In many ways, for them the world looked the same as it does to us today, and they used colors to convey information just as we do today, and saw their environment in many ways with the same eyes as us. I love the fact that this information, their messages are not lost after all.
@NicholasRenotte2 жыл бұрын
Agreed, it's ridiculously cool what's possible with this. DeOldify tut coming this weekend btw! Was planning on doing DAIN as well and trying to stack them all together!
@NoMercy80082 жыл бұрын
@@NicholasRenotte Sounds super awesome, looking forward to that! :)
@najmi39052 жыл бұрын
that really damn long
@Geffers582 жыл бұрын
I've come to the conclusion (being a bit cynical) that the best results are obtained by taking a good photo, then reducing it in size, and adding a blur, then put it back through these (various) engines to obtain what you started with. On the other hand, with a genuinely originally bad image, with all the personal photos I've tried, of various quality and size the results are worse (much worse) than using the good old paint shop 5 in built resizer (that presumably interpolates, and does so very well). Or failing that just using a sharpen option.
@challengesroulette79782 жыл бұрын
CPU => AssertionError: Torch not compiled with CUDA enabled. Too bad 😅
@opiritetariah2 жыл бұрын
just got the same error @Nicholas Renotte.. im also using cpu
@challengesroulette79782 жыл бұрын
Fixed it by setting device to cuda in test.py 😃
@opiritetariah2 жыл бұрын
i just figured it out; open the test.py script and change torchdevice(cuda) to torchdevice(cpu), save and run the command in terminal again... BTW thanks @Nicholas
@wilsonjomo4383Ай бұрын
Hey nick willy here...just appreciating how you always put me at per with the current trends in AI/ML...so i have a suggestion how about we create a video enhancer using some of the concepts used in this pre-trained model...and if it already exist you can do a tutorial on that...Thanks
@khandakerrahin10032 жыл бұрын
I'm a newbee and I was wondering how I can approach a problem where I have to assess the damages (tears, scratches, spots etc.) of old photos.
@djjwp Жыл бұрын
Is there a cleanup-only option? The X4 .pth file leaves a checked pattern all over the picture and does not clarify the details of real pictures. Great video.
@Game-central-Spark2 жыл бұрын
Hey, I got error with the CPU version of torch, The error is "Torch not compiled with CUDA enabled", I have installed the same version of torch for GFPGAN that works fine without CUDA, please confirm if ESRGAN specifically demands CUDA.
@salomesalas9682 жыл бұрын
I have the same problem :(
@Gilltrick2 жыл бұрын
No CUDA no ESRGAN. Use GFPGAN instead.
@gplgomes2 жыл бұрын
Normally it is used the technique of zoom using bilinear interpolation.
@authenticindian5776 Жыл бұрын
Why my cmd do not recognise the git keyword while cloning
@lorenzocastagno13052 жыл бұрын
WoW insane, I love your vids man
@maikelkat1726 Жыл бұрын
How can i do this with a specific jpeg b64 string? (so not a jpg file but directly b64 string image..... eg : "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAA...... it does seem to go wrong when decaling to 50,50 usinf tensorflwo lite model ? then picture will get way worse instead of better...? May be you know a way forward?
@financialchimes45462 жыл бұрын
What do you need to install before cloning the github? When I try the git clone I get this error: 'git' is not recognized as an internal or external command, operable program or batch file.
@financialchimes45462 жыл бұрын
I found that I can just download and extract the git hub instead of cloning it from the command prompt. But for the next step I also get an error: 'pip' is not recognized as an internal or external command, operable program or batch file.
@Gilltrick2 жыл бұрын
The command git and the attribute clone are only present if you installed git on your machine. The same is with pip it comes with python. Also check your system envrionment variables in case you installed the software allready. As I wrote to Lusifer Sofia: I can offer you free help over discord.
@brianpoillucci18052 жыл бұрын
Have you used the even more simplified “Real-ESRGAN-Sber.ipynb”? I am a Ob and can’t figure out setting up the upload/download file location part it the rest of it is all automated.
@yashsharma39492 жыл бұрын
Is there something for classification from a description of something?
@nareshcharynune6 ай бұрын
Nicely explained , thank you very much
@liutprandofeinstaub46772 жыл бұрын
hi please where is the model? on drive it's not available
@abhijithkrishnan60974 ай бұрын
I am getting this error , can anyone help me with it ? Traceback (most recent call last): File "D:\ESRGAN_MINOR\ESRGAN\test.py", line 5, in import torch File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\__init__.py", line 148, in raise err OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.
@aep8454 ай бұрын
ı taked the same error did you solved?
@cousdubz2 жыл бұрын
This is totally different area for me since I have never coded in my life! I was still able to follow along fairly well. Thank you.
@chrisber2 жыл бұрын
Thanks Nick! Your videos are absolutely awesome, this one is particularly great. Keep up the good work mate!
@theniysson2 жыл бұрын
Thanks so much for the tutorial, dude. You gained one more subscriber.
@mp_meet20 Жыл бұрын
Hey Nick, can you please tell me how to run this on google colab?
@shine2027 Жыл бұрын
bro thanks thanks to you my task is done, big thank you you are amazing
@9ALiTY2 жыл бұрын
no link to models?
@okopyl Жыл бұрын
Could you please help me how to train ESRGAN from scratch and how expensive it is?
@jason16052 жыл бұрын
Lovely tutorials. Keep up the good work and thanks for your knowledge.
@solosoul20412 жыл бұрын
Hi nich! Could you please help me to set up the software enviornment to run this ESRGAN. Currently i hvae completed your python series which have helped me a lot to get started..!! Currently i have anaconda installed in my pc and the model i have downloaded. Could you please tell me what are the various softwares i have to install for running this ESRGAN.
@maythesciencebewithyou2 жыл бұрын
Now all those CSI episodes make sense
@NicholasRenotte2 жыл бұрын
"ENHANCE" *images enhance magically to 16k*
@javiermarti_author2 жыл бұрын
Great video. Thank you. Followed your instructions to a T, but unfortunately it doesn't seem to work without a GPU. Gave me problems regarding line 2 first, importing mkl...then I managed to update/upgrade mkl, but then problems again on line 19 demanding Cuda / Nvidia. Gave up for the moment. Great idea but no time to explore more. Will wait until it's more easily accessible and works out of the box.
@mostechroom97802 жыл бұрын
Use Google Colab instead, they have machines you could use
@lemauhieu30372 жыл бұрын
Got the same problem. You can take a look at the "test.py" file and change the "device" to "cpu". It works for me.
@javiermarti_author2 жыл бұрын
@@mostechroom9780 thank you!
@javiermarti_author2 жыл бұрын
@@lemauhieu3037 thank you!
@sonji.772 жыл бұрын
@@mostechroom9780 Are there any tutorials on how to use the Real-ERSGAN Colab? .. I'm a complete beginner here and understand 0 things about code :')
@petneb Жыл бұрын
Great stuff. Thank you so much
@irugal89642 жыл бұрын
Amazing 🤩 man... As always you are the best...
@NicholasRenotte2 жыл бұрын
HEYYYYY! Thanks so much @Irugal!
@spider279 Жыл бұрын
Hello i am using a macboook pro and then torch 2.0 is the avalaible version so i can't hahe cuda
@Badoofhmz Жыл бұрын
Can I modify the same code for satellite imagery?
@metacubescodes4144 Жыл бұрын
Is there a way to tune this model?
@chrisber2 жыл бұрын
Man this was an absolutely awesome tutorial video, I just implemented it myself and the results were incredible. Thanks so much!
@NicholasRenotte2 жыл бұрын
YESSSS, awesome work @chrisber!
@skyhandanimation2 жыл бұрын
What bro should i do know
@ravnitlotay81962 жыл бұрын
Very interesting video! Have you looked into serpentAI for RL in complex games? I've seen a couple call of duty examples on yt but no comprehensive tutorials anywhere
@NicholasRenotte2 жыл бұрын
Omg, I was meant to study this afternoon now I'm hooked on the possibilities of this.
@ravnitlotay81962 жыл бұрын
@@NicholasRenotte 😂I was attempting to make a bot for Minecraft but kept running into issues. Hoping you could could make a tutorial for it at some point 😄
@nedim8403 Жыл бұрын
Hi Nicholas, Do you think it is scientifically meaningful to enlarge different types of images using SRGAN trained with a different dataset?
@guest_tv-v1x2 жыл бұрын
Hey nick, how about this kind of project but for videos as well? I have some low res video I would love to enhance
@NicholasRenotte2 жыл бұрын
Ya gotta get back to it! Should be easy enough to parse a bunch of images through and recompile as a vid @Czarlie!
@Hanimiii97 Жыл бұрын
hey, i got this error. do you know how to fix it Traceback (most recent call last): File "C:\Users\user\Desktop\AI tools\ESRGAN\test.py", line 17, in model = model.to(device) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch n\modules\module.py", line 1145, in to return self._apply(convert) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch n\modules\module.py", line 797, in _apply module._apply(fn) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch n\modules\module.py", line 820, in _apply param_applied = fn(param) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch n\modules\module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\cuda\__init__.py", line 247, in _lazy_init torch._C._cuda_init() RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from www.nvidia.com/Download/index.aspx
@beem_em2 жыл бұрын
Hi! Nice tut. I got a question: if i try to process bigger img my gpu runs out of memory and the script crashes... is there a workaround?
@mightye6669 Жыл бұрын
same issue and I have 4090 24gb
@srijilavasudevan39318 ай бұрын
my processor is intel i3. So running will cause any problem?
@LachineTokyo Жыл бұрын
Thanks for this tuto helped me a lot, even if i cant deal python im very very beginer and my english is medium so ... anyway its working for me with on windows but ... i still have a question , when i download the others models they are not working, the file is in "pth" format does that mean "pth" models work with python only ? Also do you know how to use different size of upscale without python like x1 x2 x3 i tried but it looks like its not working " it working only on animevideomodel x2 & x3 yes but unfortunately no x1 " do you have any information about that thanks a lot in advance
@mayursarvankar59482 жыл бұрын
AssertionError("Torch not compiled with CUDA enabled" without gpu error
@TheEagleCeremony2 жыл бұрын
Awesome, man! Thanks.
@NicholasRenotte2 жыл бұрын
Anytime!
@Selvakumar-kc4cp2 ай бұрын
getting NIVIDA need to install how to download and install
@rohitgupta77582 жыл бұрын
Sir please make a video on tensorflow direct ml
@VNstealer2 жыл бұрын
Hi, it doesn't work without CUDA> Error message is AssertionError: Torch not compiled with CUDA enabled
@NicholasRenotte2 жыл бұрын
Apparently you can set it to run on GPU in test.py if you don't have CUDA installed.
@fontenbleau2 жыл бұрын
If you have an Nvidia card and Nvidia experience account, you can use same login on their developer portal to download cuda.
@Because_Reasons2 жыл бұрын
My issue is most of these pre-trained models smooth out images losing their inherent, interesting and important details.
@fassoyangce10752 жыл бұрын
Awesome. Does it work with videos as well?
@aelfricsyrax2665 ай бұрын
do we need GPU for this?
@harjeetsingh-go6lx2 жыл бұрын
not having any gpu. i installed pytorch on cpu, and it throws an error. any help.
@Gilltrick2 жыл бұрын
You need a NVIDIA GPU because of the CUDA-Support. You can use GFPGAN instead of ESRGAN and modify the code to run on the CPU. But be aware its very slow in in comparison.
@adarshd2492 жыл бұрын
Got the notification and here I am
@NicholasRenotte2 жыл бұрын
Ayoooo, thanks dude!
@kishorenagarajan3442 жыл бұрын
Thanks for the knowledge! one request, can you do a video on super pixel segmentation would be very useful.
@NeuralHackswithVasanth2 жыл бұрын
In college but as notification came seeing this now in my college break 😂
@NicholasRenotte2 жыл бұрын
Ayyyy, nice!
@jojosakaro6669 Жыл бұрын
Can you make a video of image super resolution using swinir transformer?
@psri95022 жыл бұрын
this is really amazing - had 1 question- how does it compare with online tools which boast of doing a low resolution to high resolution ? And also what advantage does the GAN have if we try to use tools like Photoshop to do the same task?
@joseph30362 жыл бұрын
This particular model is not better than photoshop.
@喜塔腊有胜2 жыл бұрын
The new version of Photoshop seems to support neural network filter, including super-resolution function, similar to the principle of video.
@TheEagleCeremony2 жыл бұрын
Faced a problem. Not enough vmem (6GB) for images bigger than ~600x600. Trying to find solution in cuda tuning to address, but have no hope at all, just because think issue is not in Cuda, but in program logic itself. Switched to cpu, program took all system mem, waiting for result)
@NicholasRenotte2 жыл бұрын
Tried running on Colab to get some more VRAM?
@TheEagleCeremony2 жыл бұрын
@@NicholasRenotte no, thanks for an idea
@OverRider2 жыл бұрын
Can this be used within webassembly ?
@MirceaGoia Жыл бұрын
Does it work with videos?
@virju007 Жыл бұрын
since you did this video a year ago, would you say a year later that ESRGAN is still #1? If not, what would you recommend?
@huk26177 ай бұрын
esrgan is 6 years old lmao it has been obsolete since long before this video was made
@rd-lw4td2 жыл бұрын
It runs out of memory with a normal sized image. I don't get it.
@RyanJohnson2 жыл бұрын
same
@rayyanamir85602 жыл бұрын
Thanks for posting this :)
@ParasProgramming1232 жыл бұрын
If I have choose between rtx 3060 12 GB and rtx 3060 TI 8 GB which one should we go for according to your experience I don't have too much big budget. What does your experience say.
@NicholasRenotte2 жыл бұрын
Both are good, ti will be faster but non ti will be able to handle more data per batch. Check this out: gpu.userbenchmark.com/Compare/Nvidia-RTX-3060-Ti-vs-Nvidia-RTX-3060/4090vs4105
@ParasProgramming1232 жыл бұрын
@@NicholasRenotte thank you 😊
@Powercube72 жыл бұрын
heavily recommend 12GB, I have 8GB and the batches allowed by the hardware are relatively small
@ParasProgramming1232 жыл бұрын
@@Powercube7 thank you
@sufiyanmukadam33042 жыл бұрын
Where is the superes folder?
@StaMariaRock Жыл бұрын
Looks really easy to do, now I wonder if it's possible to upsample a bunk of images, for example the FER2013 (which is 48x48)
@azaaex Жыл бұрын
yep
@mushtaqpatel19002 жыл бұрын
Will it work similarly for low-resolution text images? like traffic sign, house numbers, etc
@NicholasRenotte2 жыл бұрын
Doubt it will perform as well.
@nakatabatosai60652 жыл бұрын
You can do that for vidéo for exp sd to HD and thank if you know the code
@dhruvverma20002 жыл бұрын
cuda goes out of memory XD. Do we need a 8GB GPU for this to work?? I got 4GB card and it goes out of memory XD
@naqedshaker30232 жыл бұрын
i got a prob in downloading the torch through the cmd terminal
@NicholasRenotte2 жыл бұрын
Might be a little slow, was having bugs myself.
@retohummer25702 жыл бұрын
19:14 The first which comes me into mind was CIFAR10 (32 by 32 px) or CelebA (64 by 64 px) 😄😋
@TheArkLade Жыл бұрын
Unfortunately, ESRGAN can only handle small size images. It will not process any image larger than 1k. So clear limitation there. Good tutorial there Nick!
@Sirrom-ii9wm2 жыл бұрын
How do you do a film from the 1800s?
@yukunye91902 жыл бұрын
Does anyone can run this on Mac system, I got the error "Torch not compiled with CUDA enabled ".
@NicholasRenotte2 жыл бұрын
Apparently you can set it to run on GPU in test.py if you don't have CUDA installed.
@sagargupta90142 жыл бұрын
I want to increase size of my image without loosing quality and i have got a nvidia rtx gpu is there any nvidia softwares for such a task
@erikesp7952 жыл бұрын
Cupscale
@sagargupta90142 жыл бұрын
@@erikesp795 Google says it's based on esrgan which is not working for my photos
@AmeenAltajer2 жыл бұрын
Your videos are awesome man, keep going :D
@NicholasRenotte2 жыл бұрын
Thanks a mil @Ameen!
@galaxyvideoproductionlab9132 Жыл бұрын
Please full Tutorial on GFPGAN-1.3.8 with scratch
@MrPhoton12 жыл бұрын
Great project! But the upscaling amplifies JPEG compression artefacts, so better use lossless formats instead, such as PNG. Maybe we need a model that was trained with those artefacts and "knows" how to deal with them!
@fgbowen2 жыл бұрын
8:12 - ok - this is where you lost me - I need more detail-steps here. Cloning, prompting, etc etc etc
@rohitgupta77582 жыл бұрын
Ok Edit : Thank you for the heart sir
@karenreddy2 жыл бұрын
Why are you upscaling images that are already fairly large? Start with tiny images and showcase what it can (or can't) actually do.
@dirdredshadow33162 жыл бұрын
PyTorch CUDA works in amd GPU?
@Gilltrick2 жыл бұрын
Nope sry. Use GFPGAN and modify the code to force the cpu to do the heavy numbers. But it is very slow