Skip to content

Commit cc7fd66

Browse files
committed
adjust command
1 parent 89fda48 commit cc7fd66

File tree

5 files changed

+11
-23
lines changed

5 files changed

+11
-23
lines changed

RealSR-NCNN-Android-CLI/Anime4k/src/main/jni/CLI/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ int main(int argc, char* argv[])
541541
);
542542

543543
std::cout
544-
<< "------------------------\n"
544+
// << "------------------------\n"
545545
<< "Welcome to Anime4KCPP\n"
546546
<< "------------------------\n";
547547

RealSR-NCNN-Android-GUI/app/src/main/java/com/tumuyan/ncnn/realsr/MainActivity.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ public class MainActivity extends AppCompatActivity {
121121
"./realcugan-ncnn -i input.png -o output.png -m models-pro -s 3 -n -1",
122122
"./realcugan-ncnn -i input.png -o output.png -m models-pro -s 3 -n 0",
123123
"./realcugan-ncnn -i input.png -o output.png -m models-pro -s 3 -n 3",
124-
"./resize-ncnn -i input.png -o output.png -m nearest -n -s 2",
125-
"./resize-ncnn -i input.png -o output.png -m nearest -n -s 4",
126-
"./resize-ncnn -i input.png -o output.png -m bilinear -n -s 2",
127-
"./resize-ncnn -i input.png -o output.png -m bilinear -n -s 4",
128124
"./Anime4k -i input.png -o output.png -z 2 ",
129125
"./Anime4k -i input.png -o output.png -z 2 -a -e 48",
130126
"./Anime4k -i input.png -o output.png -z 2 -b -r 48",
@@ -175,6 +171,8 @@ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
175171
return false;
176172
} else if (v == R.id.menu_avir2) {
177173
q = "./resize-ncnn -i input.png -o output.png -m avir -s 0.5";
174+
} else if (v == R.id.menu_nearest4) {
175+
q = "./resize-ncnn -i input.png -o output.png -m nearest -s 4";
178176
} else if (v == R.id.menu_de_nearest) {
179177
q = "./resize-ncnn -i input.png -o output.png -m de-nearest";
180178
} else if (v == R.id.menu_magick2) {
@@ -454,9 +452,9 @@ private List<String> getExtraCommands(String extraPath, String extraCommand) {
454452
List<String> cmdLabel = new ArrayList<>();
455453

456454
// 增加resize-ncnn经典插值放大的命令
457-
String[] classicalFilters = {"bicubic", "avir", "avir-lancir",};
455+
String[] classicalFilters = {"nearest", "bilinear", "bicubic", "avir", "avir-lancir",};
458456

459-
String[] classicalResize = {"2", "4"};
457+
String[] classicalResize = {"2", "4", "10"};
460458

461459
for (String f : classicalFilters) {
462460
for (String s : classicalResize) {

RealSR-NCNN-Android-GUI/app/src/main/res/menu/main_menu.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
android:id="@+id/menu_de_nearest"
3333
android:title="@string/menu_de_nearest"
3434
app:showAsAction="never" />
35+
<item
36+
android:id="@+id/menu_nearest4"
37+
android:title="@string/menu_nearest4"
38+
app:showAsAction="never" />
3539
<item
3640
android:id="@+id/menu_bench_mark"
3741
android:title="@string/menu_bench_mark"

RealSR-NCNN-Android-GUI/app/src/main/res/values-zh/strings.xml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
<string name="menu_help">帮助</string>
9393
<string name="menu_out">显示处理后的图片</string>
9494
<string name="menu_in">显示处理前的图片</string>
95+
<string name="menu_nearest4">Nearest放大4倍</string>
9596
<string name="menu_de_nearest">DeNearest缩小</string>
9697
<string name="menu_magick4">Magick缩小到1/4</string>
9798
<string name="menu_magick3">Magick缩小到1/3</string>
@@ -138,18 +139,6 @@
138139
<item>real-cugan-x4-conservative</item>
139140
<item>real-cugan-x4-noise0</item>
140141
<item>real-cugan-x4-noise3</item>
141-
<item>classical-nearest-x2</item>
142-
<item>classical-nearest-x4</item>
143-
<item>classical-bilinear-x2</item>
144-
<item>classical-bilinear-x4</item>
145-
<item>classical-bicubic-x2</item>
146-
<item>classical-bicubic-x4</item>
147-
<item>classical-avir-x0.5</item>
148-
<item>classical-avir-x2</item>
149-
<item>classical-avir-x4</item>
150-
<item>classical-avir-lancir-x2</item>
151-
<item>classical-avir-lancir-x4</item>
152-
153142
<item>Anime4k-x2</item>
154143
<item>Anime4k-x2-预处理-高斯模糊+双边滤镜</item>
155144
<item>Anime4k-x2-后处理-高斯模糊+双边滤镜</item>

RealSR-NCNN-Android-GUI/app/src/main/res/values/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ https://upscale.wiki/wiki/Model_Database There are many models here, download th
7878
<string name="path_not_exist">Not exist this directory</string>
7979
<string name="path_not_dir">The path is a file, not a directory</string>
8080
<string name="menu_out2in" translatable="false"><![CDATA[Output -> Input]]></string>
81+
<string name="menu_nearest4">Nearest 400%</string>
8182
<string name="menu_de_nearest">De Nearest</string>
8283
<string name="menu_magick4">Magick 25%</string>
8384
<string name="menu_magick3">Magick 33.3%</string>
@@ -161,10 +162,6 @@ https://upscale.wiki/wiki/Model_Database There are many models here, download th
161162
<item>real-cugan-pro-x3-conservative</item>
162163
<item>real-cugan-pro-x3-noise0</item>
163164
<item>real-cugan-pro-x3-noise3</item>
164-
<item>classical-nearest-x2</item>
165-
<item>classical-nearest-x4</item>
166-
<item>classical-bilinear-x2</item>
167-
<item>classical-bilinear-x4</item>
168165
<item>Anime4k-x2</item>
169166
<item>Anime4k-x2-pre-gaussian_blur-bilateral</item>
170167
<item>Anime4k-x2-post-gaussian_blur-bilateral</item>

0 commit comments

Comments
 (0)