<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pixel &#8211; YLovePhoto</title>
	<atom:link href="https://www.ylovephoto.com/en/tag/pixel/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ylovephoto.com/en</link>
	<description>Intrigued by photography</description>
	<lastBuildDate>Thu, 29 Jun 2023 21:10:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Upscaling a photo with free AI</title>
		<link>https://www.ylovephoto.com/en/2023/06/29/upscaling-a-photo-with-free-ai/</link>
		
		<dc:creator><![CDATA[Yves Roumazeilles]]></dc:creator>
		<pubDate>Thu, 29 Jun 2023 21:10:17 +0000</pubDate>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Image edit]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[ChatGPT]]></category>
		<category><![CDATA[Dall-E]]></category>
		<category><![CDATA[EasyDiffusion]]></category>
		<category><![CDATA[high-resolution]]></category>
		<category><![CDATA[Midjourney]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[pixel]]></category>
		<category><![CDATA[StableDiffusion]]></category>
		<category><![CDATA[Topaz]]></category>
		<category><![CDATA[upscaling]]></category>
		<guid isPermaLink="false">https://www.ylovephoto.com/en/?p=12955</guid>

					<description><![CDATA[Problem statement Sometimes, I am somewhat dissatisfied with the size of my digital photographs. The simplest way to improve (after the fact) is to run any Photoshop-like program, and apply a resampling (resize) preferably with the Lanczos method, in order to get 2x or 3x or 4x more pixels. It is fast and efficient, but [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Problem statement</h2>



<p>Sometimes, I am somewhat dissatisfied with the size of my digital photographs. The simplest way to improve (after the fact) is to run any Photoshop-like program, and apply a resampling (resize) preferably with the Lanczos method, in order to get 2x or 3x or 4x more pixels. It is fast and efficient, but it usually generates a slightly blurry but bigger picture. If the target is a large format print that could be watched from a short distance, or for something like printing on a very large canvas, I should have more details in the picture (more than what was initially collected by the camera). The image is still too small.</p>



<p>The other approach would be to use a software tool like Topaz Photo AI or the all-new Adobe Photoshop &#8220;Image Enhancer AI&#8221;. Those are Pro tools (&#8220;Pro&#8221; means &#8220;expensive&#8221;): Topaz costs 199$, its competition often relies on monthly subscriptions. For a normal guy (who only needs it a few times per year, at most), this is not applicable.</p>



<p>Why not look toward (free) Open Source tools? Fortunately, some are existing.</p>



<p>And I added another constraint: I want it to run on my own PC (no cloud resources and/or cloud subscription like what StableDiffusion requires).</p>



<h2 class="wp-block-heading">The general idea</h2>



<p>For a few months, I have been impressed by the multitude of Artificial Intelligence solutions (Didn&#8217;t you hear about something named ChatGPT?) and not only to generate human-readable text. Tools like StableDiffusion, Dall-E, or Midjourney generate spectacular pictures from a textual description (a prompt). But they often include a mechanism to extend their text-to-image activity to a much larger scale (usually they produce small pictures to sparingly use computer resources).</p>



<h2 class="wp-block-heading">My solution &#8211; in details</h2>



<p>I won&#8217;t detail the steps taken to reach that solution. But here it is.</p>



<p>One strong PC, with two options/directions that could be imagined.</p>



<ul class="wp-block-list">
<li>A powerful graphic/video card (not always, but often based on nVidia GPU).</li>



<li>A super-powerful PC with (most critical) a lot of memory.</li>
</ul>



<p>In my own case, I chose:</p>



<ul class="wp-block-list">
<li>i9-13900K (with a good AiO liquid cooler, because this beast can heat up quite quickly when running 100%),</li>



<li>64 gigabytes of DDR4-DRAM memory (you will hear that this is the limiting factor for the image size).</li>
</ul>



<p>But, you could work with a smaller CPU (with a lot of patience), or a Mac computer.</p>



<p>Nobody would claim this is a cheap PC, but it definitely works reasonably well.</p>



<h2 class="wp-block-heading">EasyDiffusion installation steps</h2>



<p><a href="https://github.com/easydiffusion/easydiffusion">EasyDiffusion</a> is a free version of a tool very similar to StableDiffusion. You may install it on your PC, and it will run either on the CPU or on the video card.</p>



<ul class="wp-block-list">
<li>Download the installation program from <a href="https://github.com/easydiffusion/easydiffusion">the EasyDiffusion home page</a> (according to your needs, you&#8217;ll choose the binary for Windows, Linux, or Mac).</li>



<li>Follow the installation steps from the page, don&#8217;t worry about changing any option right now. You will need some patience (it goes and download additional models and other packages, it will build some of the files during the installation).</li>



<li>Run the program from the Windows &#8220;Start&#8221; menu. This will open a Command window to run a few background things (no need to even look at this), then a browser window giving access to the EasyDiffusion user interface.</li>
</ul>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="600" height="458" src="https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-home-600x458.webp" alt="EasyDiffusion - Welcome page" class="wp-image-12960" srcset="https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-home-600x458.webp 600w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-home-300x229.webp 300w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-home-768x586.webp 768w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-home-1536x1172.webp 1536w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-home-400x305.webp 400w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-home.webp 1748w" sizes="(max-width: 600px) 100vw, 600px" /><figcaption class="wp-element-caption">EasyDiffusion &#8211; Welcome page after installation</figcaption></figure>



<ul class="wp-block-list">
<li>For the first configuration, I would recommend clicking at the top of the page on &#8220;Settings&#8221; and selecting the following program settings:
<ul class="wp-block-list">
<li>Auto-save Images: YES</li>



<li>Save Location: select the appropriate directory to save your creations.</li>



<li>Open browser on startup: YES</li>



<li>GPU memory usage: High (with 64 GB of DRAM, you want to use it all or as much as possible).</li>



<li>Use CPU (not GPU): YES</li>



<li>Beta channel: NO.</li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-large"><img decoding="async" width="455" height="600" src="https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-settings-455x600.webp" alt="EasyDiffusion - Settings for upscaling" class="wp-image-12962" srcset="https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-settings-455x600.webp 455w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-settings-228x300.webp 228w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-settings-768x1013.webp 768w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-settings-400x527.webp 400w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-settings.webp 939w" sizes="(max-width: 455px) 100vw, 455px" /><figcaption class="wp-element-caption">EasyDiffusion &#8211; Settings for upscaling</figcaption></figure>



<p>Create a text file whose name should be <strong>YR_MoreResolutions.plugin.js</strong> with the following text contents:</p>



<pre class="wp-block-code"><code>// ==UserScript==
// @name         Ski-SDUI-MoreResolutions
// @version      0.1-YR
// @description  More Resolution Options
// @author       Super.Skirv, JeLuF, YR
// ==/UserScript==

(function() {

	options="";
	for(i=6; i&lt;=32; i++) {
		options += '&lt;option value="' + (64*i) + '">' + (64*i) + '&lt;/option>';
	}
    options += '&lt;option value="' + 3072 + '">' + 3072 + '&lt;/option>';
    options += '&lt;option value="' + 4096 + '">' + 4096 + '&lt;/option>';
    options += '&lt;option value="' + 4640 + '">' + 4640 + '&lt;/option>';
    options += '&lt;option value="' + 6960 + '">' + 6960 + '&lt;/option>';
    options += '&lt;option value="' + 8192 + '">' + 8192 + '&lt;/option>';
    document.getElementById('width').innerHTML = options;
    document.getElementById('height').innerHTML = options;

})();
</code></pre>



<ul class="wp-block-list">
<li>Install the plugin, by copying the <strong>YR_MoreResolutions.plugin.js</strong> file in the C:\EasyDiffusion\plugins\ui directory.</li>
</ul>



<h2 class="wp-block-heading">Operation and typical use</h2>



<p>When arriving at the EasyDiffusion page in your browser, you will need to feed it with a source picture to enlarge and the right upscaling options:</p>



<figure class="wp-block-image size-large"><img decoding="async" width="600" height="580" src="https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-use-600x580.webp" alt="EasyDiffusion - The upscaling execution window" class="wp-image-12957" srcset="https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-use-600x580.webp 600w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-use-300x290.webp 300w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-use-768x742.webp 768w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-use-400x387.webp 400w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-use.webp 1384w" sizes="(max-width: 600px) 100vw, 600px" /><figcaption class="wp-element-caption">EasyDiffusion &#8211; The upscaling execution window</figcaption></figure>



<ul class="wp-block-list">
<li>Choose the source image with the &#8220;Browse&#8221; button.</li>



<li>Custom VAE: None</li>



<li>Image size: 3072 (width) by 2048 (height) &#8211; for 64 gigabytes of DRAM.
<ul class="wp-block-list">
<li>This parameter is dictated by:
<ul class="wp-block-list">
<li>The need to work on an image as large as possible</li>



<li>The memory size limitation. If you have only 16 gigabytes of DRAM memory, you will need to reduce these parameters each in a ratio of 2: 1536 by 1024. But you can explore the optimum for your configuration.</li>
</ul>
</li>



<li>Swap the parameters if the image is in portrait (vertical) orientation.</li>
</ul>
</li>



<li>Inference steps: 50 (this has practically no influence, you can leave the default value)</li>



<li><strong>Prompt strength: 0</strong> (<strong>This is the critical value:</strong> It will ensure that EasyDiffusion AI never tries generating a new artificial image from the prompt text, but concentrates on the upscaling job).</li>



<li>Output format: choose the right file format for you.</li>



<li>Show a live preview: NO</li>



<li>Scale up by <strong>4x</strong> with <strong>RealESRGAN_x4plus</strong> (Avoid RealESRGAN_4xplus_anime_6B which is totally not for photography)</li>



<li>The prompt (at the top of the page), and the Seed value (in &#8220;image settings&#8221;) are not used, except when naming the output file.</li>
</ul>



<p>If you don&#8217;t have enough memory, you can always reduce the &#8220;Image size&#8221; or you get a message like the following:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="600" height="263" src="https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-exec-error-600x263.webp" alt="EasyDiffusion - Execution error if you don't have enough memory for your upscaling settings" class="wp-image-12959" srcset="https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-exec-error-600x263.webp 600w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-exec-error-300x132.webp 300w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-exec-error-768x337.webp 768w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-exec-error-1536x673.webp 1536w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-exec-error-2048x898.webp 2048w, https://www.ylovephoto.com/en/wp-content/uploads/2023/06/EasyDiffusion-exec-error-400x175.webp 400w" sizes="auto, (max-width: 600px) 100vw, 600px" /><figcaption class="wp-element-caption">EasyDiffusion &#8211; Execution error if you don&#8217;t have enough memory for your upscaling settings</figcaption></figure>



<p>The message tells you what memory size it tried to allocate/reserve. This will guide you when reducing the &#8220;Image size&#8221;.</p>



<p>If you are correctly configured, after a few minutes, you will see the result like in:</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.ylovephoto.com/fr/wp-content/uploads/2023/06/EasyDiffusion-exec-OK-600x302.webp" alt="EasyDiffusion - Résultat d'une bonne exécution de la routine, avec une image à super-haute résolution" class="wp-image-13071"/><figcaption class="wp-element-caption">EasyDiffusion &#8211; Result of a nicely executed upscaling,  with its large size picture</figcaption></figure>



<p>Notice: the new resolution is now <strong>12288 x 8192 pixels</strong> (we left from 6960 x 4640 pixels, to reach no less than <strong>100 mega-pixels</strong>). But, above all, the Artificial Intelligence (of the ESRGAN network) determined new pixels not only interpolated but imagined as complementary to the existing ones and totally credible.</p>



<p>In the picture used for this example, don&#8217;t spend time checking the blurred background. But take a look at the fine details in the structure of the dragonfly wings. It may not be perfect (from the professional entomologist&#8217;s point of view, there are anatomy errors), but the ribs/veins and the light reflections are very natural-looking, even in areas where they are only half-drawn or half-blurred. The same remark applied to the eyes and antennas of the dragonfly.</p>



<p>On the opposite, don&#8217;t even believe the proposal from the software: It&#8217;s no use clicking the button to upscale again to 20032 x 13376; You already reached the maximum size allowed by the available memory. You can&#8217;t go further with <em>only</em> 64 GB.</p>



<p>If you want to check the results, I made the files available:</p>



<ul class="wp-block-list">
<li><a href="/ZIP/_MG_7514.JPG" data-type="URL" data-id="/ZIP/_MG_7514.JPG">Original</a></li>



<li><a href="/ZIP/_MG_7514-RealESRGAN_x4plus.png" data-type="URL" data-id="/ZIP/_MG_7514-RealESRGAN_x4plus.png">Upscaled x4</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Clean hot pixels from RAW files</title>
		<link>https://www.ylovephoto.com/en/2010/05/06/clean-hot-pixels-from-raw-files/</link>
		
		<dc:creator><![CDATA[Yves Roumazeilles]]></dc:creator>
		<pubDate>Thu, 06 May 2010 02:34:24 +0000</pubDate>
				<category><![CDATA[Image edit]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[pixel]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://ylovephoto.com/en/?p=5497</guid>

					<description><![CDATA[It is sometimes unpleasant to discover a little annoying problem like a defective pixel on the sensor of a digital photo camera. It produces a small colored pixel (often black or white, sometimes of some other color). On a RAW file, it could be worse if it produces a colored streak. It is most visible [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>It is sometimes unpleasant to discover a little annoying problem like a <a href="http://en.wikipedia.org/wiki/Defective_pixel">defective pixel</a> on the sensor of a digital photo camera. It produces a small colored pixel (often black or white, sometimes of some other color). On a RAW file, it could be worse if it produces a colored streak.</p>
<p>It is most visible when shooting long exposures and the strategy used by most photo cameras is simply to shoot an additional black picture(without opening the shutter) just after the photo you wanted to find the hot pixels and remove/subtract them from the original photo. This is observable as a relatively long computation after a long exposure photo.</p>
<div align=center style="margin-top:15px"">
    <img decoding="async" style="width: 343px; height: 325px;" border=2 alt="Example of hot strip removal" title="Example of hot strip removal" src="https://www.pixelfixer.org/HotStripBeforeAfter.jpg"></p>
<div class="footnote">Sample kindly provided by <a href="http://www.projectet.com" target="_blank">Dan Thorberg</a>.
        </div>
</p></div>
<p>It takes time in the field and it uses up the camera electrical energy. So, here is a small tool that allow to transfer this operation toward the studio PC: <a href="http://www.pixelfixer.org/">PixelFixer</a>.</p>
<p>The list of photo cameras this tool is compatible with contains a lot of cameras from Nikon, Canon, Pentax and Leica. No Sony I know of (they are left with the in-camera option that works well too).</p>
<p><a href="http://www.pixelfixer.org/download.html">Téléchargement gratuit de PixelFixer</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ISO is the new MP</title>
		<link>https://www.ylovephoto.com/en/2010/01/21/iso-is-the-new-mp/</link>
		
		<dc:creator><![CDATA[Yves Roumazeilles]]></dc:creator>
		<pubDate>Thu, 21 Jan 2010 19:45:09 +0000</pubDate>
				<category><![CDATA[Canon EOS 1D MkIV]]></category>
		<category><![CDATA[Nikon D3s]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[pixel]]></category>
		<guid isPermaLink="false">https://ylovephoto.com/en/?p=5137</guid>

					<description><![CDATA[During years we have been worried because people seemed only interested in getting more Mega-Pixels (MP) out of the new photo cameras (or camera feature sheets). It has been repeated often enough that this single quantity is not a good measure of camera performance. It was, when cameras had so few pixels (less than 3-5 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>During years we have been worried because people seemed only interested in getting more Mega-Pixels (MP) out of the new photo cameras (or camera feature sheets). It has been repeated often enough that this single quantity is not a good measure of camera performance. It was, when cameras had so few pixels (less than 3-5 MP) that picture quality was linked first to number of pixels, then to other parameters.</p>
<p>Since 2009, we can consider that the race for more pixels is over. All camera manufacturers decided more or less to go easy on resolution: Over 12-15 MP, you can easily print an A4 or Letter-size print in top quality. Most photographers will never need more. So, why go over 20 MP?</p>
<p>Most manufacturers followed the lead of Olympus and Nikon trying to enlarge the pixels in order to ensure they collect more light and this leads to a higher level of sensitivity as measured by the ISO standard. This is good, because this means that our pictures are going to be better and better, not only uselessly finer and finer. Moreover, maximum ISO sensitivity becomes a relatively good <em>proxy for image quality</em>.</p>
<p>However, there is a slippery slope here. It has already been observed in some Point-and-Shoot compact photo cameras: A manufacturer may be tempted to push a maximum ISO level to ridiculously stratospheric altitudes. It&#8217;s not only because you P&#038;S camera can do ISO 1600, that its pictures are still usable (noise cancellation algorithms may be so energetic that most of the details are blurred in the process).</p>
<p>Usually, in the D-SLR market we do not see this happening too often, but there is a risk. With Canon and Nikon leading the race with (pro) cameras over ISO 100,000, we already see figures that are amazingly high <em>and</em> images that are already quite bad (for a pro).</p>
<p>Don&#8217;t get me wrong! I&#8217;m quite happy to see that technology will soon be allowing us to shoot pictures in darkness without using a flash. But those two very serious camera manufacturers have obviously been racing to reach an ISO landmark. Some others, maybe less able, will reach it not only with barely usable photos, but with really unacceptable pictures. Then, it would become a fruitless race again, with figures creeping into the fact sheets and a real-life comparison will be ever more critical.</p>
<p>For me, the <a href="https://ylovephoto.com/en/slr/canon-eos-1d-mkiv/">Canon EOS 1D Mk IV</a> and <a href="https://ylovephoto.com/en/slr/nikon-d3s/">Nikon D3s</a> are useful because they produce absolutely great photos at ISO 32,800, not just because they can collect a barely informational document at ISO 102,400. Let&#8217;s be attentive with the present products from Canon and Nikon and the future cameras from all the photo camera manufacturers.</p>
<p>We should still be photographers and not just number-seeking blind consumers. I hope we are.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
