<?xml version="1.0" encoding="utf-8"?>
<!-- generator="Joomla! - Open Source Content Management" -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Home</title>
		<description><![CDATA[]]></description>
		<link>http://www.kazakhan.com/index.php</link>
		<lastBuildDate>Sun, 10 May 2026 16:45:17 +1000</lastBuildDate>
		<generator>Joomla! - Open Source Content Management</generator>
		<atom:link rel="self" type="application/rss+xml" href="http://www.kazakhan.com//index.php?format=feed&amp;type=rss"/>
		<language>en-gb</language>
		<item>
			<title>Auto Generate Images and Descriptions with AI</title>
			<link>http://www.kazakhan.com/index.php?view=article&amp;id=8:auto-image-generator&amp;catid=11</link>
			<guid isPermaLink="true">http://www.kazakhan.com/index.php?view=article&amp;id=8:auto-image-generator&amp;catid=11</guid>
			<description><![CDATA[<div class="feed-description"><p>The primary objective is to explore the evolution of AI-generated images by combining the capabilities of the Llava vision model and Stable Diffusion for automatic image generation. This involves an iterative process where images generated by Stable Diffusion are subsequently described using Llava, with the resulting descriptions then used as prompts for generating new images.</p>
<p>A basic prompt is used to generate initial images. Following each generation cycle, the summarize_image function is used to create descriptions of the generated image. This description is then fed back into the generate_image function as a prompt, driving the next iteration of image generation.</p>
<p>This has had some interesting results</p>
<p>The summarize_image and generate_image functions are at the bottom of the results.</p>
<div class="code-container">
    <div class="code-header" "andromeeda" style="background-color:#23262E;color:#D5CED9">
        <span class="language">Python</span>
        <button class="copy-button"><i class="far fa-copy"></i> Copy code</button>
    </div>
<pre class="" style="background-color:#23262E;color:#D5CED9" tabindex="0">
<code><div class="line"><span style="color:#D5CED9">prompt </span><span style="color:#EE5D43">=</span><span style="color:#96E072"> """Circular design, cute colorful unicorn, rainbow, vector"""</span></div><div class="line"><span style="color:#C74DED">for</span><span style="color:#D5CED9"> i </span><span style="color:#C74DED">in</span><span style="color:#FFE66D"> range</span><span style="color:#D5CED9">(</span><span style="color:#F39C12">0</span><span style="color:#D5CED9">, </span><span style="color:#F39C12">5</span><span style="color:#D5CED9">):</span></div><div class="line"><span style="color:#FFE66D">  print</span><span style="color:#D5CED9">(prompt)</span></div><div class="line"><span style="color:#D5CED9">  image_path </span><span style="color:#EE5D43">=</span><span style="color:#FFE66D"> generate_image</span><span style="color:#D5CED9">(prompt)</span></div><div class="line"><span style="color:#FFE66D">  print</span><span style="color:#D5CED9">(image_path)</span></div><div class="line"><span style="color:#D5CED9">  img </span><span style="color:#EE5D43">=</span><span style="color:#FFE66D"> Image</span><span style="color:#D5CED9">(image_path)</span></div><div class="line"><span style="color:#FFE66D">  display</span><span style="color:#D5CED9">(img)</span></div><div class="line"><span style="color:#D5CED9">  prompt </span><span style="color:#EE5D43">=</span><span style="color:#FFE66D"> summarize_image</span><span style="color:#D5CED9">(image_path)</span></div><div class="line">
</div><div class="line"><span style="color:#D5CED9">Circular design, cute colorful unicorn, rainbow, vector</span></div><div class="line"><span style="color:#D5CED9">tmp</span><span style="color:#EE5D43">/</span><span style="color:#F39C12">0405241924.</span><span style="color:#D5CED9">png</span></div></code></pre>
</div>
<p><img src="http://www.kazakhan.com/images/ai-images/0405241924.png" alt="0405241924" width="200" height="200" style="margin: 5px 5px 0px 0px;" /></p>
</div>]]></description>
			<category>Featured</category>
			<category>Code</category>
			<category>ROOT</category>
			<pubDate>Sun, 05 May 2024 12:18:33 +1000</pubDate>
		</item>
		<item>
			<title>Head Unit Going Again</title>
			<link>http://www.kazakhan.com/index.php?view=article&amp;id=7:head-unit-going-again&amp;catid=10</link>
			<guid isPermaLink="true">http://www.kazakhan.com/index.php?view=article&amp;id=7:head-unit-going-again&amp;catid=10</guid>
			<description><![CDATA[<div class="feed-description"><p>This is from the head unit in my car and this is what happens when you put 12v where it doesn't belong. The head unit still works fine except the screen is just white, it still responds to touch, if you know where.</p>
<p><img src="http://www.kazakhan.com/images/electronics/20230319_083312.jpg" alt="20230319 083312" width="714" height="322" style="display: block; margin-left: auto; margin-right: auto;" /></p>
</div>]]></description>
			<category>Featured</category>
			<category>Repairs</category>
			<category>ROOT</category>
			<pubDate>Tue, 21 Mar 2023 18:19:06 +1100</pubDate>
		</item>
		<item>
			<title>Soldering Skills...</title>
			<link>http://www.kazakhan.com/index.php?view=article&amp;id=15:soldering-skills&amp;catid=9</link>
			<guid isPermaLink="true">http://www.kazakhan.com/index.php?view=article&amp;id=15:soldering-skills&amp;catid=9</guid>
			<description><![CDATA[<div class="feed-description"><img src="http://www.kazakhan.com/images/electronics/20240522_091043.jpg" loading="lazy" width="4624" height="2084" data-path="local-images:/electronics/20240522_091043.jpg"/></div>]]></description>
			<category>Featured</category>
			<category>Arduino</category>
			<category>ROOT</category>
			<pubDate>Wed, 22 May 2024 11:02:17 +1000</pubDate>
		</item>
		<item>
			<title>Cole Web Scraper</title>
			<link>http://www.kazakhan.com/index.php?view=article&amp;id=6:cole-web-scraper&amp;catid=11</link>
			<guid isPermaLink="true">http://www.kazakhan.com/index.php?view=article&amp;id=6:cole-web-scraper&amp;catid=11</guid>
			<description><![CDATA[<div class="feed-description"><p>I have an Excel spreadsheet that I use for my budget and thought it would be nice to have live prices in the spreadsheet in order to create a weekly, fornightly etc shopping list...</p>
<p>The Python code won't display well here, so check it out on&nbsp;<a href="https://github.com/kazakhan/Coles-Supermarket-Product-Scraper" target="_self">GitHub</a>.</p>
<p><code></code></p></div>]]></description>
			<category>Featured</category>
			<category>Code</category>
			<category>ROOT</category>
			<pubDate>Sat, 04 Mar 2023 22:07:00 +1100</pubDate>
		</item>
		<item>
			<title>Fibonacci Clock</title>
			<link>http://www.kazakhan.com/index.php?view=article&amp;id=3:fibonacci-clock&amp;catid=9</link>
			<guid isPermaLink="true">http://www.kazakhan.com/index.php?view=article&amp;id=3:fibonacci-clock&amp;catid=9</guid>
			<description><![CDATA[<div class="feed-description"><p><img style="margin-top: 25px; margin-bottom: 0px;" src="http://www.kazakhan.com/images/electronics/20230404_075009.jpg" alt="20230404 075009" width="535" height="241" /></p>
<p>I was asked if I could fix a <a href="https://www.instructables.com/The-Fibonacci-Clock/">Fibonacci Clock</a>. It is Arduino based and open source so I thought rather than troubleshoot the intermittent issues with the clock I'd just replace it. The obvious choice was a Wemos D1 mini and a RTC shield because I had a few on hand. There was an issue of the battery draining in just minutes, I cut a trace on the board but there is a better solution at <a href="https://www.instructables.com/Using-the-Wifi-D1-Mini-Real-time-Clock-and-Logger/">Wifi-D1-Mini-Real-time-Clock-and-Logger</a>.</p>
</div>]]></description>
			<category>Featured</category>
			<category>Arduino</category>
			<category>ROOT</category>
			<pubDate>Sat, 25 Feb 2023 16:43:57 +1100</pubDate>
		</item>
		<item>
			<title>Programming a Neo-7M GPS Module</title>
			<link>http://www.kazakhan.com/index.php?view=article&amp;id=1:programming-a-neo-7m-gps-module&amp;catid=9</link>
			<guid isPermaLink="true">http://www.kazakhan.com/index.php?view=article&amp;id=1:programming-a-neo-7m-gps-module&amp;catid=9</guid>
			<description><![CDATA[<div class="feed-description"><h4>The Project</h4>
<p>Use a GPS module with a microcontroller and&nbsp;an OLED display to control 4 relays based on speed. Use a switch to arm\disarm the relays and a rotary encoder to set the speed at which each relay is activated.</p>
<h4>Getting Started</h4>
<p>I used an LG8F328P Arduino Nano clone and a Neo-7M GPS module and <a href="http://arduiniana.org/libraries/tinygpsplus">TinyGPS</a>, along with a small 128x64 pixel OLED display and using the <a href="https://github.com/adafruit/Adafruit_SSD1306">Adafruit_SSD1306</a> library to show the speed and latitude and longitude using the example code for TinyGPS. Everything worked fine however, it was a bit slow to update the speed on the display.</p>
<p><img src="http://www.kazakhan.com/images/projects/20240117_173214.jpg" alt="20240117 173214" width="768" height="486" style="display: block; margin-left: auto; margin-right: auto;" /></p>
</div>]]></description>
			<category>Featured</category>
			<category>Arduino</category>
			<category>ROOT</category>
			<pubDate>Mon, 23 Jan 2023 17:49:35 +1100</pubDate>
		</item>
	</channel>
</rss>
