Skip to content

v1.2.2

Latest
Compare
Choose a tag to compare
@ikawaha ikawaha released this 03 Mar 23:01
· 5 commits to main since this release
7aac58d

What's Changed

  • Use float32 instead of float64 for model parameters by @ikawaha in #24

float64

$ go test -v ./... -bench . -run ^$
?   	github.com/ikawaha/waifu2x.go	[no test files]
?   	github.com/ikawaha/waifu2x.go/cmd	[no test files]
goos: darwin
goarch: amd64
pkg: github.com/ikawaha/waifu2x.go/engine
cpu: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
BenchmarkWaifu
BenchmarkWaifu/Neko
BenchmarkWaifu/Neko-8         	1000000000	         0.7264 ns/op
BenchmarkWaifu/Neko-alpha
BenchmarkWaifu/Neko-alpha-8   	1000000000	         0.8472 ns/op
PASS
ok  	github.com/ikawaha/waifu2x.go/engine	66.352s

float32

$ go test -v ./... -bench . -run ^$
?   	github.com/ikawaha/waifu2x.go	[no test files]
?   	github.com/ikawaha/waifu2x.go/cmd	[no test files]
goos: darwin
goarch: amd64
pkg: github.com/ikawaha/waifu2x.go/engine
cpu: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
BenchmarkWaifu
BenchmarkWaifu/Neko
BenchmarkWaifu/Neko-8         	1000000000	         0.6470 ns/op
BenchmarkWaifu/Neko-alpha
BenchmarkWaifu/Neko-alpha-8   	1000000000	         0.6131 ns/op
PASS
ok  	github.com/ikawaha/waifu2x.go/engine	45.159s

Full Changelog: v1.2.0...v1.2.2