internationalTD / defuser

the Stable Diffusion Plugin for Photoshop and Krita
https://internationaltd.github.io/defuser/
71 stars 2 forks source link

MacOS ? #9

Open johann-taberlet opened 2 years ago

johann-taberlet commented 2 years ago

Hi, really excited to have a try on this in Photoshop but I'm on a mac m1. I installed the plugin via Creative Cloud, the docker plugin is displayed in Photoshop but is empty :/ Is it even possible to make it works on a mac ?

remixer-dec commented 2 years ago

After some debugging, I got it working. For some reason even after adding localhost.tech to /etc/hosts, it still refuses to connect with Failed to connect or resolve host

All you need to do is: 1) manually install it (or check if it is installed in your plugins directory) 2) edit Main.js (replace all localhost.tech with localhost) 3) edit manifest.json, change domains array to a string, so it looks like this: "domains": "all" 4) start webui server

if you get an error like File ".../site-packages/gradio/components.py", line 495, in _round_to_precision return int(round(num, precision)) TypeError: type str doesn't define __round__ method edit that file and wrap num with float(num) Even though it is better to fix typing somewhere in a plug-in and not on a system level, for now, it works.

Edit: only txt2img seems to be working, img2img gets "TypeError: Cannot read properties of null (reading 'hxBytes')" caused by getter4