Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPEN-Windows #74

Open
Cioscos opened this issue Nov 30, 2021 · 32 comments
Open

GPEN-Windows #74

Cioscos opened this issue Nov 30, 2021 · 32 comments

Comments

@Cioscos
Copy link

Cioscos commented Nov 30, 2021

Hi!
I saw that you edited the code to work on Windows but from what I see it seems to be slower than "Linux" version.
Time ago, I created a stand-alone package to make GPEN upscaler run on Windows, with the original code. It doesn't requires python/MSVC/CUDA installed, just NVIDIA driver.
I would like to share this package here, maybe also in official README cause I'll upload it with any new commit.

@yangxy
Copy link
Owner

yangxy commented Dec 1, 2021

That's awesome. What could I do for you?

@Cioscos
Copy link
Author

Cioscos commented Dec 1, 2021

That's awesome. What could I do for you?

I just wanted permission to share link. Currently my version is edited to work with DeepFaceLab images metadata which is a famous software to create deepfakes, but it works also with normal images. I can share last version in some minutes.

@yangxy
Copy link
Owner

yangxy commented Dec 1, 2021

That's awesome. What could I do for you?

I just wanted permission to share link. Currently my version is edited to work with DeepFaceLab images metadata which is a famous software to create deepfakes, but it works also with normal images. I can share last version in some minutes.

Maybe you can share the link here, and I will add it to README.

@Cioscos
Copy link
Author

Cioscos commented Dec 1, 2021

That's awesome. What could I do for you?

I just wanted permission to share link. Currently my version is edited to work with DeepFaceLab images metadata which is a famous software to create deepfakes, but it works also with normal images. I can share last version in some minutes.

Maybe you can share the link here, and I will add it to README.

https://drive.google.com/file/d/1YJJVnPGq90e_mWZxSGGTptNQilZNfOEO/view?usp=drivesdk

This is the link. To make it work, you need to open install dependences bat file, first.
Gpen code is changed just for the scripts. You can use original gpen code and it will work.

@NoUserNameForYou
Copy link

NoUserNameForYou commented Dec 2, 2021

Colorization works but gpen doesn't. It processes and outputs the file but it's exactly the same. Real Esrgan upscaling works too.

@echo off
call _internal\setenv.bat

"%PYTHON_EXECUTABLE%" face_enhancement.py ^
--model GPEN-BFR-512 ^
--use_sr ^
--indir examples/imgs ^
--outdir examples/outs

pause

It works like this though. With use_sr.

@Cioscos
Copy link
Author

Cioscos commented Dec 2, 2021

Colorization works but gpen doesn't. It processes and outputs the file but it's exactly the same. Real Esrgan upscaling works too.

@echo off call _internal\setenv.bat

"%PYTHON_EXECUTABLE%" face_enhancement.py ^ --model GPEN-BFR-512 ^ --use_sr ^ --indir examples/imgs ^ --outdir examples/outs

pause

It works like this though. With use_sr.

I updated the version in the link, now works fine.

@NoUserNameForYou
Copy link

NoUserNameForYou commented Dec 4, 2021

Is there anything other than fixed bats? If yes can you just share them. I don't want to download the whole thing again.

@Cioscos
Copy link
Author

Cioscos commented Dec 4, 2021

Is there anything other than fixed bats? If yes can you just share them. I don't want to download the whole thing again.

I still didn't create GitHub repository, so or you wait for it, or you download again rar file. There are fixes in both bat files and python files.

@NoUserNameForYou
Copy link

Which link?

#74 (comment)

This is the old one.

@Cioscos
Copy link
Author

Cioscos commented Dec 4, 2021

Which link?

#74 (comment)

This is the old one.

It is always the same link. I update version. Use it, it will download last version.

@Cioscos
Copy link
Author

Cioscos commented Dec 12, 2021

Which link?

#74 (comment)

This is the old one.

From the same link I updated the package. Now you don't have to download everytime the entire pack.

@Cioscos
Copy link
Author

Cioscos commented Dec 13, 2021

@yangxy is there an idea about release date of training code?

@labels168
Copy link

The new code has been updated. Could you please help us to update it again? Thank you very much!

@Cioscos
Copy link
Author

Cioscos commented Dec 13, 2021

The new code has been updated. Could you please help us to update it again? Thank you very much!

No problem. Just use the link I shared or that you find in the GPEN readme.md in the main repository. This time will be the last which you will download the package 'cause this new version of my package can be updated using a bat file inside it.

@Cioscos
Copy link
Author

Cioscos commented Dec 13, 2021

The new code has been updated. Could you please help us to update it again? Thank you very much!

No problem. Just use the link I shared or that you find in the GPEN readme.md in the main repository. This time will be the last which you will download the package 'cause this new version of my package can be updated using a bat file inside it.

Important:
Some user reported that kaspersky antivirus detected a file of the package as virus put it is false positive. It is a file of git, cause my package has git installation inside.

@yangxy
Copy link
Owner

yangxy commented Dec 14, 2021

Please send me an email. I can tell you how to train GPEN.

@Cioscos
Copy link
Author

Cioscos commented Dec 14, 2021

Please send me an email. I can tell you how to train GPEN.

claudiocicca1998@gmail.com

@yangxy
Copy link
Owner

yangxy commented Dec 14, 2021

Please send me an email. I can tell you how to train GPEN.

claudiocicca1998@gmail.com

I will release the training codes. Stay tuned.

@kruno108
Copy link

I keep getting this error:
E:\GPEN\GPEN-Windows_internal\Python37\python.exe: can't open file 'face_enhancement.py': [Errno 2] No such file or directory

can you help me?

@Cioscos
Copy link
Author

Cioscos commented Dec 14, 2021

I keep getting this error:
E:\GPEN\GPEN-Windows_internal\Python37\python.exe: can't open file 'face_enhancement.py': [Errno 2] No such file or directory

can you help me?

You need to first open misc) Install or update GPEN.bat

@kruno108
Copy link

thank you :) Sorry for being boring. I was familiar with deepface and it was working on my comp without any problems (there was clear sequence when you staring the process, (finding faces, training... etc) I can't get this one)

now Im getting this message:
################ No landmarks in file input/imgs\70717071-660182505-397740380.jpg
0 70717071-660182505-397740380.jpg
Press any key to continue . . .

@Cioscos
Copy link
Author

Cioscos commented Dec 15, 2021

thank you :) Sorry for being boring. I was familiar with deepface and it was working on my comp without any problems (there was clear sequence when you staring the process, (finding faces, training... etc) I can't get this one)

now Im getting this message:
################ No landmarks in file input/imgs\70717071-660182505-397740380.jpg
0 70717071-660182505-397740380.jpg
Press any key to continue . . .

It is just a warning message. If the image processed is a normal image, that warning will be printed in the console, otherwise it means that the image gave in input is a DFL image, so it contains DFL metadata.

@Cioscos
Copy link
Author

Cioscos commented Dec 16, 2021

@yangxy Hi! Thank you very much for training code. I've just a question. As training dataset can we use a set without any landmarks or we need to find a specific type of set?

@jordanearth
Copy link

@Cioscos I downloaded and installed everything correctly but when I click any .bat file it says " all weights are already downloaded" and a line blinking below it. I wait for a few minutes, but nothing happens. Any ideas?

@Cioscos
Copy link
Author

Cioscos commented Dec 20, 2021

@Cioscos I downloaded and installed everything correctly but when I click any .bat file it says " all weights are already downloaded" and a line blinking below it. I wait for a few minutes, but nothing happens. Any ideas?

If you emailed me I answered there.

@jordanearth
Copy link

@Cioscos I downloaded and installed everything correctly but when I click any .bat file it says " all weights are already downloaded" and a line blinking below it. I wait for a few minutes, but nothing happens. Any ideas?

If you emailed me I answered there.

I waited 5+ minutes but still nothing happens.

@Cioscos
Copy link
Author

Cioscos commented Dec 20, 2021

@Cioscos I downloaded and installed everything correctly but when I click any .bat file it says " all weights are already downloaded" and a line blinking below it. I wait for a few minutes, but nothing happens. Any ideas?

If you emailed me I answered there.

I waited 5+ minutes but still nothing happens.

Open tasks manager and after bat file and see what it happens under cmd voice.

@jordanearth
Copy link

jordanearth commented Dec 20, 2021

@Cioscos I downloaded and installed everything correctly but when I click any .bat file it says " all weights are already downloaded" and a line blinking below it. I wait for a few minutes, but nothing happens. Any ideas?

If you emailed me I answered there.

I waited 5+ minutes but still nothing happens.

Open tasks manager and after bat file and see what it happens under cmd voice.

Nothing was happening. I had to run “clear_local_env.bat” from _internal and everything’s fine now. Thanks!

@turgor128
Copy link

Hello. Does CPU version still requires CUDA videocard? Because i get this message:

 Found GPU%d %s which is of cuda capability %d.%d.
 PyTorch no longer supports this GPU because it is too old.
 The minimum cuda capability supported by this library is %d.%d.

ValueError: Unknown CUDA arch (3.0+PTX) or GPU not supported

@2blackbar
Copy link

2blackbar commented Feb 4, 2022

they all dropped cuda compute 3.5 cards , lower than compute 5 wont work, sucks big time , had to buy new card.
They skimp on space so they wont even compile one pytorch cuda special version every half year to support older gpus and yet they keep releasing new versions that take up lots of GB of space all the time with minor differences... go figure.
Yeah in one year maybe even compute 5 wont be supported, this is just plain wrong.

@rajaarulsingh
Copy link

not working in cpu
185622751-7d5e943d-c7fa-4e25-850d-a7c1a85b3bab

@liudonghua123
Copy link

I got this error.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants