adamian98 / pulse

PULSE: Self-Supervised Photo Upsampling via Latent Space Exploration of Generative Models
7.93k stars 1.5k forks source link

Run in Google Collab? #64

Open DanielRamosAcosta opened 3 years ago

DanielRamosAcosta commented 3 years ago

There are non AI-users (like me) out there that would like to test these kind of project without having all the dependencies locally installed. I would recomend creating a Google Collab project demonstrating this library for more for greater diffusion!

loveexword commented 3 years ago

!git clone https://github.com/adamian98/pulse %cd pulse/ %mkdir input

upload png file into input

!python align_face.py -input_dir input/ -output_dir input1/

!python run.py -input_dir input1/ -output_dir out/

delete all files

%rm -rf input/ %mkdir input

loveexword commented 3 years ago

There are non AI-users (like me) out there that would like to test these kind of project without having all the dependencies locally installed. I would recomend creating a Google Collab project demonstrating this library for more for greater diffusion!

i finish it……

DanielRamosAcosta commented 3 years ago

I mean, it would be nice to have a "Open in Collab" badge, like deezer/spleeter does

cchanyu commented 3 years ago

!git clone https://github.com/adamian98/pulse %cd pulse/ %mkdir input

upload png file into input

!python align_face.py -input_dir input/ -output_dir input1/

!python run.py -input_dir input1/ -output_dir out/

delete all files

%rm -rf input/ %mkdir input

MAD RESPECT!! Anyone having issues? USE THIS!!!

Let me just tell you, I've spent 8 hours debugging all the issues that I've encountered during the installation and downloaded over 15GB of VS,Python stuff, only to realize that I'm stuck with insufficient memory to run the final program, which outputs the virtual face.

I spent another 5 hours trying to reallocate/reduce my Nvidia graphics card memory usage, which I failed at. Idk what I was doing anyways. So at the last hope, I tried this.. AND IT WORKED.


Newbie Instruction on how to use code 'Loveexword' wrote If you have never used Google Collab.