27 lines
858 B
Diff
27 lines
858 B
Diff
|
diff --git a/src/filesystem_utils.h b/src/filesystem_utils.h
|
||
|
index fdf172c..9706dc9 100644
|
||
|
--- a/src/filesystem_utils.h
|
||
|
+++ b/src/filesystem_utils.h
|
||
|
@@ -169,7 +169,7 @@ static path_t sanitize_filepath(const path_t& path)
|
||
|
if (filepath_is_readable(path))
|
||
|
return path;
|
||
|
|
||
|
- return get_executable_directory() + path;
|
||
|
+ return "/usr/share/waifu2x-ncnn-vulkan/" + path;
|
||
|
}
|
||
|
|
||
|
#endif // FILESYSTEM_UTILS_H
|
||
|
diff --git a/src/main.cpp b/src/main.cpp
|
||
|
index fa10e6f..5590b2f 100644
|
||
|
--- a/src/main.cpp
|
||
|
+++ b/src/main.cpp
|
||
|
@@ -470,7 +470,7 @@ int main(int argc, char** argv)
|
||
|
int noise = 0;
|
||
|
int scale = 2;
|
||
|
std::vector<int> tilesize;
|
||
|
- path_t model = PATHSTR("models-cunet");
|
||
|
+ path_t model = PATHSTR("/usr/share/waifu2x-ncnn-vulkan/models-cunet");
|
||
|
std::vector<int> gpuid;
|
||
|
int jobs_load = 1;
|
||
|
std::vector<int> jobs_proc;
|