observantdistressed commited on
Commit
d09d43c
·
verified ·
1 Parent(s): b913e22

Add Dildoing LoRA (nsfw_dildo) for natural dildo insertion, fix stale penis checkbox label

Browse files
Files changed (1) hide show
  1. app.py +20 -11
app.py CHANGED
@@ -45,6 +45,13 @@ NSFW_LORA_CONFIGS = {
45
  "trigger": "PENISLORA",
46
  "format": "kohya",
47
  },
 
 
 
 
 
 
 
48
  # Motion/action adapter — auto-loaded (not user-selectable) whenever any anatomy LoRA is on, so the
49
  # anatomy renders sharply AND the act moves naturally. The Hearmeman README says to stack anatomy
50
  # adapters underneath this action adapter.
@@ -531,7 +538,7 @@ def _generate(prompt_embeds, text_token_tags, image, last_image, height, width,
531
  return state.get("videos")[0], state.get("audio")[0].cpu(), state.get("sampling_rate")
532
 
533
 
534
- def generate(prompt, image_path=None, last_image_path=None, canvas=DEFAULT_CANVAS, duration=5, steps=25, seed=-1, upsample=False, turbo=False, nsfw_innie=False, nsfw_penis=False, progress=gr.Progress(track_tqdm=True)):
535
  """One request. `upsample` is last and defaults off, so a positional API client that predates it is unaffected."""
536
  if LOAD_ERROR:
537
  raise gr.Error(LOAD_ERROR)
@@ -550,7 +557,7 @@ def generate(prompt, image_path=None, last_image_path=None, canvas=DEFAULT_CANVA
550
  steps = 7 # 7 sigma points → 6 transformer evaluations (sweet spot for larryvrh v4-step600-EMA)
551
 
552
  # Anatomy LoRAs the user selected; the AIO motion adapter is auto-loaded whenever any anatomy LoRA is on.
553
- nsfw_keys = tuple(k for k, on in (("nsfw_innie", nsfw_innie), ("nsfw_penis", nsfw_penis)) if on)
554
  if nsfw_keys:
555
  nsfw_keys += ("nsfw_aio",)
556
  for _key in nsfw_keys:
@@ -924,8 +931,10 @@ with gr.Blocks(title="MiniMax-H3") as demo:
924
  info="Apply larryvrh distillation LoRA, reduce steps from 25 to 7")
925
  nsfw_innie = gr.Checkbox(label="NSFW Innie Pussy (HMInnie V1)", value=False,
926
  info="Apply HMInnie V1 anatomy LoRA (trigger: inniepussy)")
927
- nsfw_penis = gr.Checkbox(label="NSFW Penis (HMPenis V2)", value=False,
928
- info="Apply HMPenis V2 anatomy LoRA (trigger: HMPenis)")
 
 
929
  with gr.Row():
930
  image = gr.Image(label="First frame (optional)", type="filepath")
931
  last_image = gr.Image(label="Last frame (optional)", type="filepath")
@@ -951,13 +960,13 @@ with gr.Blocks(title="MiniMax-H3") as demo:
951
 
952
  gr.Examples(
953
  examples=[
954
- ["A red fox trotting through a snowy pine forest at dawn, snow crunching underfoot", None, None, "1344x768 · 16:9 full", 5, 25, -1, False, False, False, False],
955
- ["A busy night market, neon signs reflecting in puddles, sizzling street food", None, None, "768x1344 · 9:16 full", 5, 25, -1, False, False, False, False],
956
- ["A cellist playing a slow melody in an empty concert hall", None, None, "768x768 · 1:1 full", 5, 25, -1, False, False, False, False],
957
- ["The fox looks around, then trots deeper into the forest", "examples/first.png", None, "1344x768 · 16:9 full", 5, 25, -1, False, False, False, False],
958
- ["A slow seamless camera move from the first view to the last", "examples/first.png", "examples/last.png", "1344x768 · 16:9 full", 5, 25, -1, False, False, False, False],
959
  ],
960
- inputs=[prompt, image, last_image, canvas, duration, steps, seed, upsample, turbo, nsfw_innie, nsfw_penis],
961
  outputs=[video, report, upsampled, upsampled_panel],
962
  fn=generate,
963
  cache_examples=True,
@@ -966,7 +975,7 @@ with gr.Blocks(title="MiniMax-H3") as demo:
966
 
967
  run.click(
968
  generate,
969
- [prompt, image, last_image, canvas, duration, steps, seed, upsample, turbo, nsfw_innie, nsfw_penis],
970
  [video, report, upsampled, upsampled_panel, download_btn],
971
  api_name="generate",
972
  )
 
45
  "trigger": "PENISLORA",
46
  "format": "kohya",
47
  },
48
+ "nsfw_dildo": {
49
+ "repo": "EllaPriest45/MinimaxH3_Actions", # CivitAI "Dildoing" model 2903074, backup repo
50
+ "file": "Dildoing - MinimaxH3 - pumping a dildo insider her vagina.safetensors",
51
+ "scale": 0.7,
52
+ "label": "NSFW Dildoing (Dildo Insertion)",
53
+ "trigger": "pumping a dildo insider her vagina",
54
+ },
55
  # Motion/action adapter — auto-loaded (not user-selectable) whenever any anatomy LoRA is on, so the
56
  # anatomy renders sharply AND the act moves naturally. The Hearmeman README says to stack anatomy
57
  # adapters underneath this action adapter.
 
538
  return state.get("videos")[0], state.get("audio")[0].cpu(), state.get("sampling_rate")
539
 
540
 
541
+ def generate(prompt, image_path=None, last_image_path=None, canvas=DEFAULT_CANVAS, duration=5, steps=25, seed=-1, upsample=False, turbo=False, nsfw_innie=False, nsfw_penis=False, nsfw_dildo=False, progress=gr.Progress(track_tqdm=True)):
542
  """One request. `upsample` is last and defaults off, so a positional API client that predates it is unaffected."""
543
  if LOAD_ERROR:
544
  raise gr.Error(LOAD_ERROR)
 
557
  steps = 7 # 7 sigma points → 6 transformer evaluations (sweet spot for larryvrh v4-step600-EMA)
558
 
559
  # Anatomy LoRAs the user selected; the AIO motion adapter is auto-loaded whenever any anatomy LoRA is on.
560
+ nsfw_keys = tuple(k for k, on in (("nsfw_innie", nsfw_innie), ("nsfw_penis", nsfw_penis), ("nsfw_dildo", nsfw_dildo)) if on)
561
  if nsfw_keys:
562
  nsfw_keys += ("nsfw_aio",)
563
  for _key in nsfw_keys:
 
931
  info="Apply larryvrh distillation LoRA, reduce steps from 25 to 7")
932
  nsfw_innie = gr.Checkbox(label="NSFW Innie Pussy (HMInnie V1)", value=False,
933
  info="Apply HMInnie V1 anatomy LoRA (trigger: inniepussy)")
934
+ nsfw_penis = gr.Checkbox(label="NSFW Penis (Penis Lora - H3 v1.1)", value=False,
935
+ info="Apply Penis Lora - H3 v1.1 anatomy LoRA (trigger: PENISLORA)")
936
+ nsfw_dildo = gr.Checkbox(label="NSFW Dildoing (Dildo Insertion)", value=False,
937
+ info="Apply Dildoing LoRA for natural dildo insertion (trigger: pumping a dildo insider her vagina)")
938
  with gr.Row():
939
  image = gr.Image(label="First frame (optional)", type="filepath")
940
  last_image = gr.Image(label="Last frame (optional)", type="filepath")
 
960
 
961
  gr.Examples(
962
  examples=[
963
+ ["A red fox trotting through a snowy pine forest at dawn, snow crunching underfoot", None, None, "1344x768 · 16:9 full", 5, 25, -1, False, False, False, False, False],
964
+ ["A busy night market, neon signs reflecting in puddles, sizzling street food", None, None, "768x1344 · 9:16 full", 5, 25, -1, False, False, False, False, False],
965
+ ["A cellist playing a slow melody in an empty concert hall", None, None, "768x768 · 1:1 full", 5, 25, -1, False, False, False, False, False],
966
+ ["The fox looks around, then trots deeper into the forest", "examples/first.png", None, "1344x768 · 16:9 full", 5, 25, -1, False, False, False, False, False],
967
+ ["A slow seamless camera move from the first view to the last", "examples/first.png", "examples/last.png", "1344x768 · 16:9 full", 5, 25, -1, False, False, False, False, False],
968
  ],
969
+ inputs=[prompt, image, last_image, canvas, duration, steps, seed, upsample, turbo, nsfw_innie, nsfw_penis, nsfw_dildo],
970
  outputs=[video, report, upsampled, upsampled_panel],
971
  fn=generate,
972
  cache_examples=True,
 
975
 
976
  run.click(
977
  generate,
978
+ [prompt, image, last_image, canvas, duration, steps, seed, upsample, turbo, nsfw_innie, nsfw_penis, nsfw_dildo],
979
  [video, report, upsampled, upsampled_panel, download_btn],
980
  api_name="generate",
981
  )