Comments (2)
I managed to run it with Pytorch 1.3 since it's the latest build that supports my GPU. Windows 8.1, Python 3.7, CUDA 10.2
You need to:
- Install basicsr, I already had it installed. If I remember correctly, I cloned the repo and modified requirements.txt to change pytorch version, and executed
pip install -e /path/to/basicsr
If you have version error with basicsr, just remove the line with version frombasicsr/__init__.py
- Run
pip install ninja
- Go to your python installation path, lib/site-packages/ and fix torch/hub.py , add
def get_dir():
return hub_dir
#required by facexlib, implemented only in Pytorch 1.6+
- Run
pip install facexlib
- Edit requirements.txt to exclude fresh pytorch, then run
pip install -r requirements.txt
- Similar to step 3, fix torch/utils/cpp_extension.py
- if you have utf-8 errors, change all
decode()
todecode('
encoding-for-your-spoken-language')
- in function
_prepare_ldflags
addextra_ldflags.append('c10_cuda.lib')
near the other similar lines
- Run
set BASICSR_JIT=True
- Run the py script from the Command Line Prompt of VS[YEAR] x64 Native Tools (Visual Studio Build Tools)
from gfpgan.
I have not tested it on pytorch1.4 or 1.1.
You may adapt to that version.
from gfpgan.
Related Issues (20)
- roop face enhancer is not working now HOT 1
- Nice
- C:\Users\MARY\Downloads
- C:\Users\MARY\Downloads HOT 1
- For Free HOT 1
- Gfpgan Not working on colab
- npm install replicate
- Can we only repair the lip(mouth) area๏ผ
- Temporal instability with faces on continuous frames
- How to train on 1024 x 1024 face images? HOT 2
- .github
- 10 HOT 1
- 28 HOT 3
- Jvkvfxj HOT 2
- 'torchvision.transforms.functional_tensor' has been depreciated to 'torchvision.transforms.functional' HOT 1
- Anaconda Prompt Displays Error Code When Running Pip Command
- Huggingface scaling issue
- Training Data and configurations for GFPGAN v1.4
- ls: cannot access 'results/cmp': No such file or directory HOT 4
- Would love to have you all as part of our company
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 gfpgan.