DarkHorse0725 / getimg-ai-api

1 stars 1 forks source link

default parameters towards HedCut effect #1

Open im4media opened 1 year ago

im4media commented 1 year ago

https://github.com/DarkHorse0725/getimg-ai-api/blame/26f8b187eeb08040cc84281a6a13863d7ffbc79e/src/App.js#L5

Please change default parameters to:

  const [selectedImg, setSelectedImg] = useState(null);
  const [outputImg, setOutputImg] = useState(null);
  const [prompt, setPrompt] = useState("Create WSJ hedcut-style portraits with a vintage newspaper feel, using a simple yet effective line work to capture subjects' unique features. Focus on thick lines, dots, and hatching techniques to suggest contours, facial structure, hair, and accessories. Use stippling to create texture while keeping a minimalist approach. To achieve an old-age newspaper feel, desaturate the colors, limiting them to shades of black and white. Seize the limited color palette to create contrast through shading and bold lines. Apply a texture effect to the portraits and add a halftone filter to create a print-like look. Aim for a WSJ hedcut style while incorporating the vintage printing feel.");
  const [strength, setStrength] = useState(0.5);
  const [steps, setSteps] = useState(25);
  const [guidance, setGuidance] = useState(9);
  const [seed, setSeed] = useState(1887667748);
  const [scheduler, setScheduler] = useState("euler_a");

And apply another API endpoint before generate img2img, please try: https://docs.getimg.ai/operation/operation-post_stable_diffusion_controlnet set "controlnet": "lineart-1.1",

im4media commented 1 year ago

There's a western face issue as well, the prompt below could mitigate it:

Create WSJ hedcut-style portraits with a vintage newspaper feel, using a simple yet effective line work to capture subjects' unique features. Pay special attention to the unique features of Asian faces to prevent the portraits from leaning towards a western face. Use thick lines, dots, and hatching techniques to suggest contours, facial structure, hair, and accessories, but aim for a more sketchy and organic feel. Use stippling to create texture while keeping a minimalist approach. To achieve an old-age newspaper feel, desaturate the colors, limiting them to shades of black and white. Seize the limited color palette to create contrast through shading and bold lines. Apply a texture effect to the portraits and add a halftone filter to create a print-like look. Aim for a WSJ hedcut style while incorporating the vintage printing feel.