Skip to content

Commit

Permalink
update tfjs & models
Browse files Browse the repository at this point in the history
  • Loading branch information
xororz committed Oct 16, 2024
1 parent ac15d4a commit 1dbc468
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 47 deletions.
127 changes: 83 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default {
realesrgan: {
model: ["anime_fast", "anime_plus", "general_fast", "general_plus"],
factor: [4],
tile_size: [64],
tile_size: [32, 48, 64, 96, 128, 192, 256],
},
realcugan: {
// factor: [2, 3, 4],
Expand All @@ -331,7 +331,7 @@ export default {
3: ["conservative", "denoise3x"],
4: ["conservative", "no-denoise", "denoise3x"],
},
tile_size: [32, 48, 64, 128],
tile_size: [32, 48, 64, 96, 128, 192, 256, 384, 512],
},
},
model: "anime_plus",
Expand Down Expand Up @@ -373,12 +373,15 @@ export default {
localStorage.setItem("min_lap", this.min_lap);
},
model_type() {
localStorage.setItem("model_type", this.model_type);
if (this.model_type === "realesrgan") {
if (!this.model_config.realesrgan.model.includes(this.model)) {
this.model = "anime_plus";
}
if (!this.model_config.realesrgan.tile_size.includes(this.tile_size)) {
this.tile_size = 64;
}
this.factor = 4;
this.tile_size = 64;
} else {
}
},
Expand Down

0 comments on commit 1dbc468

Please sign in to comment.