Code Monkey home page Code Monkey logo

Comments (2)

remixer-dec avatar remixer-dec commented on May 21, 2024 3

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:

  1. 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 from basicsr/__init__.py
  2. Run pip install ninja
  3. 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+
  1. Run pip install facexlib
  2. Edit requirements.txt to exclude fresh pytorch, then run pip install -r requirements.txt
  3. Similar to step 3, fix torch/utils/cpp_extension.py
  • if you have utf-8 errors, change all decode() to decode('encoding-for-your-spoken-language')
  • in function _prepare_ldflags add extra_ldflags.append('c10_cuda.lib') near the other similar lines
  1. Run set BASICSR_JIT=True
  2. Run the py script from the Command Line Prompt of VS[YEAR] x64 Native Tools (Visual Studio Build Tools)

from gfpgan.

xinntao avatar xinntao commented on May 21, 2024 1

I have not tested it on pytorch1.4 or 1.1.
You may adapt to that version.

from gfpgan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.