Giter Site home page Giter Site logo

krita-stablediffusion-webui-colab's Introduction



youtube
Shadertoy page
shadertoy.com/user/morimea
itch.io page
danilw.itch.io
Vulkan shadertoy launcher
vulkan-shadertoy-launcher
Godot projects repository
godot-utils-and-other

y.svg

Hi there ๐Ÿ‘‹

Graphic programming, GLSL and Godot projects.

๐Ÿ“• Blog Posts

Contact - message me anywhere, I'll respond.

Or s48gs.w <at> gmail {dot} com

krita-stablediffusion-webui-colab's People

Contributors

danilw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

krita-stablediffusion-webui-colab's Issues

[question] info

Cool, thanks for sharing this!

Do you plan to also support https://github.com/Interpause/auto-sd-paint-ext with Colab?

Do the new models also work without modifications? Just add the url? Has anyone tried them? (v1-5-pruned-emaonly.ckpt, sd-v1-5-inpainting.ckpt)

Regarding plugin-server encrypted communications, ngrok creates both http and https (same url) and https seems to work with the Krita plugin without modification. The patches mentioned in the readme for encryption are still necessary for privacy on the server (if the images are saved as a file on the server and if the prompts are saved in some log / cli history, or saved in some file associated with the images)

A change I made that maybe it can be useful to someone, to use the model from google drive:

## modified /cells/12/source:
@@ -1,8 +1,14 @@
 #@title Model
-user_header = f"\"Authorization: Bearer {huggingface_user_token}\""
-tflname = "/content/stable-diffusion-webui/"+local_file_name
+from google.colab import drive
+drive_path = "/content/drive"
+drive.mount(drive_path,force_remount=True)
+#/content/drive/MyDrive/AI/models/sd-v1-4.ckpt
+tflname = "/content/drive/MyDrive/AI/models/sd-v1-4.ckpt"
 if(not os.path.exists(tflname)):
-  !wget --header={user_header} $local_model_url
+  user_header = f"\"Authorization: Bearer {huggingface_user_token}\""
+  tflname = "/content/stable-diffusion-webui/"+local_file_name
+  if(not os.path.exists(tflname)):
+    !wget --header={user_header} $local_model_url
 if(os.path.exists("/content/stable-diffusion-webui/model.ckpt")):
   !rm "/content/stable-diffusion-webui/model.ckpt"
 !ln -s "$tflname" "/content/stable-diffusion-webui/model.ckpt"

It could probably be better added as an option.
In this way the download is not carried out every time the instance is restarted, the loading of the model, however, is a little slower when the service is started (and obviously takes up space in google drive)

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.