Git Product home page Git Product logo

sd-webui-hook's People

Contributors

nftblackmagic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sd-webui-hook's Issues

关于技术路线和一些需求方面的探讨

你好,我是在b站上看到你的视频的,觉得你的想法很不错,我之前也在做一个类似的项目,自己玩玩。
不过我使用的是gradio,请问你为什么没使用gradio,或者说gradio有什么弊端吗?
另外,我想实现,固化一些特定效果的功能,比如选择二次元效果,api执行的是特定的提示词+lora+contornet预处理器和模型,不知道这个应该如何实现,
希望你的项目也有可能实现这方面定制的功能
加油,去给你三连了 :)

其他插件的API调用

您好,我最近也在研究SD后端部署并通过API调用,但是我发现官网只支持controlnet插件的API调用,如果我想要实现其他插件(与controlnet在同级目录下)的API调用,我应该怎么做呢?可以给予我一些指点吗?非常感谢!

请问如果使用img2img的局部重绘功能,调用api的mask参数怎么得到呢

#缺mask
img2img = {
  "init_images": [
    img_str
  ],
  "prompt": "DB21-551<lora:DB21-551:1>",
  "steps": 30,
  "sampler_name": "Euler a",
  "cfg_scale": 7,
  "seed": -1,
  "width": 720,
  "height": 512,
  "denoising_strength": 0.75,
  "batch_size": 1,
  "send_images": True,
  "save_images": False,
  "controlnet_units": [
    {
      "input_image": img_str,
      "module": "mlsd",
      "model": "control_v11p_sd15_mlsd [aca30ff0]",
    }
  ]
}


headers = {
    "Authorization": "Basic c2Q6c2Qx"
}

#response = requests.post(url=f'{url}/controlnet/img2img', json=img2img, headers=headers)
response = requests.post(url=f'{url}/sdapi/v1/img2img', json=img2img, headers=headers)

就比如这一段代码,如果做inpainting,这个json文件其实是缺一个mask字段的,这个mask字段怎么得到呢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.