Algorick commited on
Commit
9784e1d
·
verified ·
1 Parent(s): b61c694

68b6d200d6d2

Browse files
Files changed (5) hide show
  1. pixrick/config.py +1 -1
  2. pixrick/core.py +0 -1
  3. web/app.js +1 -1
  4. web/backend.js +1 -1
  5. web/i18n/en.json +3 -3
pixrick/config.py CHANGED
@@ -56,7 +56,7 @@ TRANSLATOR_REPOS = {"traduci": "Helsinki-NLP/opus-mt-it-en", "in_italiano": "Hel
56
  NSFW_REPO = "Falconsai/nsfw_image_detection"
57
  NSFW_THRESHOLD = 0.6
58
 
59
- AUTO_MODEL = {"crea": "z-image", "ristila": "z-image", "modifica": "klein", "continua": "klein", "rifinisci": "z-image"}
60
  REFINE = "klein+z"
61
  REFINE_MODE = "rifinisci"
62
  REFINE_FIDELITY = 0.68
 
56
  NSFW_REPO = "Falconsai/nsfw_image_detection"
57
  NSFW_THRESHOLD = 0.6
58
 
59
+ AUTO_MODEL = {"crea": "z-image", "ristila": "klein", "modifica": "klein", "continua": "klein", "rifinisci": "z-image"}
60
  REFINE = "klein+z"
61
  REFINE_MODE = "rifinisci"
62
  REFINE_FIDELITY = 0.68
pixrick/core.py CHANGED
@@ -407,7 +407,6 @@ def plan(req: JobRequest, refs: list[Image.Image], mask: Image.Image | None, boo
407
  req.fidelity = auto_value
408
  if needs_klein and req.model == "auto":
409
  req.model = "klein"
410
- note = reason
411
  models = resolve_models(req.mode, req.model)
412
  req.quality = req.quality if req.quality in config.QUALITIES else "bilanciata"
413
  steps = {m: config.MODELS[m]["qualita"][req.quality] for m in models}
 
407
  req.fidelity = auto_value
408
  if needs_klein and req.model == "auto":
409
  req.model = "klein"
 
410
  models = resolve_models(req.mode, req.model)
411
  req.quality = req.quality if req.quality in config.QUALITIES else "bilanciata"
412
  steps = {m: config.MODELS[m]["qualita"][req.quality] for m in models}
web/app.js CHANGED
@@ -20,7 +20,7 @@ const MODES = {
20
  },
21
  ristila: {
22
  hint: "Stessa foto, stile nuovo.",
23
- placeholder: "Scegli uno stile a destra. Con Z-Image descrivi anche in breve chi c'è nella foto: «uomo con barba lunga, maglietta nera e chitarra rossa».",
24
  maxRefs: 1,
25
  button: "Ristila",
26
  },
 
20
  },
21
  ristila: {
22
  hint: "Stessa foto, stile nuovo.",
23
+ placeholder: "Scegli uno stile a destra. Se vuoi, aggiungi cosa cambiare: «di notte», «sotto la neve», «con un sorriso».",
24
  maxRefs: 1,
25
  button: "Ristila",
26
  },
web/backend.js CHANGED
@@ -531,7 +531,7 @@
531
  online: true,
532
  formati: ASPECTS,
533
  modelli: MODELS,
534
- automatico: { crea: "z-image", ristila: "z-image", modifica: "klein", continua: "klein", rifinisci: "z-image" },
535
  max_riferimenti: 4,
536
  };
537
  }
 
531
  online: true,
532
  formati: ASPECTS,
533
  modelli: MODELS,
534
+ automatico: { crea: "z-image", ristila: "klein", modifica: "klein", continua: "klein", rifinisci: "z-image" },
535
  max_riferimenti: 4,
536
  };
537
  }
web/i18n/en.json CHANGED
@@ -404,7 +404,6 @@
404
  "Scegli l'immagine su cui lavorare.": "Choose the image to work on.",
405
  "Scegli la figura da girare.": "Choose the figure to turn.",
406
  "Scegli lo sfondo": "Choose the background",
407
- "Scegli uno stile a destra. Con Z-Image descrivi anche in breve chi c'è nella foto: «uomo con barba lunga, maglietta nera e chitarra rossa».": "Pick a style on the right. With Z-Image also briefly describe who's in the photo: “man with a long beard, black t-shirt and red guitar”.",
408
  "Scegli uno stile o descrivi la trasformazione": "Pick a style or describe the transformation",
409
  "Sceglie il modello giusto per quello che stai facendo.": "Picks the right model for what you're doing.",
410
  "Schermata app": "App screen",
@@ -653,7 +652,8 @@
653
  "Stessa foto, stile nuovo: anime, fumetto, Funko, dipinto…": "Same photo, new style: anime, comic, Funko, painting…",
654
  "Scrivi cosa cambiare: togli, aggiungi, sostituisci. Anche solo in una zona.": "Write what to change: remove, add, replace. Even just one area.",
655
  "Puoi anche ingrandirla, scontornarla o vettorizzarla con i pulsanti sotto la foto.": "You can also upscale, cut out or vectorize it with the buttons under the photo.",
656
- "Scegli uno stile in «Stile e impostazioni». Con Z-Image descrivi anche in breve chi c'è nella foto: «uomo con barba lunga, maglietta nera e chitarra rossa».": "Pick a style in «Style and settings». With Z-Image also briefly describe who's in the photo: “man with a long beard, black t-shirt and red guitar”.",
657
  "Zona e impostazioni": "Area and settings",
658
- "Dipingi una zona": "Paint an area"
 
 
659
  }
 
404
  "Scegli l'immagine su cui lavorare.": "Choose the image to work on.",
405
  "Scegli la figura da girare.": "Choose the figure to turn.",
406
  "Scegli lo sfondo": "Choose the background",
 
407
  "Scegli uno stile o descrivi la trasformazione": "Pick a style or describe the transformation",
408
  "Sceglie il modello giusto per quello che stai facendo.": "Picks the right model for what you're doing.",
409
  "Schermata app": "App screen",
 
652
  "Stessa foto, stile nuovo: anime, fumetto, Funko, dipinto…": "Same photo, new style: anime, comic, Funko, painting…",
653
  "Scrivi cosa cambiare: togli, aggiungi, sostituisci. Anche solo in una zona.": "Write what to change: remove, add, replace. Even just one area.",
654
  "Puoi anche ingrandirla, scontornarla o vettorizzarla con i pulsanti sotto la foto.": "You can also upscale, cut out or vectorize it with the buttons under the photo.",
 
655
  "Zona e impostazioni": "Area and settings",
656
+ "Dipingi una zona": "Paint an area",
657
+ "Scegli uno stile a destra. Se vuoi, aggiungi cosa cambiare: «di notte», «sotto la neve», «con un sorriso».": "Pick a style on the right. If you like, add what to change: «at night», «in the snow», «smiling».",
658
+ "Scegli uno stile in «Stile e impostazioni». Se vuoi, aggiungi cosa cambiare: «di notte», «sotto la neve», «con un sorriso».": "Pick a style in «Style and settings». If you like, add what to change: «at night», «in the snow», «smiling»."
659
  }