Skip to content

Commit 03ddbc6

Browse files
author
Onion
committed
chore: chang diffusion init default value
1 parent 2bd7b50 commit 03ddbc6

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
本项目遵循 [语义化版本](https://semver.org/spec/v2.0.0.html)
66

7+
## v4.2.0
8+
9+
- modify: offloadToCpu && keepClipOnCpu && keepVaeOnCpu
10+
711
## v4.1.0
812

913
- fix: linux CXXABL1.3.13'not found problem

composeApp/src/commonMain/kotlin/org/onion/diffusion/viewmodel/ChatViewModel.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ class ChatViewModel : ViewModel() {
6060
var wtype = mutableStateOf(-1)
6161

6262
/** Offload to CPU - offload model computations to CPU */
63-
var offloadToCpu = mutableStateOf(false)
63+
var offloadToCpu = mutableStateOf(true)
6464

6565
/** Keep CLIP on CPU - keep CLIP model on CPU */
66-
var keepClipOnCpu = mutableStateOf(false)
66+
var keepClipOnCpu = mutableStateOf(true)
6767

6868
/** Keep VAE on CPU - keep VAE decoder on CPU */
69-
var keepVaeOnCpu = mutableStateOf(false)
69+
var keepVaeOnCpu = mutableStateOf(true)
7070

7171

7272
suspend fun selectDiffusionModelFile(): String{

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
agp = "8.7.3"
3-
app-version="4.1.0"
3+
app-version="4.2.0"
44
android-compileSdk = "35"
55
android-minSdk = "29"
66
android-targetSdk = "35"

0 commit comments

Comments
 (0)