From ae64723cddb466e0e7bfd4f0d04eebee7f360f5e Mon Sep 17 00:00:00 2001 From: tonquer Date: Tue, 26 Oct 2021 19:17:00 +0800 Subject: [PATCH] Update README.md --- README.md | 72 ++++--------------------------------------------------- 1 file changed, 5 insertions(+), 67 deletions(-) diff --git a/README.md b/README.md index 6d6bd62..82dbd1e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pip install waifu2x-vulkan -v # Use ```shell -import waifu2x_vulkan +from waifu2x_vulkan import waifu2x_vulkan # init waifu2x_vulkan.setDebug(True) @@ -32,70 +32,8 @@ assert sts==0 - Please see [waifu2x-ncnn-vulkan-GUI](https://github.com/tonquer/waifu2x-ncnn-vulkan-GUI) - Please see [test](https://github.com/tonquer/waifu2x-vulkan/blob/main/test/test.py) Example -## Build (Windows) -1. install CMake, Python, 7z -2. git clone -````shell -git clone https://github.com/tonquer/waifu2x-vulkan && cd waifu2x-vulkan -git submodule update --init --recursive -```` -3. Install Python,Please check select -```` -Download debugging symbols -Download debug binaries -```` -4. run (Use PowerShell) , set python path -````shell -$Env:PYTHON_BIN='C:\Python37\python.exe' -.\build.ps1 -```` - -``` -* 部分用户可能需要安装 Vulkan 运行环境, 这取决于你的显卡驱动中是否包含 vulkan.1.dll;\ - 如果编译后 waifu2x 无法使用, 请尝试安装: [最新的 Vulkan Runtime (来自官方)](https://sdk.lunarg.com/sdk/download/latest/windows/vulkan-runtime.exe) -``` - -## Build (macOS) -1. 安装 [Xcode](https://apps.apple.com/us/app/xcode/id497799835?mt=12), [Homebrew](https://brew.sh/), CMake 和 Python -````shell -brew install cmake python@3.9 -```` -2. 克隆本仓库 -````shell -git clone https://github.com/tonquer/waifu2x-vulkan && cd waifu2x-vulkan -git submodule update --init --recursive -```` -3. 执行编译脚本 +## Build ```shell -bash build_mac.sh -``` - -## Build (Linux) -1. 安装所需的软件包 (Ubuntu) -* P.S. 对于其他的发行版, 请自行寻找这些软件包所对应的名称, 然后使用软件包管理器手动安装它们 -````shell -sudo apt-get update -sudo apt-get install --no-install-recommends --no-install-suggests \ - python3.9 python3.9-dev build-essential cmake -```` -2. 克隆本仓库 -````shell -git clone https://github.com/tonquer/waifu2x-vulkan && cd waifu2x-vulkan -git submodule update --init --recursive -```` -3. 执行编译脚本 -```shell -bash build.sh -``` -* 如果编译后 waifu2x 无法使用, 请尝试安装: `libvulkan1` 软件包 +pip install wheel +python setup.py bdist_wheel +``` \ No newline at end of file