The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(create): Reset to model defaults goes back to the picked model
purple8d4b39bd8ec9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b3a7dfa9..cea6c82f 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -187,6 +187,12 @@ image models in the cloud catalogue.afterwards. The same happened when the app was closed on one of those tabs.Each tab now keeps its own values, and a distilled video model keeps its fewsteps instead of the 30 of its model family.+- **Draft, Standard and High follow the model you picked.** The Quality+ buttons for images counted from the step count of the model family, so on a+ checkpoint built for a few steps, such as SD Turbo with 4, Draft meant 15+ steps and the image came out overcooked. Standard is now the model's own+ step count, and Draft and High scale from it. "Reset to model defaults" goes+ back to those values as well, for images and for fast video models.- **A failed subscription payment is shown as one.** When a renewal paymentfailed, the account window said "No active plan" and the Cloud windowoffered the plans again, although a new plan cannot be bought until the opendiff --git a/src/lib/release-notes.ts b/src/lib/release-notes.tsindex 1b53dda8..8420c138 100644--- a/src/lib/release-notes.ts+++ b/src/lib/release-notes.ts@@ -267,6 +267,10 @@ export const RELEASE_NOTES: ReleaseNote[] = [title: 'Image settings survive a visit to Music, Lip sync or Motion.',detail: 'Steps, CFG and Quality for images came back changed after you opened Music, Lip sync or Motion in between. Quality on Draft, for example, read High with 50 steps afterwards. The same happened when the app was closed on one of those tabs. Each tab now keeps its own values, and a distilled video model keeps its few steps instead of the 30 of its model family.',},+ {+ title: 'Draft, Standard and High follow the model you picked.',+ detail: 'The Quality buttons for images counted from the step count of the model family, so on a checkpoint built for a few steps, such as SD Turbo with 4, Draft meant 15 steps and the image came out overcooked. Standard is now the model\'s own step count, and Draft and High scale from it. "Reset to model defaults" goes back to those values as well, for images and for fast video models.',+ },{title: 'A failed subscription payment is shown as one.',detail: 'When a renewal payment failed, the account window said "No active plan" and the Cloud window offered the plans again, although a new plan cannot be bought until the open invoice is paid. Both now say that the last payment failed and have a "Pay open invoice" button that opens your account on lu-labs.ai in the browser. Credits you bought stay usable, also after a plan has ended.',diff --git a/src/stores/__tests__/quality-measures-from-the-picked-model.test.ts b/src/stores/__tests__/quality-measures-from-the-picked-model.test.tsindex b73615a1..423e5ebc 100644--- a/src/stores/__tests__/quality-measures-from-the-picked-model.test.ts+++ b/src/stores/__tests__/quality-measures-from-the-picked-model.test.ts@@ -106,3 +106,29 @@ describe('the other ends', () => {expect(values()).toEqual({ steps: 15, cfgScale: 5 })})})++describe('"Reset to model defaults" goes back to the picked model too', () => {+ const reset = () => useCreateStore.getState().resetParamsToModelDefaults()++ it('sd_turbo returns to its own 4 steps at CFG 1, not to the 25 of the SD family', () => {+ useCreateStore.getState().setImageModel('sd_turbo.safetensors', 'sd15')+ useCreateStore.setState({ steps: 40, cfgScale: 9 })+ reset()+ expect(values()).toEqual({ steps: 4, cfgScale: 1 })+ })++ it('an ordinary checkpoint returns to the values of its family, as before', () => {+ useCreateStore.getState().setImageModel('dreamshaper_8.safetensors', 'sd15')+ useCreateStore.setState({ steps: 40, cfgScale: 9 })+ reset()+ expect(values()).toEqual({ steps: MODEL_TYPE_DEFAULTS.sd15.steps, cfgScale: MODEL_TYPE_DEFAULTS.sd15.cfgScale })+ })++ it('a lightning video model returns to its 6 steps at CFG 1', () => {+ useCreateStore.getState().setIntent('video')+ useCreateStore.getState().setVideoModel('wan2.2_i2v_lightning_4steps.safetensors')+ useCreateStore.setState({ steps: 30, cfgScale: 6 })+ reset()+ expect(values()).toEqual({ steps: 6, cfgScale: 1 })+ })+})diff --git a/src/stores/createStore.ts b/src/stores/createStore.tsindex db73f363..45393ee9 100644--- a/src/stores/createStore.ts+++ b/src/stores/createStore.ts@@ -1222,6 +1222,10 @@ export const useCreateStore = create<CreateState>()(const d = s.mode === 'video'? (MODEL_TYPE_DEFAULTS[classifyModel(s.videoModel)] || MODEL_TYPE_DEFAULTS.unknown): MODEL_TYPE_DEFAULTS[s.imageModelType]+ // The picked model's own values where it has some: a distilled+ // checkpoint reset to its family's 25 or 30 steps renders to mush.+ // LU Cloud renders with its own model, there the family stays.+ const own = s.backend === 'cloud' ? {} : s.mode === 'video' ? videoModelParams(s.videoModel) : imageModelParams(s)set({sampler: d.sampler,scheduler: d.scheduler,@@ -1229,6 +1233,7 @@ export const useCreateStore = create<CreateState>()(cfgScale: d.cfgScale,width: d.width,height: d.height,+ ...own,hiresFixEnabled: false,hiresScale: 1.5,hiresDenoise: 0.5,