Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Aug 23, 2021
0 parents commit 2439f40
Show file tree
Hide file tree
Showing 6 changed files with 736 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.bin filter=lfs diff=lfs merge=lfs -text
18 changes: 18 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
project(deepbooru-ncnn)

cmake_minimum_required(VERSION 3.9)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CUSTOM_WARNINGS "-Wall -Wextra -Wno-unused-parameter -Wno-comment -Wno-unused-function -Wold-style-cast -Wsign-conversion -Wno-system-headers")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")

find_package(Threads REQUIRED)
find_package(ncnn REQUIRED)
find_package(ImageMagick REQUIRED)
find_package(ImageMagick COMPONENTS MagickWand REQUIRED)

add_executable(dd-ncnn dd_main.cxx)
include_directories(${ImageMagick_MagickWand_INCLUDE_DIRS})
target_link_libraries(dd-ncnn ncnn ${ImageMagick_LIBRARIES})
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# deepbooru-ncnn

Describes animu images

run ``dd-ncnn -s -i *.webp`` on the images, run on list of images to not load model a billion times
170 changes: 170 additions & 0 deletions dd_main.cxx

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions model-dd/resnet_dd.bin
Git LFS file not shown
Loading

0 comments on commit 2439f40

Please sign in to comment.