<div dir="ltr">David, <div>That is a cool image that was generated. Fortunately, not everyone needs to download code to play around with these new AI tools. </div><div><br></div><div>You can go to this URL and type in phrases or upload initial images: <a href="https://beta.dreamstudio.ai/dream">https://beta.dreamstudio.ai/dream</a></div><div><br></div><div>The prompt given to these engines is important. There's a site that helps you create a prompt and then shows outputs from different AI engines. </div><div><br></div><div>For instance, building on your example David, I used phraser.tech to come up with this prompt: "black and white photo made of nightsky texture of henri rousseau painting house at night by german larkin created at renaissance in medium resolution and with slow shutter speed, with inspiring feeling", which I fed i nto DreamStudio after uploading a photo of my house and got the following result. </div><div><br></div><div>Jerry</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 8, 2022 at 11:50 AM David Cooper <<a href="mailto:davecooper101@gmail.com">davecooper101@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div>You may have heard about DALL-E 2 - the machine learning model that can generate images from a string of text, almost by magic.</div><div><br></div><div>Up until recently, in order to play with this or similar tools you had to either apply to get free time, or buy access to a server or service.</div><div><br></div><div>Just in the past two weeks, if you have a good enough machine, you can now download a similar model and scripts and run it on your own, which I did. It is pretty amazing. The model is called <i>Stable Diffusion</i> and the code is on GitHub. (The model itself is on HuggingFace).</div><div><br></div><div>You can even take a photo or image of your own and have the system modify it… here’s an example. Starting with my photo and a prompt of “Henri Rousseau painting house at night”, it turned my photo into a rather cool picture:</div><div><br></div><div><img id="m_-8512515660495397153360FB3D4-037E-4826-99B7-12AAE2AC4098" src="cid:1831dda42f8f7de997e1"><img id="m_-8512515660495397153FD0DA481-A2A7-4A00-932D-4C962FC40343" src="cid:1831dda42f84a4d7b2c2"></div><div><br></div><div>Some notes on this:</div><div><br></div><div><ul><li>To download the model from <a href="http://HuggingFace.co" target="_blank">HuggingFace.co</a>, you need to provide your name and email and agree to their terms on avoiding malicious use, etc. The model itself is 4.2gb in size.</li><li>I followed these instructions for how to run it on a Mac M1 machine: <a href="https://replicate.com/blog/run-stable-diffusion-on-m1-mac" target="_blank">https://replicate.com/blog/run-stable-diffusion-on-m1-mac</a> </li><li>Here’s a good overview of the general situation on this: <a href="https://arstechnica.com/information-technology/2022/09/with-stable-diffusion-you-may-never-believe-what-you-see-online-again/" target="_blank">https://arstechnica.com/information-technology/2022/09/with-stable-diffusion-you-may-never-believe-what-you-see-online-again/</a> - this was the article that got me started on this.</li><li>You probably need about 16gb of memory to run the scripts</li><li>Input and output pictures are limited to 512 x 512 pixels. (I tried a normal iPhone picture without shrinking it and making it square and the program needed 133gb of memory and failed.)</li><li>I did have to edit the img2img.py script to get it to work (copying a line from the text2img.py script).</li><li>There are a lot of moral questions about this - what you create, whose artistic work you are implicitly borrowing - but if you choose long-dead artists, I don’t see any harm.</li><li>It does not handle faces well; If you ask for a picture of a dog, sometimes the image has the wrong number of legs, etc.</li><li>If you want to try this out without using your own machine, you can use this page: <a href="https://replicate.com/stability-ai/stable-diffusion" target="_blank">https://replicate.com/stability-ai/stable-diffusion</a> - it was overloaded yesterday but might be working now.</li></ul></div><div><br></div><div>Ping me if you’d like more details. It’s a lot of fun.</div><div><br></div><div>-Dave Cooper</div><div><br></div><div><br></div></div>===============================================<br>
::The Lexington Computer and Technology Group Mailing List::<br>
Reply goes to sender only; Reply All to send to list.<br>
Send to the list: <a href="mailto:LCTG@lists.toku.us" target="_blank">LCTG@lists.toku.us</a>      Message archives: <a href="http://lists.toku.us/private.cgi/lctg-toku.us" rel="noreferrer" target="_blank">http://lists.toku.us/private.cgi/lctg-toku.us</a><br>
To subscribe: email <a href="mailto:lctg-subscribe@toku.us" target="_blank">lctg-subscribe@toku.us</a>  To unsubscribe: email <a href="mailto:lctg-unsubscribe@toku.us" target="_blank">lctg-unsubscribe@toku.us</a><br>
Future and Past meeting information: <a href="http://LCTG.toku.us" rel="noreferrer" target="_blank">http://LCTG.toku.us</a><br>
List information: <a href="http://lists.toku.us/listinfo.cgi/lctg-toku.us" rel="noreferrer" target="_blank">http://lists.toku.us/listinfo.cgi/lctg-toku.us</a><br>
This message was sent to <a href="mailto:jerryharri@gmail.com" target="_blank">jerryharri@gmail.com</a>.<br>
Set your list options: <a href="http://lists.toku.us/options.cgi/lctg-toku.us/jerryharri@gmail.com" rel="noreferrer" target="_blank">http://lists.toku.us/options.cgi/lctg-toku.us/jerryharri@gmail.com</a><br>
</blockquote></div>