Skip to content

Commit

Permalink
Merge pull request #5 from ikawaha/develop
Browse files Browse the repository at this point in the history
Import puhitaku/go-waifu2x
  • Loading branch information
ikawaha committed Feb 18, 2022
2 parents 349e3ac + a711698 commit 84ec131
Show file tree
Hide file tree
Showing 51 changed files with 1,307 additions and 1,397 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: daily
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
20 changes: 20 additions & 0 deletions .github/workflows/reviewdog-golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Reviewdog

on:
pull_request:
types: [opened, synchronize]

jobs:
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ github.token }}
level: warning
golangci_lint_flags: "--config=.golangci.yml"
reporter: github-pr-review
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Go

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ['1.17.x']
runs-on: ${{ matrix.os }}

steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
check-latest: true

- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
path: src/github.com/ikawaha/waifu2x.go

- name: Build
run: go build -v ./...
working-directory: src/github.com/ikawaha/waifu2x.go

- name: Test
run: |
go test -v ./...
working-directory: src/github.com/ikawaha/waifu2x.go

- name: Benchmark
run: |
cd engine
go test -v -bench .
working-directory: src/github.com/ikawaha/waifu2x.go
34 changes: 34 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
run:

issues:
exclude-use-default: false
exclude-rules:
- path: _test\.go
linters:
- gocyclo

linters:
enable:
- gocyclo
- staticcheck
- govet
- golint
disable:
- maligned
- exhaustive
- noctx
- asciicheck
- sqlclosecheck
- rowserrcheck
- gosec
- scopelint
presets:
- bugs
- unused
- format

linters-settings:
gocyclo:
min-complexity: 15
errcheck:
ignore: Write|Close,fmt:.*,io/ioutil:^Read.*
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@ waifu2x.go is a clone of waifu2x-js.

waifu2x-js: https://github.com/takuyaa/waifu2x-js

Install
---

```shell
go install github.com/ikawaha/waifu2x.go@latest
```

Changes
---
* 2022-02-09: Imported changes from [go-waifu2x](https://github.com/puhitaku/go-waifu2x), a fork of this repository. This is an excellent job done by @puhitaku and @orisano. It is 14x faster than the original in the non-GPU case.

Note
---

This software includes a binary and/or source version of model data from waifu2x
which can be obtained from https://github.com/nagadomi/waifu2x.
This software includes a binary and/or source version of model data from waifu2x which can be obtained from https://github.com/nagadomi/waifu2x.

License
---

[MIT License](https://opensource.org/licenses/MIT)

MIT
126 changes: 0 additions & 126 deletions channel_image.go

This file was deleted.

Loading

0 comments on commit 84ec131

Please sign in to comment.