<?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>画像処理 | 星空の風景, 日々の風景</title>
	<atom:link href="https://globe3.ddns.net/wp/category/starry-sky/image-processing/feed/" rel="self" type="application/rss+xml" />
	<link>https://globe3.ddns.net/wp</link>
	<description>星空のこと. 日々に想うこと.</description>
	<lastBuildDate>Tue, 17 Nov 2026 07:42:50 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
	<item>
		<title>Siril 画像処理の私的なメモ</title>
		<link>https://globe3.ddns.net/wp/siril-image-processing-workflow-2026-06/</link>
					<comments>https://globe3.ddns.net/wp/siril-image-processing-workflow-2026-06/#respond</comments>
		
		<dc:creator><![CDATA[minmin]]></dc:creator>
		<pubDate>Sat, 12 Sep 2026 01:00:24 +0000</pubDate>
				<category><![CDATA[Siril]]></category>
		<category><![CDATA[画像処理]]></category>
		<guid isPermaLink="false">https://globe3.ddns.net/wp/?p=3453</guid>

					<description><![CDATA[これは、Siril を用いた天体画像処理の一例です。 以下に、Siril 1.5や VeraLux 向けに、Siril Python Script コードを追い、その仕組みをメモしています。記載と編集を随時行っています。 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">これは、Siril を用いた天体画像処理の一例です。</p>



<p class="wp-block-paragraph">以下に、Siril 1.5や VeraLux  向けに、Siril Python Script コードを追い、その仕組みをメモしています。<br>記載と編集を随時行っています。画像処理の仕方以外の記事が多いと感じるでしょう。</p>



<h2 class="wp-block-heading">NGC2685</h2>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="800" height="719" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/09/NGC2685_Crop-AGR-SPCC_GraX0.96-SyQonprism-_IHS-Link_GHS-BP_Wavelets_GHS_result_800.jpg" alt="" class="wp-image-6008" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/09/NGC2685_Crop-AGR-SPCC_GraX0.96-SyQonprism-_IHS-Link_GHS-BP_Wavelets_GHS_result_800.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/09/NGC2685_Crop-AGR-SPCC_GraX0.96-SyQonprism-_IHS-Link_GHS-BP_Wavelets_GHS_result_800-300x270.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/09/NGC2685_Crop-AGR-SPCC_GraX0.96-SyQonprism-_IHS-Link_GHS-BP_Wavelets_GHS_result_800-150x135.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/09/NGC2685_Crop-AGR-SPCC_GraX0.96-SyQonprism-_IHS-Link_GHS-BP_Wavelets_GHS_result_800-768x690.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">NASAが公開する画像の様に、極リング内部を強調した処理を行いました。</p>



<p class="wp-block-paragraph">Name: NGC 2685<br>Date: 2026-03-20T19-36, 2026-03-21T20-56<br>SQM: 21.64 mag/arcsec2 (Yamanashi)<br>Optics: Takahashi TS-160, HEUIB-II<br>Camera: ASI533MC Pro, gain 100, offset 20, -20deg<br>Exposure: 180s x 118 (total 5h54m)</p>



<p class="wp-block-paragraph">NGC2685画像処理<br>勾配補正、色校正、 SyQon Starless 恒星分離, MTF Stretchを用いて分離：銀河星雲分離, IHSを用いて分離<br>Deconvolution：GraXpert<br>ノイズ除去：SyQon Prism<br>恒星と銀河星雲を再合成：VeraLux Star Composer</p>



<p class="wp-block-paragraph">SyQon を多様すると今までの作風と、ちょっと色合いが変わっていく感じがしてます。</p>



<h2 class="wp-block-heading">Arp 273</h2>



<figure class="wp-block-image size-full"><img decoding="async" width="1200" height="1200" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/09/Arp273_HEUIB-II_2026-01-11-12-16-17_9h48m_StarComposer.jpg" alt="" class="wp-image-6527" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/09/Arp273_HEUIB-II_2026-01-11-12-16-17_9h48m_StarComposer.jpg 1200w, https://globe3.ddns.net/wp/wp-content/uploads/2026/09/Arp273_HEUIB-II_2026-01-11-12-16-17_9h48m_StarComposer-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/09/Arp273_HEUIB-II_2026-01-11-12-16-17_9h48m_StarComposer-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/09/Arp273_HEUIB-II_2026-01-11-12-16-17_9h48m_StarComposer-768x768.jpg 768w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<p class="wp-block-paragraph">Name: Arp 273<br>Date: 2026-01-11T22-45, 2026-01-12T19-30, 2026-01-16T19-04, 2026-01-17T19-03<br>SQM: 21.64 mag/arcsec2 (Yamanashi)<br>Optics: Takahashi TS-160, HEUIB-II<br>Camera: ASI533MC Pro, gain 100, offset 20, -15deg<br>Exposure: 180s x 196 (total 9h48m)</p>



<p class="wp-block-paragraph">Arp273画像処理<br>勾配補正、色校正、分離：StarNet CLI tools<br>ノイズ除去：SyQon Prism<br>Deconvolution：GraXpert<br>恒星と銀河星雲を再合成：VeraLux Star Composer</p>



<p class="wp-block-paragraph">Pythonスクリプト機能が導入されてからは、Sirilから行えることが広がっています。</p>



<h2 class="wp-block-heading">Siril 画像処理の流れの例</h2>



<ul class="wp-block-list">
<li>勾配補正、色校正など
<ul class="wp-block-list">
<li>Astrometry: 天体位置</li>



<li>Crop: トリミング</li>



<li>Auto Gradient Removal : 勾配補正（又は、 VeraLux Nox (Background Extraction)、 GraXpert BE）</li>



<li>SPCC (Gaia Spectrum): 恒星スペクトルデータを用いた色校正</li>



<li>Cosmetic Correction (CFAあり): 必要に応じて</li>



<li>別名でファイル保存</li>
</ul>
</li>
</ul>



<ul class="wp-block-list">
<li>恒星処理
<ul class="wp-block-list">
<li>Desaturate Stars: 必要に応じて</li>



<li>Aberrations Remover: 必要に応じて</li>



<li>Deconvolution: Cosmic Clarity Sharpening,  Stellar Only (Stellar Amount: 0.16 、0.32など)</li>



<li>恒星除去：恒星部分を分離
<ul class="wp-block-list">
<li>StarNet CLI tools</li>



<li>SyQon Starless
<ul class="wp-block-list">
<li>Stretch Options<br>Method: MTF Stretch (MTF = Midtone Transfer Function)<br>Median Target: <br><br>例）MTF Stretch<br>　　　Linked stretch (preserve star colors) → ON<br>　　　Median Target → 0.050 ～ 0.2<br><br>経験則から、以下の記述をしています。<br>Median = 0.050, 0.075<br>弱いストレッチ：淡い構造のコントラストが強調された。恒星状になってしまう。<br><br>Median = 0.15 以上<br>強いストレッチ：ガス塊や星雲の細かく淡い構造は保護された。</li>



<li>Statistical Stretch：統計的ストレッチ</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>



<li>銀河星雲処理
<ul class="wp-block-list">
<li>Deconvolution: 対象銀河星雲付近の恒星からDynamic PSF、FITSデータからCDELT1,2を、この2つの値から、PSF値を求める。
<ul class="wp-block-list">
<li>GraXpert (Strength=0.80など)</li>



<li>Cosmic Clarity Sharpening, Object</li>
</ul>
</li>



<li>ノイズ除去（VeraLux Silentium（GHS前に適応）、若しくは、DeepSNR denoising）
<ul class="wp-block-list">
<li>VeraLux Silentium：線形処理に設計された、AI非依存のノイズ除去</li>



<li>SyQon Prism (Strength=0.32, Taget Softなど)</li>



<li>DeepSNR denoising : </li>
</ul>
</li>



<li>恒星除去：銀河星雲部分を分離
<ul class="wp-block-list">
<li>StarNet CLI tools</li>



<li>SyQon Starless
<ul class="wp-block-list">
<li>IHS</li>
</ul>
</li>
</ul>
</li>



<li>ストレッチ: 
<ul class="wp-block-list">
<li>GHS (Stretch factor, Local stretch intensityを高める場合もある)
<ul class="wp-block-list">
<li>Linear stretch (BP shift)は行わない。最終に行う。</li>
</ul>
</li>



<li>VeraLux Hyper Metric Stretch (HMS)</li>
</ul>
</li>



<li>Wavelets Transformation</li>



<li>ノイズ除去：2度目のノイズ除去（VeraLux SilentiumはGHS後なので条件に合わない）
<ul class="wp-block-list">
<li>SyQon Prism (Strength=0.32, Taget Softなど)</li>



<li>GraXpert Denoising (Strength=0.16, 0.32 など）</li>
</ul>
</li>



<li>色相補正（Siril: Color saturation, threshold 1.00は未使用）
<ul class="wp-block-list">
<li>VeraLux Curves：Akima補間法を用いて、RGB、Lab、LCH、HSVのコントラストを輝度構造と色の強度を個別に調整</li>



<li>VeraLux Vectra：LCH（明度、彩度、色相）色空間での補正</li>
</ul>
</li>



<li>ストレッチ
<ul class="wp-block-list">
<li>GHS : BP Shift (Black Point Shift)</li>
</ul>
</li>
</ul>
</li>



<li>恒星、銀河星雲再合成
<ul class="wp-block-list">
<li>VeraLux Star Composer（以前は、Star recomposition）</li>
</ul>
</li>



<li>色相補間
<ul class="wp-block-list">
<li>LCh色空間: VeraLux Vectra</li>
</ul>
</li>
</ul>



<h2 class="wp-block-heading">勾配補正</h2>



<h3 class="wp-block-heading">Auto Gradient Removal</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">背景除去は、その役割上、常に大スケールのコントラストを除去します。そのため、暗い領域が平坦化されていると感じる場合は、通常、モデルが柔らかすぎて実際の信号を削り取っていることを意味します。</p>



<p class="wp-block-paragraph">その場合は、「Scale」を高くするか、「structure protection」をオンにしたままにするか、あるいは低度の「simplified model」に切り替えてください。<br>経験則として、実際に目に見える勾配をまだ除去できる範囲で、最も硬いモデルを使用することをお勧めします。<br><a rel="noopener" target="_blank" href="https://www.facebook.com/groups/841870683930320/posts/1490938619023520/">https://www.facebook.com/groups/841870683930320/posts/1490938619023520/</a><br><br>作者であるCyril Richardさんのコメントです。</p>
</blockquote>



<p class="wp-block-paragraph">Auto Gradient Removal は、数値を変更後は、繰り返して、[Apply]を押して行います。<br>画像を初めに戻す必要はありません。</p>



<p class="wp-block-paragraph">Cyril Richardさんのコメントにある『最も硬いモデル』は、Model degreeの数値を上げる事かな。</p>



<ul class="wp-block-list">
<li>Scale:  マルチスケールモデルの平滑化半径、ピクセル数。初めは、&#8221;5&#8243;です。
<ul class="wp-block-list">
<li>数値が大きほど、広範囲の大きな勾配のみ除去される。</li>



<li>数値が小さいと、小さく局所な変化を追える。</li>



<li>光害のにじみや局所なグラデーションがあるならば、数値を上げる。</li>
</ul>
</li>



<li>Smoothness:  追加のぼかし処理。
<ul class="wp-block-list">
<li>数値が大きいと滑らかで穏やかになる。</li>



<li>補正後の背景に斑点状のアーティファクトが見られるならば、数値を下げます。</li>
</ul>
</li>



<li>Simplefied model: 背景が無い画像、例えば画像いっぱいの銀河などに有効です。
<ul class="wp-block-list">
<li>Model degree: 初めは2です。</li>
</ul>
</li>



<li>Structure protection:  星雲や銀河など広範囲の明るい部分を検出し、それらを勾配補正から外す。
<ul class="wp-block-list">
<li>Protection threshold:  初めは、&#8221;0.05&#8243;です。<br>数値が低いほど感度が高くなり保護効果が高くなる。<br>数値が高いと明るい天体のみ保護される。暗い星雲は背景とされ、差し引かれるかもしれない。</li>



<li>Protection amount: 初めは、&#8221;0.50&#8243;です。保護マスクの広がり。数値が大きと広範囲。<br>補正後に明るい恒星や星雲周辺にかすかなリング状やハロー状のアーティファクトが見られるならば、　</li>
</ul>
</li>



<li>Downsample:  初めは、&#8221;4&#8243;です。
<ul class="wp-block-list">
<li>プレビューを手早く見たいときや、フルサイズの画像処理を早く行うなどの場合は&#8221;8&#8243;にします。</li>
</ul>
</li>



<li>Mode : 減算を行うか、加算を行うか。減算は光害、月の明かり、霧などの補正に通常は使います。 </li>
</ul>



<h2 class="wp-block-heading">収差補正</h2>



<h3 class="wp-block-heading">Aberrations Remover</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">このモデルは、バックグラウンド除去、及び、色補正後の線形画像を対象としています。<br>最良の結果を得るためには、デコンボリューションやノイズ低減処理を行う前に適用して下さい。<br><br>通常、これらのパラメータを調整する必要はありません。<br>strength: 収差補正の強度を調整します。<br>Dark ringing reduction: 強力な補正の副作用として明るい星の周囲に現れる可能性のあるダークリンギングアーティファクトを抑制するために、追加のフィルターを適用します。このオプションは、そのようなアーティファクトが確認できる場合にのみ有効にして下さい。<br>Protect Background: ARの適用を背景以外のピクセルに限定し、信号レベルの低い領域での過剰な処理を防ぎます。<br><br><a rel="noopener" target="_blank" href="https://github.com/riccardoalberghi/abberation_models/releases/tag/2.0.1">https://github.com/riccardoalberghi/abberation_models/releases/tag/2.0.1</a></p>
</blockquote>



<p class="wp-block-paragraph">作者は、 Riccardo Alberghiさん。 彼は、『天文学に情熱を注いでいます。深宇宙天体の撮像を専門としており、GraXpertやSirilの収差除去ツールなど、AIに基づくオープンソースの画像処理ツールの開発にも貢献しています。』</p>



<p class="wp-block-paragraph">Strenght: 強度。1のままで良いらいしです。</p>



<p class="wp-block-paragraph">Dark riging reduction: 恒星の周りに、黒い輪が見られる場合に使用します。</p>



<p class="wp-block-paragraph">Protect background: ピクセルをマスクで覆い隠し、保護された領域には補正を施しません。</p>



<h2 class="wp-block-heading">Deconvolution</h2>



<h3 class="wp-block-heading">GraXpert, Deconvolution (Objects), PSF Sizeの数値は？</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Siril,  Dynamic PSF<br><a rel="noopener" target="_blank" href="https://siril.readthedocs.io/en/latest/Dynamic-PSF.html">https://siril.readthedocs.io/en/latest/Dynamic-PSF.html</a></p>
</blockquote>



<p class="wp-block-paragraph">FWHM𝑥および FWHM𝑦：</p>



<div class="wp-block-math"><math display="block"><semantics><mrow><msub><mtext>FWHM</mtext><mi>x</mi></msub><mo>=</mo><mn>2</mn><msub><mi>σ</mi><mi>x</mi></msub><msqrt><mrow><mn>2</mn><mrow><mspace width="0.1667em"></mspace><mi>log</mi><mo>⁡</mo><mspace width="0.1667em"></mspace></mrow><mn>2</mn></mrow></msqrt></mrow><annotation encoding="application/x-tex">\text{FWHM}_x = 2\sigma_x\sqrt{2\log 2}</annotation></semantics></math></div>



<div class="wp-block-math"><math display="block"><semantics><mrow><msub><mtext>FWHM</mtext><mi>y</mi></msub><mo>=</mo><mn>2</mn><msub><mi>σ</mi><mi>y</mi></msub><msqrt><mrow><mn>2</mn><mrow><mspace width="0.1667em"></mspace><mi>log</mi><mo>⁡</mo><mspace width="0.1667em"></mspace></mrow><mn>2</mn></mrow></msqrt></mrow><annotation encoding="application/x-tex">\text{FWHM}_y = 2\sigma_y\sqrt{2\log 2}</annotation></semantics></math></div>



<p class="wp-block-paragraph">σx は、x方向の星像のGaussian（ガウス分布）の標準偏差<br>σy はy方向<br></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">恒星独自のFWHM<br><a rel="noopener" target="_blank" href="https://siril.readthedocs.io/en/latest/photometry/quickphotometry.html">https://siril.readthedocs.io/en/latest/photometry/quickphotometry.html</a></p>
</blockquote>



<figure class="wp-block-image size-large"><img decoding="async" src="https://siril.readthedocs.io/ja/latest/_images/3D-StarPSF.png" alt=""/></figure>


<p>https://siril.readthedocs.io/ja/latest/_images/3D-StarPSF.png</p>


<p class="wp-block-paragraph">Siril Dynamic PSFの値を見てみます。例えば、</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-7387b849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<p class="wp-block-paragraph">Siril　Average Moffat PSF<br>N: 3 stars (0 saturated and excluded)<br>B: 0.000749<br>A: 0.003588<br>Beta: 3.38<br>FWHMx: 4.27&#8243;<br>FWHMy: 4.11&#8243;<br>r: 0.963<br>Angle: 80.89 deg<br>rmse: 3.413e-05</p>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<p class="wp-block-paragraph">Moffat PSF<br>測定星数 =&gt;  3<br><br><br>Beta = &gt; 3.38<br>FWHMx =&gt;  4.27秒角<br>FWHMy = &gt; 4.11秒角<br>Roundness：丸み =&gt;  0.963<br>Angle = &gt; 80.89°<br></p>
</div>
</div>



<p class="wp-block-paragraph">4.27″ や 4.11″ は pixel ではなく arcsecです。角度の単位としての秒は、分の1/60の角度です。</p>



<p class="wp-block-paragraph">Graxpertは、PSF Sizeの単位は、ピクセルです。なので、単純にFWHMx:とFWHMy:の平均値を入れても単位が違うので意味を成しません。</p>



<p class="wp-block-paragraph">画像の1 pixelが、空の上で何秒角（arcsec）に相当するかを求める必要があります。</p>



<p class="wp-block-paragraph">FITSデータの、&#8221;CDELT1&#8243;, &#8220;CDELT2&#8243;に注目します。</p>



<p class="wp-block-paragraph">CDELT1: X軸（横方向、一般的には赤経 ：RA 側）の1ピクセルあたりの変化量<br>CDELT2: Y軸（縦方向、一般的には赤緯 ：Dec 側）の1ピクセルあたりの変化量<br>単位は 度（degree） が使われます。</p>



<p class="wp-block-paragraph">例えば、</p>



<pre class="wp-block-code"><code>CDELT1 = -0.000216049837916824
CDELT2 = 0.000216165447682517</code></pre>



<pre class="wp-block-code"><code>CDELT1: X方向：|−0.0002160498379|*3600 = 0.7777794"/pixel
CDELT2: Y方向：  0.0002161654477 *3600 = 0.7781956"/pixel</code></pre>



<pre class="wp-block-code"><code>X方向　=&gt; 0.7778"/pixel
Y方向  =&gt; 0.7782"/pixel</code></pre>



<p class="wp-block-paragraph">1 pixel は、約 0.778 arcsec です。</p>



<pre class="wp-block-code"><code>X方向：FWHMx=4.27" → 4.27"/0.7778"/pixel = 5.49 pixel →　FWHMx 約 5.49 pixel
Y方向：FWHMy=4.11" → 4.11"/0.7782"/pixel = 5.28 pixel →　FWHMy 約 5.28 pixel</code></pre>



<p class="wp-block-paragraph">ここでのPSFは、r: 0.963で円形に近いので、単純に平均します。<br>FWHM平均　→　(5.49 pixel + 5.28 pixel)/2 = 5.385 pixel</p>



<p class="wp-block-paragraph">GraXpert, Deconvolution (Objects), PSF Size に入れる値は、[5.4] になります。</p>



<p class="wp-block-paragraph">今まで単純にSiril Dynamic PSF,  Moffat PSF の値を入れていましたが、FWHMとPSFの関係が分かったようです。Moffat PSF値である 4.2、や、PSF平均値である 5.4を入れて Deconvolutionを行っても大きな差が見られない感じがしています。</p>



<p class="wp-block-paragraph">さらに深掘りするならば、<br>$ find /usr/local/share/GraXpert-linux -iname &#8216;deconv&#8217; -o -iname &#8216;onnx&#8217;<br>/usr/local/share/GraXpert-linux/lib/graxpert/deconvolution.pyc<br>このファイルを逆コンパイルして ↓</p>



<h4 class="wp-block-heading">decompyle3　を用いて逆コンパイル（は、行っていません）</h4>



<p class="wp-block-paragraph">decompyle3を使う仮想環境を作ります。</p>



<pre class="wp-block-code"><code>python3.12 -m venv /tmp/decompyle-env
source /tmp/decompyle-env/bin/activate
pip install decompyle3</code></pre>



<pre class="wp-block-code"><code>decompyle3 \
  /usr/local/share/GraXpert-linux/lib/graxpert/deconvolution.pyc \
  &gt; /tmp/deconvolution.py</code></pre>



<pre class="wp-block-code"><code># Unsupported bytecode in file /usr/local/share/GraXpert-linux/lib/graxpert/deconvolution.pyc
# Unsupported Python version, 3.11, for decompilation</code></pre>



<pre class="wp-block-code"><code>file /usr/local/share/GraXpert-linux/lib/graxpert/deconvolution.pyc
/usr/local/share/GraXpert-linux/lib/graxpert/deconvolution.pyc: Byte-compiled Python module for CPython 3.11</code></pre>



<p class="wp-block-paragraph">python 3.11が必要か&#8230;</p>



<h2 class="wp-block-heading">恒星除去</h2>



<h3 class="wp-block-heading">StarNet CLI tools</h3>



<h3 class="wp-block-heading">SyQon Starless</h3>



<p class="wp-block-paragraph">Stretch Options, Method: MTF Stretch </p>



<p class="wp-block-paragraph">M82の画像を、SyQon Starless, Zenith Model を用いて分離した。その際にMTF Stretchを使った結果が下画像です。</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-7387b849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-full"><img decoding="async" width="469" height="532" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/09/M82_MTF0.4-LogD-12.30_VeraLux_StarComposer.jpg" alt="" class="wp-image-6119" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/09/M82_MTF0.4-LogD-12.30_VeraLux_StarComposer.jpg 469w, https://globe3.ddns.net/wp/wp-content/uploads/2026/09/M82_MTF0.4-LogD-12.30_VeraLux_StarComposer-300x340.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/09/M82_MTF0.4-LogD-12.30_VeraLux_StarComposer-150x170.jpg 150w" sizes="(max-width: 469px) 100vw, 469px" /></figure>



<p class="wp-block-paragraph">MTF = 0.2<br>ガス塊や星雲の細かく淡い構造は保護された。</p>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="472" height="533" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/09/M82_MTF0.05-LogD-12.30_VeraLux_StarComposer.jpg" alt="" class="wp-image-6120" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/09/M82_MTF0.05-LogD-12.30_VeraLux_StarComposer.jpg 472w, https://globe3.ddns.net/wp/wp-content/uploads/2026/09/M82_MTF0.05-LogD-12.30_VeraLux_StarComposer-300x339.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/09/M82_MTF0.05-LogD-12.30_VeraLux_StarComposer-150x169.jpg 150w" sizes="(max-width: 472px) 100vw, 472px" /></figure>



<p class="wp-block-paragraph">MTF = 0.05<br>淡い構造のコントラストが強調された。恒星状になってしまう。</p>
</div>
</div>



<h4 class="wp-block-heading">MTF Stretch / Median</h4>


<div class="hide-content">


<ul class="wp-block-list">
<li>MTF Stretch / Median<br>MTF = Midtone Transfer Function<br>Median Targetは、MTF Stretch後の画像の「中央値（Median）」をどの明るさにするかを指定します。<br><code>0.1 → 中央値を10%程度</code><br><code>0.2 → 中央値を20%程度</code><br><code>0.3 → 中央値を30%程度</code><br><br>例）MTF Stretch<br>　　　Linked stretch (preserve star colors) → ON<br>　　　Median Target → 0.1～0.2<br><br>Median = 0.050, 0.075<br>弱いストレッチ　：銀河の淡い構造をできるだけ守りたい<br>星も銀河も比較的暗い状態のままZenithに渡されます。<br><code>明るい星 → 認識できる</code><br><code>暗い星 → 認識されにくくなる可能性</code><br><code>淡い銀河の腕 → 保護されやすい</code><br><code>淡いハロー → 保護されやすい</code><br><code>星の除去 → やや控えめ</code><br><br>Median = 0.15 以上<br>強いストレッチ：星をできるだけ徹底的に除去したい<br>暗い部分までかなり持ち上げます。<br><code>明るい星 → よく認識</code><br><code>暗い星 → 認識しやすくなる</code><br><code>微小な星 → より検出される可能性</code><br><code>淡い銀河構造 → 星と誤認されるリスクが増える</code><br><code>星除去 → より積極的</code></li>



<li>Statistical Stretch：統計的ストレッチ<br>画像の統計情報（主に中央値や分布）を解析して、Zenithが星を認識しやすい明るさまで自動的にストレッチする方式</li>



<li>IHS</li>
</ul>



<h2 class="wp-block-heading">ノイズ除去</h2>



<h3 class="wp-block-heading">VeraLux Silentium</h3>



<ul class="wp-block-list">
<li>Noise intensity (Log S) : 強度</li>



<li>Detail guard</li>



<li>Adaptive noise model</li>



<li>Enabled chroma noise</li>



<li>Chroma strength</li>



<li>Deep space smoothness：輝度に関係なく、構造のぼやけを防ぎます。</li>



<li>Shadow smoothness</li>



<li>Starfield handling</li>



<li>Use findstar</li>



<li>Auto starless detection</li>
</ul>



<p class="wp-block-paragraph">Aggressive &#8216;Shadow Authority&#8217; for the deep background.<br>Features a Hard Cutoff: it automatically shuts down on signal (&gt;25%),preventing blur on structures regardless of intensity.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">VeraLux — Silentium<br>Linear-Phase Noise Suppression Engine</p>



<p class="wp-block-paragraph">&#8212;&#8211; 使い方 &#8212;&#8211;<br>1. 前提条件：画像は（伸長処理を行う前に）必ずリニアでなければなりません。<br>2. 設定：<br>  &#8211; PSF保護機能を活用するために、「Use findstar」にチェックが入っていることを確認してください。<br>  -「Adaptive Noise Model」を選択してください（デフォルトでオン）。<br>3. 輝度キャリブレーション：<br>  &#8211; 「Noise Intensity」：一般的な粒状感低減のための全体的なしきい値を設定します。<br>  &#8211; 「Detail Guard」：微弱な構造を保護します。この値を上げると、背景ノイズを再導入することなく、微細なディテールのマイクロコントラストを復元します。<br> -「Shadow Smoothness」：背景に対して、対象を特定した強力なノイズ除去を行います。<br>4. プレビュー操作：<br> &#8211; 全体表示：クリックして領域を1:1で確認します。<br> &#8211; ルーペモード（1:1）：ドラッグしてパンします。クリック（ドラッグせずに）すると全体表示に戻ります。<br>5. 処理：[PROCESS] をクリックして、フル解像度の画像に適用します。</p>



<p class="wp-block-paragraph">概要</p>



<p class="wp-block-paragraph">• 理論的根拠：定常ウェーブレット変換（SWT）及び、ドブシーウェーブレット(Daubechies Wavelets)<br>• ロジック：「シャドウ・オーソリティ」適応型マスキングおよび相対ペデスタル検出<br>• 天体写真の信号対雑音比の最適化（リニアステージ）</p>



<p class="wp-block-paragraph">Silentiumは、恒星の形状や星雲の微細な構造を損なうことなく、物理信号から確率的ノイズを分離するように設計された線形位相ノイズ抑制エンジンです。</p>



<p class="wp-block-paragraph">Silentiumは、低信号領域（背景）の処理と高信号構造の処理を分離することで、線形処理における新たなパラダイムを確立します。「シャドウ・オーソリティ」ロジックと「フィジックス・アウェア」アーキテクチャを通じて、深宇宙の背景ノイズに対して数学的に強力なクリーニングを適用しつつ、星や星雲の周囲には透過しない保護シェルを形成し、データの本来の測光的完全性を維持します。</p>



<ul class="wp-block-list">
<li>定常ウェーブレット変換（SWT）：<br>Daubechies（db2）ウェーブレットを用いた非デシメーション型マルチスケール分解を採用しています。このシフト不変の手法により、位相シフトゼロかつエイリアシングのない正確な周波数分離が保証され、標準的なDWTと比較して優れたテクスチャ品質を実現します。</li>



<li>測光信号ゲーティング：<br>本エンジンは、線形データ解析（中央値＋シグマ閾値）から導出された統計的な「信号確率マップ」を利用しています。これにより、画像を厳密に異なる処理領域に分離し、背景の平滑化と構造のシャープ化の間の相互干渉を防止します。</li>



<li>シャドウ・オーソリティおよびエクスクルージョン・ゲート：<br>背景除去のために厳格な「ウィナー・テイク・オール」ロジックを実装しています。シャドウ スムースネス・エンジンは、信号構造が検出されると直ちに<br>ノイズ除去の強度をゼロに強制するハードな測光カットオフ（エクスクルージョン・ゲート）を備えています。<br>これにより、保護設定にかかわらず、ハイライト部分の「ぼやけ」を防ぎます。</li>



<li>PSF補正付き構造ガード：<br>ディテールガードは、線形信号確率と形態学的拡張、およびシーイング補正を組み合わせています。局所的なFWHMに応じて構造保護を線形にスケーリングし、大気によるぼやけで光学的に柔らかく見えるフィラメントの侵食を防ぎ、ノイズ除去の圧力をバランスさせます。</li>



<li>ルーペUX：<br>グローバルビューは静的（表示のみ）です。クリックすると1:1の「ルーペモード」にズームインし、ピクセル単位での詳細確認が可能になります。ドラッグするとルーペをパンできます。</li>



<li>シャドウレポート：<br>処理完了時に、ノイズ低減、SNRの向上、およびペデスタルの保持状況に関する統計的な内訳を提供します。</li>
</ul>



<p class="wp-block-paragraph">(c) 2025 Riccardo Paterniti<br>SPDX-License-Identifier: GPL-3.0-or-later<br><a rel="noopener" target="_blank" href="https://gitlab.com/free-astro/siril-scripts/-/blob/main/VeraLux/VeraLux_Silentium.py">https://gitlab.com/free-astro/siril-scripts/-/blob/main/VeraLux/VeraLux_Silentium.py</a></p>
</blockquote>



<p class="wp-block-paragraph">VeraLux_Silentium.pyにある説明とコードから、ノイズ除去を追ってみます。</p>



<p class="wp-block-paragraph">ノイズ除去を行う前工程で、ウェーブレットを行います。<br>ウェーブレット変換では、画像を「大きな構造 ←　→ 小さな構造」に分解できます。</p>



<p class="wp-block-paragraph">天体画像<br>大きな構造 : 星雲の大まかな濃淡 ← 中くらいの構造 : 星雲の細かな模様 → 小さな構造 : 星,細部,ノイズ</p>



<p class="wp-block-paragraph">天体画像では、構造はピクセルの集まりと表現できます。<br>天体画像での構造を、ピクセルの集まりとし、その大きさをスケールと表現すると、</p>



<ul class="wp-block-list">
<li>大きいスケール：  数十～数百ピクセル以上の変化 → 星雲の大まかな形、背景の勾配など</li>



<li>中間スケール： 数～数十ピクセル程度の構造 → 星雲の細かなフィラメントなど</li>



<li>小さいスケール → 1～数ピクセル程度の細かな変化 → ノイズ、細かい星、微細なディテール</li>
</ul>



<p class="wp-block-paragraph">天体画像での、ノイズ除去は以下の順序で行われます。</p>



<ol class="wp-block-list">
<li>ドブシーウェーブレットを用いて画像を異なるスケールの成分（ウェーブレット係数）に分解</li>



<li>各スケールの係数を分析して、ノイズと判断される成分を弱める</li>



<li>逆変換によって画像を再構成することでノイズ除去を行う。</li>
</ol>



<p class="wp-block-paragraph">597行目辺りの</p>



<pre class="wp-block-code"><code>        """
        SWT implementation (Stationary Wavelet Transform).
        Shadow Exclusion Gate (Hard Cutoff at 25% Signal)
        """
        max_levels = 4
        wavelet = "db2"

        # Pad image for SWT requirements
        padded_channel, (ph, _, pw, _) = SilentiumCore._pad_for_swt(channel, max_levels)

        # Decompose using Undecimated Wavelet Transform (SWT)
        coeffs = pywt.swt2(padded_channel, wavelet=wavelet, level=max_levels)</code></pre>



<p class="wp-block-paragraph">ノイズとして扱ってよい領域を先に限定し、その領域だけWavelet係数を強く削る</p>



<pre class="wp-block-code"><code>                 ┌─ Noise Map  ──────┐
                 │                          │
Linear Image ──┼─ Signal Map ──────┤
                 │                          │
                 ├─ Edge Map ───────┤
                 │                          │
                 └─ PSF/FWHM Map ─────┘
                            │
                            ▼
                    Adaptive Threshold
                            │
                            ▼
                 SWT / db2 / 4 levels
                            │
                            ▼
                    Soft Thresholding
                            │
                            ▼</code></pre>



<h2 class="wp-block-heading">再合成</h2>



<h3 class="wp-block-heading">VeraLux Star Composer</h3>



<p class="wp-block-paragraph"><a rel="noopener" target="_blank" href="https://www.youtube.com/watch?v=Pen9aOy2NmA">https://www.youtube.com/watch?v=Pen9aOy2NmA</a><br>Rich Stevensonさんが解説しています。</p>



<ul class="wp-block-list">
<li>1.Input: どちらかを好みで使っても良いようです。
<ul class="wp-block-list">
<li>Linear Add<br>Linear Add（線形加算）を使用するとコントラストが最も高くなりますが、背景が非常に明るい場合、ハイライトが飽和するかもしれません。</li>



<li>Screen (Safe)<br>Screen Safeは、中心部がかなり明るい銀河に適用するのが最適で、その明るさを抑えるのに役立ちますが、その一方でコントラストも低下してしまいます。</li>
</ul>
</li>



<li>2.Sensor Profile</li>



<li>3.VeraLux Stretch
<ul class="wp-block-list">
<li>Star Intensity (Log D)</li>



<li>Profile Hardness (b)</li>



<li>Adaptive Anchor</li>
</ul>
</li>



<li>4.Physics (Hybrid)
<ul class="wp-block-list">
<li>Color Grip (Blend)<br>Physics<br>Color Grip (Hybrid Blend):<br>Controls blending between per-channel (Scalar) and luminance-driven (Vector) mapping.<br>0% (Scalar): Per-channel tone mapping. Stronger white cores, higher perceived sharpness.<br>100% (Vector): Luminance-based mapping with RGB ratio preservation.<br>More chromatic fidelity, slightly softer cores.<br>カラーグリップ（ハイブリッドブレンド）：<br>チャンネルごとの（スカラー）マッピングと、輝度に基づく（ベクトル）マッピングのブレンド比率を調整します。<br>0%（スカラー）：チャンネルごとのトーンマッピング。白のコアが強調され、シャープさがより強く感じられます。<br>100%（ベクトル）：RGBの比率を維持する、輝度ベースのマッピング。<br>色再現性が高く、白のコアがやや柔らかくなります。</li>



<li>Shadow Conv (Hide Aetifacts)</li>
</ul>
</li>



<li>5.Star Surgery
<ul class="wp-block-list">
<li>Core Rejection(LSR)</li>



<li>Reduction(Erosin)</li>



<li>Optical Healing(Halos)</li>
</ul>
</li>
</ul>


</div>]]></content:encoded>
					
					<wfw:commentRss>https://globe3.ddns.net/wp/siril-image-processing-workflow-2026-06/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Seti Astro Suite Pro を Python仮想環境で使う</title>
		<link>https://globe3.ddns.net/wp/seti-astro-suite-pro-python-virtual-environment/</link>
					<comments>https://globe3.ddns.net/wp/seti-astro-suite-pro-python-virtual-environment/#respond</comments>
		
		<dc:creator><![CDATA[minmin]]></dc:creator>
		<pubDate>Sat, 15 Aug 2026 11:10:33 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[画像処理]]></category>
		<guid isPermaLink="false">https://globe3.ddns.net/wp/?p=4774</guid>

					<description><![CDATA[Seti Astro Suite Pro は、作者のFrankin Marekさんが、『綺麗な画像を得るのみではなく、マニアックな科学的なソフトにしたい。画像に含まれるデータを深く掘り下げ、他にどのような情報があるのか探 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Seti Astro Suite Pro は、作者のFrankin Marekさんが、『綺麗な画像を得るのみではなく、マニアックな科学的なソフトにしたい。画像に含まれるデータを深く掘り下げ、他にどのような情報があるのか探ることができる。』と話しています。</p>



<p class="wp-block-paragraph">賛同したので、<br>Python仮想環境を作り、ソースコードからローカル開発環境を構築して、Seti Astro Suite Pro 使います。</p>



<p class="wp-block-paragraph">Seti Astro Suite Proを使ってみると、データを扱う事に特化してる印象を受けます。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1200" height="653" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/08/SetiAstroSuitePro_SPCC-1200x653.jpg" alt="" class="wp-image-4847" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/08/SetiAstroSuitePro_SPCC-1200x653.jpg 1200w, https://globe3.ddns.net/wp/wp-content/uploads/2026/08/SetiAstroSuitePro_SPCC-300x163.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/08/SetiAstroSuitePro_SPCC-150x82.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/08/SetiAstroSuitePro_SPCC-768x418.jpg 768w, https://globe3.ddns.net/wp/wp-content/uploads/2026/08/SetiAstroSuitePro_SPCC.jpg 1280w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<p class="wp-block-paragraph">Seti Astro Suite Pro (SASpro) , Author: Franklin Marek<br><a rel="noopener" target="_blank" href="https://pypi.org/project/setiastrosuitepro/">https://pypi.org/project/setiastrosuitepro/</a></p>



<h2 class="wp-block-heading">ソースコードからローカル開発環境を構築する</h2>



<p class="wp-block-paragraph">GUN/Linux でも Windows OS でも Pythonを導入すれば、仮想環境から SetiAstro Suite Pro が使えます。</p>



<h3 class="wp-block-heading">仮想環境ディレクトリを作成</h3>



<pre class="wp-block-code"><code># Seti Astro Suite Pro Python仮想環境ディレクトリを作成（SASP）
# setiastrosuitepro ディレクトリで良いならば、不要
# その場合は、
# python3 -m venv .venv
# source .venv/bin/activate
mkdir -p /home/$USER/.local/share/SASP

# Python 3.12.13 を使って指定パスに仮想環境を作成
python3.12 -m venv /home/$USER/.local/share/SASP/venv

# ワーキングディレクトリへ
# cd ~/.local/share/SASP 

# 仮想環境を有効化 (アクティベート)
source /home/$USER/.local/share/SASP/venv/bin/activate</code></pre>



<h3 class="wp-block-heading">pip, PyTorch のインストール</h3>



<pre class="wp-block-code"><code>python3.12 -m pip install --upgrade pip</code></pre>



<pre class="wp-block-code"><code>python3.12 -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128</code></pre>



<pre class="wp-block-code"><code>Successfully installed MarkupSafe-3.0.3 cuda-bindings-12.9.7 cuda-pathfinder-1.6.0 cuda-toolkit-12.8.1 filelock-3.32.3 fsspec-2026.7.0 jinja2-3.1.6 mpmath-1.3.0 networkx-3.6.1 numpy-2.5.2 nvidia-cublas-cu12-12.8.4.1 nvidia-cuda-cupti-cu12-12.8.90 nvidia-cuda-nvrtc-cu12-12.8.93 nvidia-cuda-runtime-cu12-12.8.90 nvidia-cudnn-cu12-9.19.0.56 nvidia-cufft-cu12-11.3.3.83 nvidia-cufile-cu12-1.13.1.3 nvidia-curand-cu12-10.3.9.90 nvidia-cusolver-cu12-11.7.3.90 nvidia-cusparse-cu12-12.5.8.93 nvidia-cusparselt-cu12-0.7.1 nvidia-nccl-cu12-2.28.9 nvidia-nvjitlink-cu12-12.8.93 nvidia-nvshmem-cu12-3.4.5 nvidia-nvtx-cu12-12.8.90 pillow-12.3.0 setuptools-78.1.0 sympy-1.14.0 torch-2.11.0+cu128 torchvision-0.26.0+cu128 triton-3.6.0 typing-extensions-4.16.0</code></pre>



<p class="wp-block-paragraph">全体で、3.2GBくらいになるでしょうか。</p>



<h2 class="wp-block-heading">onnxruntime-gpu-1.26.0 を有効化</h2>



<p class="wp-block-paragraph">先に、pip、PyTorch 、onnxruntime-gpuを入れる必要がある。<br>若しくは、pip、PyTorch 、onnxruntime-cpu かな。<br>続いて、requirements.txt を編集する。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">WWW<br><a rel="noopener" target="_blank" href="https://onnxruntime.ai/docs/install/">https://onnxruntime.ai/docs/install/</a><br><a rel="noopener" target="_blank" href="https://dev.to/deskpai/the-hidden-pitfalls-of-onnxruntime-gpu-setup-4kb7">https://dev.to/deskpai/the-hidden-pitfalls-of-onnxruntime-gpu-setup-4kb7</a></p>
</blockquote>



<pre class="wp-block-code"><code>### PyTorch 2.11.0+cu128 をインストール
### python3.12 -m pip install torch==2.11.0+cu128 torchvision==2.11.0+cu128 --index-url https://download.pytorch.org/whl/cu128

### CUDA 12.8 に必要な cuDNN 9 を導入
### python3.12 -m pip install nvidia-cudnn-cu12

# ONNX Runtime GPU版 1.26.0 を導入
python3.12 -m pip install onnxruntime-gpu==1.26.0</code></pre>



<pre class="wp-block-code"><code>Successfully installed flatbuffers-25.12.19 onnxruntime-gpu-1.26.0 packaging-26.3 protobuf-7.35.1</code></pre>



<pre class="wp-block-code"><code># 環境変数（LD_LIBRARY_PATH）の追加は不要？

# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/lib/python3.12/site-packages/nvidia/cudnn/lib/

# .bashrc へ追記
# Seti Astro Suite Pro Python仮想環境ディレクトリ で使う
# Seti Astro Suite Pro Python仮想環境ディレクトリ の標準的な仮想環境内のパス

### Windows OSならば、システム環境変数に追加かな？

export LD_LIBRARY_PATH="$HOME/.local/share/SASP/venv/lib/python3.12/site-packages/nvidia/cudnn/lib:$LD_LIBRARY_PATH"</code></pre>



<h3 class="wp-block-heading">Seti Astro Suite Pro (SASpro), github</h3>



<p class="wp-block-paragraph">こちらに案内があります。<br><a rel="noopener" target="_blank" href="https://github.com/setiastro/setiastrosuitepro/wiki/Build:-Linux">https://github.com/setiastro/setiastrosuitepro/wiki/Build:-Linux</a><br><br>インストールはこちらに案内があります。<br>Development Setup<br>The following procedure describes how to establish a local development environment from source. The instructions apply to all supported platforms; platform-specific commands are noted where they differ.<br><a rel="noopener" target="_blank" href="https://pypi.org/project/setiastrosuitepro/1.20.6/">https://pypi.org/project/setiastrosuitepro/1.20.6/</a></p>



<pre class="wp-block-code"><code>git clone https://github.com/setiastro/setiastrosuitepro.git
cd setiastrosuitepro

# 全てのファイル、ディレクトリを親ディレクトリへ (~/.local/share/SASP)</code></pre>



<h3 class="wp-block-heading">依存関係をインストールする</h3>



<h4 class="wp-block-heading">依存関係から、&#8221;torch&#8221; や &#8220;onnxruntime-gpu&#8221;を削除、編集</h4>



<p class="wp-block-paragraph">setiastrosuitepro にある requirements.txt から、 &#8220;torch&#8221; や &#8220;onnxruntime&#8221; に関連する行を削除、もしくは、コメントアウトし、残りのパッケージ（UI用のPyQtなど）を pip install -r requirements.txt でインストール</p>



<p class="wp-block-paragraph">&#8220;torch&#8221;は無いようです。</p>



<pre class="wp-block-code"><code>onnxruntime-directml==1.23.0 ; python_version &gt;= "3.10" and python_version &lt; "3.15" and sys_platform == "win32"
onnxruntime-gpu==1.24.3 ; python_version == "3.10" and sys_platform == "linux"
onnxruntime-gpu==1.25.1 ; python_version &gt;= "3.11" and python_version &lt; "3.15" and sys_platform == "linux"
onnxruntime==1.23.2 ; python_version &gt;= "3.10" and python_version &lt; "3.15" and sys_platform != "linux" and sys_platform != "win32"</code></pre>



<p class="wp-block-paragraph">PyTorchとONNX Runtimeを確認します。後でもう一度、確認します。</p>



<pre class="wp-block-code"><code>python -m pip show torch onnx onnxruntime-gpu</code></pre>



<pre class="wp-block-code"><code>WARNING: Package(s) not found: onnx
Name: torch
Version: 2.11.0+cu128
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org
Author: 
Author-email: PyTorch Team &lt;packages@pytorch.org>
License: BSD-3-Clause
Location: /home/minmin/.local/share/SASP/venv/lib/python3.12/site-packages
Requires: cuda-bindings, cuda-toolkit, filelock, fsspec, jinja2, networkx, nvidia-cudnn-cu12, nvidia-cusparselt-cu12, nvidia-nccl-cu12, nvidia-nvshmem-cu12, setuptools, sympy, triton, typing-extensions
Required-by: torchvision
---
Name: onnxruntime-gpu
Version: 1.26.0
Summary: ONNX Runtime is a runtime accelerator for Machine Learning models
Home-page: https://onnxruntime.ai
Author: Microsoft Corporation
Author-email: onnxruntime@microsoft.com
License: MIT License
Location: /home/minmin/.local/share/SASP/venv/lib/python3.12/site-packages
Requires: flatbuffers, numpy, packaging, protobuf
Required-by: </code></pre>



<h4 class="wp-block-heading">依存関係をインストール</h4>



<pre class="wp-block-code"><code>python3.12 -m pip install --upgrade pip
python3.12 -m pip install -r requirements.txt</code></pre>



<p class="wp-block-paragraph">インストールログを確認。onnxruntimeは、無い</p>



<pre class="wp-block-code"><code>Successfully installed aenum-3.1.17 aiobotocore-2.26.0 aiohappyeyeballs-2.6.1 aiohttp-3.13.2 aioitertools-0.13.0 aiosignal-1.4.0 astropy-7.2.0 astropy-healpix-1.1.2 astropy-iers-data-0.2025.12.8.0.38.44 astroquery-0.4.11 attrs-25.4.0 autograd-1.8.0 beautifulsoup4-4.14.3 bokeh-3.8.1 botocore-1.41.5 certifi-2025.11.12 cffi-2.0.0 charset-normalizer-3.4.4 click-8.3.1 cloudpickle-3.1.2 colorama-0.4.6 contourpy-1.3.3 cryptography-46.0.3 cycler-0.12.1 dask-2025.12.0 dask-image-2025.11.0 docopt-0.6.2 donfig-0.8.1.post1 exifread-3.5.1 fastavro-1.12.2 fbpca-1.0 flatbuffers-25.9.23 fonttools-4.61.1 frozenlist-1.8.0 fsspec-2025.12.0 gaiaxpy-2.1.4 google-crc32c-1.7.1 hdfs-2.7.3 html5lib-1.1 idna-3.11 imagecodecs-2025.11.11 imageio-2.37.2 jaraco-classes-3.4.0 jaraco-context-6.0.1 jaraco-functools-4.3.0 jeepney-0.9.0 jmespath-1.0.1 joblib-1.5.2 jplephem-2.23 keyring-25.7.0 kiwisolver-1.4.9 lazy-loader-0.5 lightkurve-2.5.1 llvmlite-0.46.0 locket-1.0.0 lz4-4.4.5 matplotlib-3.10.8 memoization-0.4.0 ml-dtypes-0.5.4 more-itertools-10.8.0 multidict-6.7.0 narwhals-2.13.0 numba-0.63.1 numcodecs-0.16.5 numpy-2.2.6 oktopus-0.1.2 onnx-1.20.0 opencv-python-headless-4.12.0.88 packaging-25.0 pandas-2.3.3 partd-1.4.2 patsy-1.0.2 photutils-2.3.0 pillow-12.0.0 pims-0.7 plotly-6.5.0 propcache-0.4.1 protobuf-6.33.2 psutil-7.1.3 py-cpuinfo-9.0.0 pyarrow-22.0.0 pyavm-0.9.8 pycparser-2.23 pyerfa-2.0.1.5 pyopengl-3.1.10 pyparsing-3.2.5 pypdfium2-5.7.1 pyqt6-6.10.1 pyqt6-qt6-6.10.1 pyqt6-sip-13.10.3 pyqtgraph-0.14.0 python-dateutil-2.9.0.post0 pytz-2025.2 pyvo-1.8 pywavelets-1.9.0 pyyaml-6.0.3 rawpy-0.27.0 reproject-0.19.0 requests-2.32.5 s3fs-2025.12.0 scikit-image-0.26.0 scikit-learn-1.8.0 scipy-1.16.3 secretstorage-3.5.0 sep-1.4.1 sgp4-2.25 six-1.17.0 skyfield-1.53 slicerator-1.1.0 soupsieve-2.8 threadpoolctl-3.6.0 tifffile-2025.12.12 toolz-1.1.0 tornado-6.5.3 tqdm-4.67.1 typing-extensions-4.15.0 tzdata-2025.3 tzlocal-5.3.1 uncertainties-3.2.3 urllib3-2.6.2 webencodings-0.5.1 wrapt-1.17.3 xisf-0.9.5 xyzservices-2025.11.0 yarl-1.22.0 zarr-3.1.5 zstandard-0.25.0</code></pre>



<h3 class="wp-block-heading">Seti Astro Suite Proをインストール</h3>



<pre class="wp-block-code"><code>python3.12 -m pip install -e .</code></pre>



<pre class="wp-block-code"><code>Obtaining file:///home/minmin/.local/share/SASP
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: GaiaXPy&lt;3.0.0,>=2.1.4 in ./venv/lib/python3.12/site-packages (from setiastrosuitepro==1.21.0) (2.1.4)
途中略
Requirement already satisfied: sgp4>=2.13 in ./venv/lib/python3.12/site-packages (from skyfield->setiastrosuitepro==1.21.0) (2.25)
Building wheels for collected packages: setiastrosuitepro
  Building editable for setiastrosuitepro (pyproject.toml) ... done
  Created wheel for setiastrosuitepro: filename=setiastrosuitepro-1.21.0-py3-none-any.whl size=22553 sha256=7fd2451c21bb5eaf826a707fbd42705be5ca0acd1554a7b2bbdb22e26d8e2006
  Stored in directory: /tmp/pip-ephem-wheel-cache-a1cs7u8j/wheels/39/e1/49/25a60d18eecf364dc5470f48a41e18da4ecbe898526782c568
Successfully built setiastrosuitepro
Installing collected packages: setiastrosuitepro
Successfully installed setiastrosuitepro-1.21.0</code></pre>



<h4 class="wp-block-heading">pip install -e .</h4>



<p class="wp-block-paragraph">&#8220;pip install -e . &#8220;が大切だとフランクは言っている。<br>『GitHubから取得したい場合は、まず必ず pip install -e を実行してください。』</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">この操作は、Python 環境に対して次を行う。</p>



<pre class="wp-block-code"><code>・パッケージメタデータを登録
・site-packages に .pth またはシンボリックリンクを作成
・元ディレクトリを import 対象として恒久的に追加</code></pre>



<pre class="wp-block-code"><code>「このディレクトリは常に import 可能な正式ライブラリである」</code></pre>



<p class="wp-block-paragraph">と Python に宣言している。<br><a rel="noopener" target="_blank" href="https://zenn.dev/colorfulwave/articles/7df566052ea674">https://zenn.dev/colorfulwave/articles/7df566052ea674</a><br>解説、有難うございます。</p>
</blockquote>



<p class="wp-block-paragraph">pip install -e . は、現在いるSASPのソースコードディレクトリを、Python環境に「編集可能モード（editable install）」でインストールするとの意味です。<br><br>~/.local/share/SASP/で行う、pip install -e .<br>&#8221; . &#8221; は、現在のディレクトリ ~/.local/share/SASPを示しています。</p>



<p class="wp-block-paragraph">-e は &#8211;editable（編集可能） の略です。</p>



<p class="wp-block-paragraph">「このディレクトリにあるSASPを、このvenvからPythonパッケージとして利用できるよう登録する」との意味になります。</p>



<h4 class="wp-block-heading">インストールログ</h4>



<pre class="wp-block-code"><code>python3.12 -m pip install -e .
Obtaining file:///home/USERNAME/.local/share/SASP
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: GaiaXPy&lt;3.0.0,&gt;=2.1.4 in ./venv/lib/python3.12/site-packages (from setiastrosuitepro==1.20.6) (2.1.4)

Requirement already satisfied: sgp4&gt;=2.13 in ./venv/lib/python3.12/site-packages (from skyfield-&gt;setiastrosuitepro==1.20.6) (2.25)
Building wheels for collected packages: setiastrosuitepro
  Building editable for setiastrosuitepro (pyproject.toml) ... done
  Created wheel for setiastrosuitepro: filename=setiastrosuitepro-1.20.6-py3-none-any.whl size=22537 sha256=7813563576e9afcba9f55435e449963c0be07a60945e45d51db0f3894be781f3
  Stored in directory: /tmp/pip-ephem-wheel-cache-t9fp98bf/wheels/39/e1/49/25a60d18eecf364dc5470f48a41e18da4ecbe898526782c568
Successfully built setiastrosuitepro
Installing collected packages: setiastrosuitepro
Successfully installed setiastrosuitepro-1.20.6</code></pre>



<pre class="wp-block-code"><code>python3.12 -m pip check</code></pre>



<p class="wp-block-paragraph">python3.12 -m pip check  は、現在のPython環境にインストールされているパッケージ同士の依存関係に問題がないか検査するコマンドです。</p>



<p class="wp-block-paragraph">PyTorchとONNX Runtimeが変わっていないか確認します。</p>



<pre class="wp-block-code"><code>python -m pip show torch onnx onnxruntime-gpu</code></pre>



<h3 class="wp-block-heading">Seti Astro Suite Pro起動</h3>



<pre class="wp-block-code"><code># source venv/bin/activate
/home/$USER/.local/share/SASP/venv/bin/activate

### python3.12 -m setiastro.saspro
python3.12 setiastrosuitepro.py</code></pre>



<h3 class="wp-block-heading">Seti Astro Suite Pro 起動ログ</h3>



<pre class="wp-block-code"><code>Qt platform: wayland
QuitOnLastWindowClosed: True
XDG_SESSION_TYPE: wayland
QT_QPA_PLATFORM: None
QT_OPENGL: None
Looking in links: /tmp/tmpo0ecqee2
Requirement already satisfied: pip in /home/USERNAME/.local/share/SASpro/runtime/py312/venv/lib/python3.12/site-packages (25.0.1)
Requirement already satisfied: pip in /home/USERNAME/.local/share/SASpro/runtime/py312/venv/lib/python3.12/site-packages (25.0.1)
Collecting pip
  Using cached pip-26.2.1-py3-none-any.whl.metadata (4.6 kB)
Collecting wheel
  Using cached wheel-0.48.0-py3-none-any.whl.metadata (2.3 kB)
Collecting setuptools
  Using cached setuptools-84.0.0-py3-none-any.whl.metadata (6.6 kB)
Collecting packaging&gt;=24.0 (from wheel)
  Using cached packaging-26.3-py3-none-any.whl.metadata (3.5 kB)
Using cached pip-26.2.1-py3-none-any.whl (1.8 MB)
Using cached wheel-0.48.0-py3-none-any.whl (33 kB)
Using cached setuptools-84.0.0-py3-none-any.whl (818 kB)
Using cached packaging-26.3-py3-none-any.whl (129 kB)
Installing collected packages: setuptools, pip, packaging, wheel
  Attempting uninstall: pip
    Found existing installation: pip 25.0.1
    Uninstalling pip-25.0.1:
      Successfully uninstalled pip-25.0.1
Successfully installed packaging-26.3 pip-26.2.1 setuptools-84.0.0 wheel-0.48.0
root - INFO - Logging initialized -&gt; logs/saspro.log
root - INFO - Platform: linux
root - INFO - PyInstaller bundle: False
root - INFO - Faulthandler crash log: logs/saspro_crash.log
System is in Dark Mode
root - INFO - Qt: OpenType support missing for "Ubuntu Sans", script 11 (None:0)

   _____      __  _ ___         __            _____       _ __       ____           
  / ___/___  / /_(_)   |  _____/ /__________ / ___/__  __(_) /____  / __ \_________ 
  \__ \/ _ \/ __/ / /| | / ___/ __/ ___/ __ \\__ \/ / / / / __/ _ \/ /_/ / ___/ __ \
 ___/ /  __/ /_/ / ___ |(__  ) /_/ /  / /_/ /__/ / /_/ / / /_/  __/ ____/ /  / /_/ /
/____/\___/\__/_/_/  |_/____/\__/_/   \____/____/\__,_/_/\__/\___/_/   /_/   \____/                                                                                                 

Seti Astro Suite Pro v1.20.6.post1 (build 2026-08-16T17:54:03Z) up and running!
2026-08-17 13:03:46,080 - root - INFO - Numba threading layer resolved: tbb</code></pre>



<p class="wp-block-paragraph">&#8220;pip-26.2.1&#8221; を削除し、&#8221;pip-25.0.1&#8243;をインストールし直しています。</p>



<h2 class="wp-block-heading">From Franklin</h2>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">SASproは巨大なプロジェクトです。何千時間もの開発時間を費やして、私が心から誇りに思うもの――誰でも利用できる、本格的な機能を備えた天体写真処理および科学分析プラットフォーム――を構築しました。<br>このプロジェクトは、深宇宙の撮影に対する純粋な愛情と、「高性能なツールは誰もが利用できるようにすべきだ」という信念から生まれました。光害のある裏庭から撮影する場合でも、暗い空の観測地から撮影する場合でも、微かな星雲を追いかける場合でも、トランジット系外惑星を追いかける場合でも、SASproは常に皆様のそばに寄り添うよう設計されています。</p>



<p class="wp-block-paragraph">この旅に共に参加してくださり、ありがとうございます。晴天を祈ります。<br>&#8212; フランクリン・マレク</p>
</blockquote>



<p class="wp-block-paragraph">Franklin Marek さんに感謝します。</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph">&#8220;onnxruntime-gpu-1.25.1&#8243;がインストールされた時のログ</p>



<pre class="wp-block-code"><code>Successfully installed aenum-3.1.17 aiobotocore-2.26.0 aiohappyeyeballs-2.6.1 aiohttp-3.13.2 aioitertools-0.13.0 aiosignal-1.4.0 astropy-7.2.0 astropy-healpix-1.1.2 astropy-iers-data-0.2025.12.8.0.38.44 astroquery-0.4.11 attrs-25.4.0 autograd-1.8.0 beautifulsoup4-4.14.3 bokeh-3.8.1 botocore-1.41.5 certifi-2025.11.12 cffi-2.0.0 charset-normalizer-3.4.4 click-8.3.1 cloudpickle-3.1.2 colorama-0.4.6 contourpy-1.3.3 cryptography-46.0.3 cycler-0.12.1 dask-2025.12.0 dask-image-2025.11.0 docopt-0.6.2 donfig-0.8.1.post1 exifread-3.5.1 fastavro-1.12.2 fbpca-1.0 flatbuffers-25.9.23 fonttools-4.61.1 frozenlist-1.8.0 fsspec-2025.12.0 gaiaxpy-2.1.4 google-crc32c-1.7.1 hdfs-2.7.3 html5lib-1.1 idna-3.11 imagecodecs-2025.11.11 imageio-2.37.2 jaraco-classes-3.4.0 jaraco-context-6.0.1 jaraco-functools-4.3.0 jeepney-0.9.0 jmespath-1.0.1 joblib-1.5.2 jplephem-2.23 keyring-25.7.0 kiwisolver-1.4.9 lazy-loader-0.5 lightkurve-2.5.1 llvmlite-0.46.0 locket-1.0.0 lz4-4.4.5 matplotlib-3.10.8 memoization-0.4.0 ml-dtypes-0.5.4 more-itertools-10.8.0 multidict-6.7.0 narwhals-2.13.0 numba-0.63.1 numcodecs-0.16.5 numpy-2.2.6 oktopus-0.1.2 onnx-1.20.0 onnxruntime-gpu-1.25.1 opencv-python-headless-4.12.0.88 packaging-25.0 pandas-2.3.3 partd-1.4.2 patsy-1.0.2 photutils-2.3.0 pillow-12.0.0 pims-0.7 plotly-6.5.0 propcache-0.4.1 protobuf-6.33.2 psutil-7.1.3 py-cpuinfo-9.0.0 pyarrow-22.0.0 pyavm-0.9.8 pycparser-2.23 pyerfa-2.0.1.5 pyopengl-3.1.10 pyparsing-3.2.5 pypdfium2-5.7.1 pyqt6-6.10.1 pyqt6-qt6-6.10.1 pyqt6-sip-13.10.3 pyqtgraph-0.14.0 python-dateutil-2.9.0.post0 pytz-2025.2 pyvo-1.8 pywavelets-1.9.0 pyyaml-6.0.3 rawpy-0.27.0 reproject-0.19.0 requests-2.32.5 s3fs-2025.12.0 scikit-image-0.26.0 scikit-learn-1.8.0 scipy-1.16.3 secretstorage-3.5.0 sep-1.4.1 sgp4-2.25 six-1.17.0 skyfield-1.53 slicerator-1.1.0 soupsieve-2.8 threadpoolctl-3.6.0 tifffile-2025.12.12 toolz-1.1.0 tornado-6.5.3 tqdm-4.67.1 typing-extensions-4.15.0 tzdata-2025.3 tzlocal-5.3.1 uncertainties-3.2.3 urllib3-2.6.2 webencodings-0.5.1 wrapt-1.17.3 xisf-0.9.5 xyzservices-2025.11.0 yarl-1.22.0 zarr-3.1.5 zstandard-0.25.0</code></pre>



<p class="wp-block-paragraph">setiastrosuitepro というパッケージの情報と、関連ファイルの一覧を表示</p>



<pre class="wp-block-code"><code>python3.12 -m pip show -f setiastrosuitepro</code></pre>



<pre class="wp-block-code"><code>Name: setiastrosuitepro
Version: 1.21.0
Summary: Seti Astro Suite Pro - Advanced astrophotography toolkit for image calibration, stacking, registration, photometry, and visualization
Home-page: https://www.setiastro.com
Author: Franklin Marek
Author-email: frank@setiastro.com
License: GPL-3.0
Location: /home/USERNAME/.local/share/SASP/venv/lib/python3.12/site-packages
Editable project location: /home/USERNAME/.local/share/SASP
Requires: astropy, astroquery, exifread, GaiaXPy, imagecodecs, imageio, jplephem, lightkurve, lz4, matplotlib, numba, numpy, nvidia-ml-py, oktopus, onnx, onnxruntime-gpu, opencv-python-headless, pandas, photutils, Pillow, plotly, psutil, py-cpuinfo, PyOpenGL, pypdfium2, PyQt6, pyqtgraph, pytz, pywavelets, rawpy, reproject, requests, scikit-image, scipy, sep, skyfield, tifffile, tzlocal, xisf, zstandard
Required-by: 
Files:
  ../../../bin/cosmicclarity
  ../../../bin/saspro-export-requirements
  ../../../bin/saspro-prime-matplotlib-cache
  ../../../bin/saspro-write-build-info
  ../../../bin/setiastrosuitepro
  setiastrosuitepro-1.21.0.dist-info/INSTALLER
  setiastrosuitepro-1.21.0.dist-info/METADATA
  setiastrosuitepro-1.21.0.dist-info/RECORD
  setiastrosuitepro-1.21.0.dist-info/REQUESTED
  setiastrosuitepro-1.21.0.dist-info/WHEEL
  setiastrosuitepro-1.21.0.dist-info/direct_url.json
  setiastrosuitepro-1.21.0.dist-info/entry_points.txt
  setiastrosuitepro-1.21.0.dist-info/licenses/LICENSE
  setiastrosuitepro.pth</code></pre>



<h3 class="wp-block-heading">Seti Astro Suite Pro 起動スクリプト</h3>



<p class="wp-block-paragraph">~/.local/share/SASP/start-saspro.sh を作ります。</p>



<pre class="wp-block-code"><code>#!/bin/bash

SASP_DIR="$HOME/.local/share/SASP"
VENV_DIR="$SASP_DIR/venv"

cd "$SASP_DIR" || exit 1

source "$VENV_DIR/bin/activate"

exec python3.12 setiastrosuitepro.py</code></pre>



<p class="wp-block-paragraph">若しくは、<br>../../../bin/setiastrosuitepro<br>との記述があるので、<br>~/.local/share/SASP/venv/bin/setiastrosuitepro<br>起動ファイルを用いるならば。</p>



<pre class="wp-block-code"><code>#!/bin/bash

SASP_DIR="$HOME/.local/share/SASP"
VENV_DIR="$SASP_DIR/venv"

cd "$SASP_DIR" || exit 1
source "$VENV_DIR/bin/activate"

exec setiastrosuitepro</code></pre>



<h3 class="wp-block-heading">TensorRT を確認 </h3>



<pre class="wp-block-code"><code>python3.12 -m pip list | grep -i tensorrt</code></pre>



<p class="wp-block-paragraph">無い。</p>



<p class="wp-block-paragraph">[&#8216;TensorrtExecutionProvider&#8217;, &#8216;CUDAExecutionProvider&#8217;, &#8216;CPUExecutionProvider&#8217;]</p>



<p class="wp-block-paragraph">onnxruntime-gpu は、ビルド/パッケージに応じて TensorRT Execution Provider のサポートを持っていても、Pythonから import tensorrt するTensorRT Pythonパッケージが別途存在するとは限らないらしい。</p>



<pre class="wp-block-code"><code>### 現在の環境
onnxruntime-gpu 1.26.0
        │
        ├── CUDAExecutionProvider       ✓
        │
        └── TensorrtExecutionProvider  ✓ ← プロバイダーとして登録可能
                                          
tensorrt Python package
        └── 未インストール</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">((venv) ) pip install setiastrosuitepro　を使ったインストール</h2>



<p class="wp-block-paragraph">こちらは試していません。</p>



<h3 class="wp-block-heading">仮想環境ディレクトリを作成</h3>



<pre class="wp-block-code"><code># Seti Astro Suite Pro Python仮想環境ディレクトリを作成
mkdir -p /home/$USER/.local/share/SASP

# Python 3.12.13 を使って指定パスに仮想環境を作成
python3.12 -m venv /home/$USER/.local/share/SASP/venv

# 仮想環境を有効化 (アクティベート)
source /home/$USER/.local/share/SASP/venv/bin/activate</code></pre>



<h3 class="wp-block-heading">pip, PyTorch のインストール</h3>



<pre class="wp-block-code"><code>python3.12 -m pip install --upgrade pip</code></pre>



<pre class="wp-block-code"><code>python3.12 -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128</code></pre>



<h3 class="wp-block-heading">ONNX Runtime GPU インストール</h3>



<pre class="wp-block-code"><code>### 以前にruntimeをインストールしているならば、その関連パッケージを削除
### python3.12 -m pip uninstall onnxruntime onnxruntime-gpu

# version 1.26をインストールします。
# これ以降のバージョンは、CUDA 13.0 を使用してビルドされています。
python3.12 -m pip install onnxruntime-gpu==1.26.0</code></pre>



<h3 class="wp-block-heading">SetiAstroSuitePro インストール</h3>



<pre class="wp-block-code"><code>pip install setiastrosuitepro</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://globe3.ddns.net/wp/seti-astro-suite-pro-python-virtual-environment/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Cosmic Clarity Suite, Cosmic Clarity Sharpening &#038; Cosmic Clarity denoise, CosmicClaritySuite_Linux_AlternateBuild, Ubuntu 26.04 + Siril 1.5</title>
		<link>https://globe3.ddns.net/wp/cosmic-clarity-sharpening-denoise-cosmicclaritysuite_linux_alternatebuild-ubuntu2604-siril-15/</link>
					<comments>https://globe3.ddns.net/wp/cosmic-clarity-sharpening-denoise-cosmicclaritysuite_linux_alternatebuild-ubuntu2604-siril-15/#respond</comments>
		
		<dc:creator><![CDATA[minmin]]></dc:creator>
		<pubDate>Mon, 10 Aug 2026 05:16:14 +0000</pubDate>
				<category><![CDATA[Siril]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[画像処理]]></category>
		<guid isPermaLink="false">https://globe3.ddns.net/wp/?p=4623</guid>

					<description><![CDATA[Siril 1.5 Pythonスクリプトの一つである、Cosmic Clarity Sharpeningを、Ubuntu 26.04 + RTX5060 GPUで使います。 &#8220;SetiAstroCosmic [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Siril 1.5 Pythonスクリプトの一つである、Cosmic Clarity Sharpeningを、<br>Ubuntu 26.04 + RTX5060 GPUで使います。</p>



<h2 class="wp-block-heading">&#8220;SetiAstroCosmicClarity&#8221;, &#8220;SetiAstroCosmicClarity_denoise&#8221;エラー</h2>



<p class="wp-block-paragraph">CosmicClaritySuite_Linux_AlternateBuild にある、&#8221;SetiAstroCosmicClarity&#8221;、&#8221;SetiAstroCosmicClarity_denoise&#8221;は単体ではエラーが表示されます。</p>



<p class="wp-block-paragraph">エラー表示</p>



<pre class="wp-block-code"><code>PyInstaller/loader/pyimod02_importers.py:450: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools&lt;81.

/usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_variant_builder_init_static
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
/usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_variant_builder_init_static
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so
Using device: cuda (CUDA)
Loaded TIFF image with dtype: float32
Final bit depth set to: 32-bit floating point
Sharpening Image: result_drizzle_19620s.fit.tif
Total Chunks: 225
Stellar Sharpening:
Traceback (most recent call last):
  File "setiastrocosmicclaritylinux.py", line 1374, in &lt;module&gt;
  File "setiastrocosmicclaritylinux.py", line 1199, in process_images
  File "setiastrocosmicclaritylinux.py", line 921, in sharpen_image
RuntimeError: CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

&#91;PYI-7815:ERROR] Failed to execute script 'setiastrocosmicclaritylinux' due to unhandled exception!</code></pre>



<p class="wp-block-paragraph">RuntimeError: CUDA error: no kernel image is available for execution on the device</p>



<ul class="wp-block-list">
<li>RuntimeError: CUDA エラー: デバイス上で実行可能なカーネルイメージがありません。</li>



<li><code>SetiAstroCosmicClarity</code>にパッケージされているPyTorchのバイナリが、システム環境（Ubuntu 26.04 + CUDA 12.8）のGPUを扱えない。</li>
</ul>



<p class="wp-block-paragraph">UserWarning: pkg_resources is deprecated as an API</p>



<ul class="wp-block-list">
<li>pkg_resources は API として非推奨となっています。</li>



<li>Pythonの古い内部ツールが使われているという警告です。</li>
</ul>



<p class="wp-block-paragraph">SetiAstroCosmicClarity&#8221;, &#8220;SetiAstroCosmicClarity_denoise&#8221; を単体で動かし、動作確認を行います。<br>その後に Siril 1.5 Pythonスクリプトから動かします。</p>



<p class="wp-block-paragraph">SetiAstroCosmicClarity&#8221;, &#8220;SetiAstroCosmicClarity_denoise&#8221; それぞれをpyinstxtractor.py を使って展開し動作確認、後に、ラッパーを作成し、Siril 1.5から動かします。</p>



<h2 class="wp-block-heading">pyinstxtractor.py</h2>



<p class="wp-block-paragraph">pyinstxtractor.py を使って、SetiAstroCosmicClarity を展開します。</p>



<h3 class="wp-block-heading">Cosmic Clarity Sharpening を展開</h3>



<pre class="wp-block-code"><code># Siril 1.5 仮想環境で行う
pwd /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild

python3.12 pyinstxtractor.py ./SetiAstroCosmicClarity

&#91;+] Processing ./SetiAstroCosmicClarity
&#91;+] Pyinstaller version: 2.1+
&#91;+] Python version: 3.12
&#91;+] Length of package: 57264312 bytes
&#91;+] Found 17 files in CArchive
&#91;+] Beginning extraction...please standby
&#91;+] Possible entry point: pyiboot01_bootstrap.pyc
&#91;+] Possible entry point: pyi_rth_inspect.pyc
&#91;+] Possible entry point: pyi_rth_pkgutil.pyc
&#91;+] Possible entry point: pyi_rth_multiprocessing.pyc
&#91;+] Possible entry point: pyi_rth_pkgres.pyc
&#91;+] Possible entry point: pyi_rth_setuptools.pyc
&#91;+] Possible entry point: pyi_rth_mplconfig.pyc
&#91;+] Possible entry point: pyi_rth_cryptography_openssl.pyc
&#91;+] Possible entry point: pyi_rth_pyqt6.pyc
&#91;+] Possible entry point: pyi_rth__tkinter.pyc
&#91;+] Possible entry point: setiastrocosmicclaritylinux.pyc
&#91;+] Found 7078 files in PYZ archive
&#91;+] Successfully extracted pyinstaller archive: ./SetiAstroCosmicClarity

You can now use a python decompiler on the pyc files within the extracted directory</code></pre>



<p class="wp-block-paragraph">SetiAstroCosmicClarity_extracted ディレクトリにある、<br>setiastrocosmicclaritylinux.pyc を<br>CosmicClaritySuite_Linux_AlternateBuild ディレクトリに配置</p>



<pre class="wp-block-code"><code># 動作確認
python3.12 ./setiastrocosmicclaritylinux.pyc

Using device: cuda (CUDA)
Identified 32bit floating point FITS iamge.
Sharpening Image: result_drizzle_19620s.fit
Total Chunks: 225
Stellar Sharpening:
Progress: 100.00% (225/225 chunks processed)
Stellar sharpening complete. Shape: (2877, 2877)
Saved 32-bit float sharpened image to: /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild/./output/result_drizzle_19620s_sharpened.fit</code></pre>



<h4 class="wp-block-heading">Cosmic Clarity Sharpening ラッパーを作成</h4>



<pre class="wp-block-code"><code>### ラッパーファイルを作成 run_Sharpen.sh
cd /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild/</code></pre>



<p class="wp-block-paragraph">以下が、run_Sharpen.sh</p>



<pre class="wp-block-code"><code>#!/bin/bash
source "$HOME/.local/share/siril/venv/bin/activate"
cd /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild/
python3.12 ./setiastrocosmicclaritylinux.pyc "$@"

# 実行権
chmod +x ./run_Sharpen.sh</code></pre>



<p class="wp-block-paragraph"><code>"$@"</code>　について<br></p>



<h4 class="wp-block-heading">Cosmic Clarity Sharpening を設定</h4>



<p class="wp-block-paragraph">Cosmic Clarity Sharpening Settings<br>Cosmic Clarity Executable:  run_Sharpen.sh (上記ラッパー)を指定する。</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading">RTX 5060 動作確認</h4>



<pre class="wp-block-code"><code>source /home/$USER/.local/share/siril/venv/bin/activate
pip list |grep torch
torch                    2.11.0+cu128
torchaudio               2.11.0+cu128
torchvision              0.26.0+cu128

pip list |grep torch-cuda80
pip list |grep torch-model-archiver
pip list |grep torchrec-cpu</code></pre>



<pre class="wp-block-code"><code># 動作確認
python3.12 -c "import torch; print(torch.__version__, torch.cuda.is_available(), torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'None')"
2.11.0+cu128 True NVIDIA GeForce RTX 5060 Laptop GPU</code></pre>



<pre class="wp-block-code"><code># 動作確認
python3.12 -c "import torch; print('Version:', torch.__version__); print('CUDA:', torch.cuda.is_available()); print('Device Name:', torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'None')"
Version: 2.11.0+cu128
CUDA: True
Device Name: NVIDIA GeForce RTX 5060 Laptop GPU</code></pre>



<h3 class="wp-block-heading">Cosmic Clarity denoise を展開</h3>



<p class="wp-block-paragraph">python3.12 pyinstxtractor.py /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild/SetiAstroCosmicClarity_denoise</p>



<pre class="wp-block-code"><code># Siril 1.5 仮想環境で行う
pwd /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild
python3.12 pyinstxtractor.py ./SetiAstroCosmicClarity_denoise</code></pre>



<pre class="wp-block-code"><code># 動作確認
python3.12 ./setiastrocosmicclaritylinux.pyc
</code></pre>



<h4 class="wp-block-heading">Cosmic Clarity denoise ラッパーを作成</h4>



<pre class="wp-block-code"><code>### ラッパーファイルを作成 run_Denoise.sh
cd /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild/</code></pre>



<p class="wp-block-paragraph">以下が、run_Denoise.sh</p>



<pre class="wp-block-code"><code>#!/bin/bash

### RTX 5060（12.0）
### export TORCH_CUDA_ARCH_LIST="9.0"
### export TORCH_CUDA_ARCH_LIST="12.0"

source "$HOME/.local/share/siril/venv/bin/activate"
cd /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild/
python3.12 ./SetiAstroCosmicClarity_denoise.pyc "$@"</code></pre>



<h4 class="wp-block-heading">Cosmic Clarity Denoise を設定</h4>



<p class="wp-block-paragraph">Cosmic Clarity Executable<br>run_Sharpen.sh (上記ラッパー)を指定する。</p>



<p class="wp-block-paragraph">🥂</p>
]]></content:encoded>
					
					<wfw:commentRss>https://globe3.ddns.net/wp/cosmic-clarity-sharpening-denoise-cosmicclaritysuite_linux_alternatebuild-ubuntu2604-siril-15/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Siril 1.5 + starnet2_linux_2.5.4-0214_ORT_x64_cli + Ubuntu 26.04 + GPU</title>
		<link>https://globe3.ddns.net/wp/siril-15-starnet2_linux_2-5-4-0214_ort_x64_cli_ubuntu2604/</link>
					<comments>https://globe3.ddns.net/wp/siril-15-starnet2_linux_2-5-4-0214_ort_x64_cli_ubuntu2604/#respond</comments>
		
		<dc:creator><![CDATA[minmin]]></dc:creator>
		<pubDate>Thu, 06 Aug 2026 06:01:40 +0000</pubDate>
				<category><![CDATA[Siril]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[画像処理]]></category>
		<guid isPermaLink="false">https://globe3.ddns.net/wp/?p=4534</guid>

					<description><![CDATA[onnxruntime-linux-x64-gpu-1.26.0に含まれる、libonnxruntime.so.1.26.0を用いるとStarnet2-2.5.4がGPU (RTX5060) を使えます。 CUDA To [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">onnxruntime-linux-x64-gpu-1.26.0に含まれる、libonnxruntime.so.1.26.0を用いると<br>Starnet2-2.5.4がGPU (RTX5060) を使えます。</p>



<p class="wp-block-paragraph">CUDA Toolkit 12.8.2 (April 2026)runfile + Ubuntu 26.04 + nvidia-driver 580 + python version 3.12.13 + PyTorch は、あらかじめインストールし動作するようにして下さい。</p>



<p class="wp-block-paragraph">例えば、<br><a target="_self" href="https://globe3.ddns.net/wp/cudatoolkit-12-8-2runfile-ubuntu-2604-nvidiadriver580-python3-12-13-cosmic-clarity-suite-siril-15/">https://globe3.ddns.net/wp/cudatoolkit-12-8-2runfile-ubuntu-2604-nvidiadriver580-python3-12-13-cosmic-clarity-suite-siril-15/</a></p>



<p class="wp-block-paragraph">Open Neural Network Exchange (ONNX)<br>推論・学習高速化を行う実行エンジンを、GPU適応に置き換えて、GPU（ここではRTX5060）が動作するように設定します。</p>



<p class="wp-block-paragraph">Windows 11 OS環境での、<br>Siril 1.5 + Windows 11 + starnet2_win_2.5.4-0214_ORT_x64_cli + RTX5060については、後述しています。</p>



<div class="wp-block-cocoon-blocks-icon-box common-icon-box block-box information-box">
<p class="wp-block-paragraph">アップデートがありました。<br>2026-09-15　StarNet2 2.6.2 and DeepSNR 1.3.2 command-line release<br><br>starnet2_linux_2.5.4-0214_ORT_x64_cli を、<br>starnet2_linux_2.6.2-0241_ORT_x64_cli へアップデートできます。</p>
</div>



<p class="wp-block-paragraph">starnet2_linux_2.6.2-0241 では以前に感じていた色調の違和感が無くなりました。有り難い。</p>



<h2 class="wp-block-heading">StarNet.py</h2>



<h3 class="wp-block-heading">Siril へ StarNet.pyを導入する</h3>



<p class="wp-block-paragraph">[Set paths] で &#8220;starnet2&#8221; 及び &#8220;StarNet2_weights.onnx &#8220;を指定<br>[Run StarNet] → CPUが動作する。</p>



<pre class="wp-block-code"><code>Linear mode: applied MTF autostretch to the StarNet input.
Reading input from /tmp/siril_starnet_8mjx6poe/input.tif...
Color image is detected!
Image size: 3996x2721
Restoring neural network checkpoint...
Loading ONNX model from file: /usr/local/share/starnet2_linux_2.5.4-0214_ORT_x64_cli/StarNet2_weights.onnx
Backend: ONNX Runtime (CPU execution provider) # ← CPUが動いている</code></pre>



<p class="wp-block-paragraph">GPUが動作するように、設定していきます。</p>



<h2 class="wp-block-heading">weights.onnx, libonnxruntime</h2>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">こちらを参考にします。<br>Method 1: System-wide NVIDIA installer setup<br><a rel="noopener" target="_blank" href="https://starnetastro.com/documentation/windows-cuda/">https://starnetastro.com/documentation/windows-cuda/</a></p>
</blockquote>



<p class="wp-block-paragraph">libonnxruntime.so.1 をlibonnxruntime.so.1.26.0に入れ替えます。<br>次の様にシンボリックリンクを用います。</p>



<pre class="wp-block-code"><code>ln -s libonnxruntime.so.1.26.0 libonnxruntime.so.1
ln -s libonnxruntime.so.1 libonnxruntime.so

lrwxrwxrwx 1  libonnxruntime.so@ -> libonnxruntime.so.1
lrwxrwxrwx 1  libonnxruntime.so.1@ -> libonnxruntime.so.1.26.0</code></pre>



<h3 class="wp-block-heading">libonnxruntime.so.1.26.0 を導入</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">then download and extract ONNX Runtime GPU 1.26.0 for Windows x64 from GitHub.<br><a rel="noopener" target="_blank" href="https://starnetastro.com/documentation/windows-cuda/">https://starnetastro.com/documentation/windows-cuda/</a><br></p>
</blockquote>



<p class="wp-block-paragraph">onnxruntime-linux-x64-gpu-1.26.0.tgzを導入します。</p>



<p class="wp-block-paragraph">ONNX Runtime v1.27.0 は、<br>CUDA 12 packages are deprecated, please move to CUDA 13 ASAP.<br>CUDA 12 パッケージは非推奨となりました。できるだけ早く CUDA 13 へ移行してください。</p>



<p class="wp-block-paragraph">ここではCUDA12を用いているので、1.27ではなく、1.26を導入します。</p>



<p class="wp-block-paragraph"><a rel="noopener" target="_blank" href="https://github.com/microsoft/onnxruntime/releases">https://github.com/microsoft/onnxruntime/releases</a><br>onnxruntime-linux-x64-gpu-1.26.0.tgz をダウンロード、展開します。</p>



<pre class="wp-block-code"><code>onnxruntime-linux-x64-gpu-1.26.0/lib を確認
libonnxruntime.so.1.26.0
libonnxruntime_providers_cuda.so
libonnxruntime_providers_shared.so
libonnxruntime_providers_tensorrt.so #TensorRTを使わないので不要？</code></pre>



<p class="wp-block-paragraph">/usr/local/share/starnet2_linux_2.5.4-0214_ORT_x64_cli/lib にある、<br>libonnxruntime.so.1 を別名にします。</p>



<pre class="wp-block-code"><code>sudo mv libonnxruntime.so.1 libonnxruntime.so.1.backup</code></pre>



<p class="wp-block-paragraph">/usr/local/share/starnet2_linux_2.5.4-0214_ORT_x64_cli/libに、<br>libonnxruntime_providers_shared.so<br>があるならば、これも別名にします。</p>



<p class="wp-block-paragraph"><s>/usr/local/share/starnet2_linux_2.5.4-0214_ORT_x64_cli/lib/ にある、</s> （2026,9,18 訂正）<br>onnxruntime-linux-x64-gpu-1.26.0/lib にある、<br>libonnxruntime.so.1.26.0<br>libonnxruntime_providers_cuda.so<br>libonnxruntime_providers_shared.so<br>libonnxruntime_providers_tensorrt.so<br>これらを、<br>/usr/local/share/starnet2_linux_2.5.4-0214_ORT_x64_cli/lib へコピーします。</p>



<pre class="wp-block-code"><code>sudo cp libonnxruntime.so.1.26.0 /usr/local/share/starnet2_linux_2.5.4-0214_ORT_x64_cli/lib/</code></pre>



<p class="wp-block-paragraph">下記のリンクを作ります。<br>libonnxruntime.so@ -&gt; libonnxruntime.so.1<br>libonnxruntime.so.1@ -&gt; libonnxruntime.so.1.26.0</p>



<pre class="wp-block-code"><code>sudo ln -s libonnxruntime.so.1.26.0 libonnxruntime.so.1
sudo ln -s libonnxruntime.so.1 libonnxruntime.so</code></pre>



<h3 class="wp-block-heading">deepsnr_linux_1.3.2-0147_ORT_x64_cli</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">deepsnr_linux_1.3.2-0147_ORT_x64_cli/README.txt, LICENSE.txt<br>本契約は、お客様とミキタ（ニキタ）・ミシウラ（以下「ライセンサー」という）との間で締結されるものです。<br><br>オプションのGPUアクセラレーション<br>同梱のONNX RuntimeファイルはCPUで実行されるため、GPUの設定は不要です。<br>NVIDIAに精通したユーザーは、同梱のONNX Runtimeファイルを互換性のあるONNX Runtime GPUランタイムに置き換え、必要なCUDA/cuDNNランタイムライブラリをダイナミックローダーから認識できるようにすることができます。CUDAの初期化に成功した場合、DeepSNRは次のように報告します：<br>バックエンド：ONNX Runtime (CUDA実行プロバイダー)<br>CUDAが利用できない、または不完全な場合、DeepSNRは同じ実行ファイルからCPU実行に切り替わります。手動でのGPUランタイムの変更により起動や処理に失敗した場合は、元のパッケージファイルを復元してください。</p>
</blockquote>



<p class="wp-block-paragraph">deepsnr_linux_1.3.2-0147_ORT_x64_cliも、上記 starnet2_linux_2.5.4-0214_ORT_x64_cli と同様にonnxruntime-linux-x64-gpu-1.26.0.tgzを用いてGPUが使えます。</p>



<h3 class="wp-block-heading">環境変数を追加</h3>



<p class="wp-block-paragraph">1: cuda runtime, cudnn, torch 各ライブラリがあるディレクトリにパスを通します。</p>



<p class="wp-block-paragraph">2: NVIDIA TensorRT（ディープラーニングの推論（予測・実行）を高速化するためのソフトウェア開発キット）が使えない場合でもCPU使用を禁止させる。処理できないならば、エラー表示で停止させる。</p>



<p class="wp-block-paragraph">3: 使用する計算エンジンを列挙し指定する。CUDA GPU、NVIDIA GPU、仕方がないからCPUの順番</p>



<pre class="wp-block-code"><code>export LD_LIBRARY_PATH=/home/$USER/.local/share/siril/venv/lib/python3.12/site-packages/nvidia/cuda_runtime/lib:/home/$USER/.local/share/siril/venv/lib/python3.12/site-packages/nvidia/cudnn/lib:/home/$USER/.local/share/siril/venv/lib/python3.12/site-packages/torch/lib:$LD_LIBRARY_PATH

export ORT_TENSORRT_UNAVAILABLE_FALLBACK=0

export ONNXRUNTIME_PROVIDER_PRIORITY="CUDAExecutionProvider,TensorrtExecutionProvider,CPUExecutionProvider"</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph">動作log</p>



<pre class="wp-block-code"><code>Linear mode: applied MTF autostretch to the StarNet input.
Reading input from /tmp/siril_starnet_qcse_6ma/input.tif...
Color image is detected!
Image size: 3996x2721
Restoring neural network checkpoint...
Loading ONNX model from file: /usr/local/share/starnet2_linux_2.5.4-0214_ORT_x64_cli/StarNet2_weights.onnx
&#91;0;93m2026-08-11 19:21:51.880234368 &#91;W:onnxruntime:, session_state.cc:1367 VerifyEachNodeIsAssignedToAnEp] Some nodes were not assigned to the preferred execution providers which may or may not have an negative impact on performance. e.g. ORT explicitly assigns shape related ops to CPU to improve perf.&#91;m
&#91;0;93m2026-08-11 19:21:51.880253284 &#91;W:onnxruntime:, session_state.cc:1369 VerifyEachNodeIsAssignedToAnEp] Rerunning with verbose output on a non-minimal build will show node assignments.&#91;m
Backend: ONNX Runtime (CUDA execution provider) # ← CUDA GPUが動いている
Working: Done!
Writing starless image to: /tmp/siril_starnet_qcse_6ma/starless.tif
Writing mask to: /tmp/siril_starnet_qcse_6ma/mask.tif
Saved Starmask to starnetmask_image.fit
StarNet finished.</code></pre>



<pre class="wp-block-code"><code># log
Linear mode: applied MTF autostretch to the StarNet input.
Reading input from /tmp/siril_starnet_tyv_jll2/input.tif...
Color image is detected!
Image size: 3008x3008
Restoring neural network checkpoint...
Loading ONNX model from file: /usr/local/share/starnet2_linux_2.5.4-0214_ORT_x64_cli/StarNet2_weights.onnx
&#91;0;93m2026-08-06 14:39:54.576734905 &#91;W:onnxruntime:, session_state.cc:1367 VerifyEachNodeIsAssignedToAnEp] Some nodes were not assigned to the preferred execution providers which may or may not have an negative impact on performance. e.g. ORT explicitly assigns shape related ops to CPU to improve perf.&#91;m
&#91;0;93m2026-08-06 14:39:54.576760112 &#91;W:onnxruntime:, session_state.cc:1369 VerifyEachNodeIsAssignedToAnEp] Rerunning with verbose output on a non-minimal build will show node assignments.&#91;m
Backend: ONNX Runtime (CUDA execution provider) # ← GPUが動いている
Working: Done!
Writing starless image to: /tmp/siril_starnet_tyv_jll2/starless.tif
Writing mask to: /tmp/siril_starnet_tyv_jll2/mask.tif
Saved Starmask to starnetmask_image.fit
StarNet finished.</code></pre>



<h2 class="wp-block-heading">Windows11 と Starnet2</h2>



<p class="wp-block-paragraph">Windows での GPU アクセラレーションの設定手順<br><a rel="noopener" target="_blank" href="https://starnetastro.com/documentation/windows-cuda/">https://starnetastro.com/documentation/windows-cuda/</a></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Use CUDA 12.x for the current ONNX Runtime 1.26.0 GPU path. Do not use CUDA 13.x runtime DLLs with the current CUDA-12 ONNX Runtime GPU DLLs.<br>現在の ONNX Runtime 1.26.0 の GPU パスでは、CUDA 12.x を使用してください。現在の CUDA-12 ONNX Runtime GPU DLL では、CUDA 13.x ランタイム DLL を使用しないでください。</p>
</blockquote>



<p class="wp-block-paragraph">こちらで (globe3.ddns.net) 確認された内容:</p>



<p class="wp-block-paragraph">以下の設定は、この Windows 11, Siril 1.5 環境で確認しています：</p>



<p class="wp-block-paragraph">オペレーティングシステム: Windows 11<br>GPU およびドライバー: NVIDIA GeForce RTX 5060、NVIDIA ドライバー 610.88 | WHQL<br>CUDA Toolkit: CUDA Toolkit 12.8.2 (April 2026). nvcc &#8211;version の出力は CUDA XX.x / VXX.x.x <br>cuDNN: CUDA 12.8 対応の cuDNN 9.24.0<br>ONNX Runtime GPU: Windows x64 対応の ONNX Runtime GPU 1.26.0</p>



<p class="wp-block-paragraph">NVIDIAドライバー、CUDA Toolkit、およびcuDNNをインストールし、Windowsの$PATH変数を通じて、これらのランタイムライブラリをSirilから使えるようにします。<br>以下を参照します。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Method 1: System-wide NVIDIA installer setup<br><a rel="noopener" target="_blank" href="https://starnetastro.com/documentation/windows-cuda/">https://starnetastro.com/documentation/windows-cuda/</a></p>
</blockquote>



<p class="wp-block-paragraph">1. Install NVIDIA driver</p>



<p class="wp-block-paragraph">2. Install CUDA Toolkit 12.8.2</p>



<pre class="wp-block-code"><code>where.exe nvcc</code></pre>



<p class="wp-block-paragraph">3. Install cuDNN 9.24.0</p>



<p class="wp-block-paragraph">CUDA 13.x フォルダではなく、CUDA 12.9 cuDNN フォルダを使用してください。cuDNN インストーラによって、以下の CUDA 13.3 フォルダが作成される場合がありますが、この ONNX Runtime 1.26.0 CUDA-12 のセットアップでは使用しないでください：</p>



<p class="wp-block-paragraph">4. Replace ONNX Runtime DLLs</p>



<p class="wp-block-paragraph">ONNX Runtime GPU 1.26.0 for Windows x64 from GitHub.<br>onnxruntime-win-x64-gpu-1.26.0.zip をダウンロード、展開<br><a rel="noopener" target="_blank" href="https://github.com/microsoft/onnxruntime/releases/">https://github.com/microsoft/onnxruntime/releases/</a></p>



<p class="wp-block-paragraph">onnxruntime.dll<br> ONNX Runtimeのメインエンジン。全ての計算命令を受け付けます。</p>



<p class="wp-block-paragraph">onnxruntime_providers_cuda.dll<br> NVIDIAのCUDAを使って計算するための専用プラグインです。</p>



<p class="wp-block-paragraph">onnxruntime_providers_shared.dll<br> メインエンジンと、CUDAプラグイン（および他のGPUプラグイン）との間で、データを仲介、共有するための共通ライブラリです。</p>



<p class="wp-block-paragraph">StarNet2 CLI と、Python仮想環境下に3つのdllファイルをそれぞれ置きます。<br>　starnet++.exe がC++アプリとして直接GPUを使うため。<br>　StarNet.py スクリプトが、Pythonを用いてGPUを使うため。</p>



<pre class="wp-block-code"><code>C:\local\starnet2_win_2.5.3-0208_ORT
C:\Users\USERNAME\AppData\Local\siril\venv\Lib\site-packages\onnxruntime\backend</code></pre>



<p class="wp-block-paragraph">5. CUDA 12.8DLLを配置する</p>



<p class="wp-block-paragraph">cublas64_12.dll 、 cudart64_12.dll （あれば cublasLt64_12.dll 、 cufft64_11.dll）を<br>C:\local\starnet2_win_2.5.3-0208_ORTディレクトリに置く。</p>



<pre class="wp-block-code"><code>### CUDA Toolkit 12.8 Update ディレクトリは以下
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\bin</code></pre>



<p class="wp-block-paragraph">ここからコピーします。</p>



<p class="wp-block-paragraph">6. cudnn64_9.dll、cudnn_ops_infer64_9.dll、cudnn_cnn_infer64_9.dll　を配置する</p>



<p class="wp-block-paragraph">pythonコマンドを使って、それぞれのdllファイルをダウンロードします。<br>これはSiril 1.5仮想環境下ではなく、通常のPowerShell（またはターミナル）で行います。</p>



<pre class="wp-block-code"><code>python -m pip install --target "$env:TEMP\starnet-cuda-libs" "onnxruntime-gpu&#91;cuda,cudnn]==1.26.0"</code></pre>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box">
<p class="wp-block-paragraph">以下のファイルが starnet++.exe があるディレクトリに配置します。<br> ONNX 1.26 GPU版の3つ: onnxruntime.dll, onnxruntime_providers_shared.dll, onnxruntime_providers_cuda.dll<br><br> CUDA 12.8（システムからコピーしたもの）: cublas64_12.dll, cudart64_12.dll<br><br> cuDNN 9（pythonを用いてダウンロード）: cudnn64_9.dll（およびその他の cudnn_*.dll）</p>
</div>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">Windows11での StarNet2.py を使用し、GPUを動かす</h3>



<p class="wp-block-paragraph">Siril Pythonスクリプト、StarNet2.pyをSiril に導入し、GPUを使って画像処理を行う為の設定をします。</p>



<p class="wp-block-paragraph">OS、ツール環境</p>



<pre class="wp-block-code"><code>Windows 11
RTX 5060（Blackwell / Compute Capability 12.0）
CUDA Toolkit 12.8
Python 3.12.13
StarNet2 2.5.4-0214 ORT x64 CLI</code></pre>



<p class="wp-block-paragraph">Windows11での設定手順</p>



<p class="wp-block-paragraph">各種ファイルを確認します。</p>



<pre class="wp-block-code"><code> nvidia-smi
Mon Aug 31 17:25:13 2026
+-----------------------------------------------------------------------------------------
| NVIDIA-SMI 616.56                 KMD Version: 616.56        CUDA UMD Version: 13.4     
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                Driver-Model | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf        Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                       |                        |               MIG M. |
|=======================================+========================+======================|
|   0  NVIDIA GeForce RTX 5060 ...  WDDM  |   00000000:65:00.0 Off |                N/A |</code></pre>



<pre class="wp-block-code"><code>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Fri_Feb_21_20:42:46_Pacific_Standard_Time_2025
Cuda compilation tools, release 12.8, V12.8.93
Build cuda_12.8.r12.8/compiler.35583870_0</code></pre>



<pre class="wp-block-code"><code>where.exe nvcc
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\bin\nvcc.exe</code></pre>



<p class="wp-block-paragraph">cuDNN関連</p>



<pre class="wp-block-code"><code>where.exe cudnn64_9.dll
C:\Program Files\NVIDIA\CUDNN\v9.24\bin\12.9\x64\cudnn64_9.dll</code></pre>



<pre class="wp-block-code"><code>where.exe cudnn_ops64_9.dll
C:\Program Files\NVIDIA\CUDNN\v9.24\bin\12.9\x64\cudnn_ops64_9.dll</code></pre>



<pre class="wp-block-code"><code>where.exe cudnn_cnn64_9.dll
C:\Program Files\NVIDIA\CUDNN\v9.24\bin\12.9\x64\cudnn_cnn64_9.dll</code></pre>



<h4 class="wp-block-heading">starnet2_win_2.5.4-0214_ORT_x64_cli を眺める</h4>



<pre class="wp-block-code"><code>starnet2_win_2.5.4-0214_ORT_x64_cli.zip
展開</code></pre>



<p class="wp-block-paragraph">StarNetに同梱されているONNX Runtimeのバージョンを確認します。</p>



<pre class="wp-block-code"><code># powershell 
(Get-Item "C:\local\starnet2_win_2.5.4-0214_ORT_x64_cli\onnxruntime.dll").VersionInfo | Format-List FileVersion,ProductVersion


FileVersion    : 1.24.20260316.9.2d92497
ProductVersion : 1.24.20260316.9.2d92497</code></pre>



<p class="wp-block-paragraph">現在の環境<br>────────────────────────<br>RTX 5060<br>NVIDIA Driver 616.56<br>CUDA Toolkit 12.8<br>cuDNN 9.24 / CUDA 12.9</p>



<p class="wp-block-paragraph">StarNet CUDA構成<br>────────────────────────<br>ONNX Runtime 1.26.0<br>CUDA 12.x<br>cuDNN 9.x</p>



<h3 class="wp-block-heading">ONNX Runtime GPU 1.26.0 をstarnet2_win_2.5.4-0214_ORT_x64_cli へ導入</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">then download and extract ONNX Runtime GPU 1.26.0 for Windows x64 from GitHub.<br><a rel="noopener" target="_blank" href="https://starnetastro.com/documentation/windows-cuda/">https://starnetastro.com/documentation/windows-cuda/</a></p>
</blockquote>



<p class="wp-block-paragraph">onnxruntime-win-x64-gpu-1.26.0.zipを導入します。</p>



<p class="wp-block-paragraph">onnxruntime-win-x64-gpu-1.26.0.zipを展開し、onnxruntime-win-x64-gpu-1.26.0\libにある次のファイルを、starnet2_win_2.5.4-0214_ORT_x64_cliへ配置します。</p>



<p class="wp-block-paragraph">C:\local\starnet2_win_2.5.4-0214_ORT_x64_cli<br>│<br>├─ starnet2.exe<br>├─ StarNet2_weights.onnx<br>│<br>├─ onnxruntime.dll ← 1.26.0版に置換<br>├─ onnxruntime_providers_cuda.dll ← 新規<br>└─ onnxruntime_providers_shared.dll ← 1.26.0版に置換</p>



<pre class="wp-block-code"><code>### パス確認
where.exe cudnn_ops64_9.dll
C:\Program Files\NVIDIA\CUDNN\v9.24\bin\12.9\x64\cudnn_ops64_9.dll

where.exe cudnn_cnn64_9.dll
C:\Program Files\NVIDIA\CUDNN\v9.24\bin\12.9\x64\cudnn_cnn64_9.dll

where.exe cublas64_12.dll
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\bin\cublas64_12.dll</code></pre>



<pre class="wp-block-code"><code>Get-ChildItem "C:\local\starnet2_win_2.5.4-0214_ORT_x64_cli\" -Filter "onnxruntime*"
Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        2026/08/31     19:15       15336248 onnxruntime.dll
-a----        2026/08/31     17:53           1094 ONNXRUNTIME_LICENSE.txt
-a----        2026/08/31     19:15      298998584 onnxruntime_providers_cuda.dll
-a----        2026/08/31     19:15          21816 onnxruntime_providers_shared.dll</code></pre>



<p class="wp-block-paragraph">Siril Pythonスクリプト StarNet.py から、starnet2_win_2.5.4-0214_ORT_x64_cliにある、<br>starnet2<br>StarNet2_weights.onnx<br>をそれぞれ指定します。</p>



<p class="wp-block-paragraph">タスクマネージャーから、GPUの動作を確認します。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://globe3.ddns.net/wp/siril-15-starnet2_linux_2-5-4-0214_ort_x64_cli_ubuntu2604/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu 26.04 LTS, Windows11, PCを天文セットアップ</title>
		<link>https://globe3.ddns.net/wp/setting-up-ubuntu26-and-windows11-for-astronomy/</link>
					<comments>https://globe3.ddns.net/wp/setting-up-ubuntu26-and-windows11-for-astronomy/#respond</comments>
		
		<dc:creator><![CDATA[minmin]]></dc:creator>
		<pubDate>Thu, 16 Jul 2026 02:11:48 +0000</pubDate>
				<category><![CDATA[Siril]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[画像処理]]></category>
		<guid isPermaLink="false">https://globe3.ddns.net/wp/?p=3551</guid>

					<description><![CDATA[ノートPCを天文趣味PCにします。インストールをメモします。ノートPC構成は次ですCPU: AMD Ryzen AI 7 350 プロセッサグラフィックス: NVIDIA GeForce RTX™ 5060 Laptop [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">ノートPCを天文趣味PCにします。インストールをメモします。<br>ノートPC構成は次です<br>CPU: AMD Ryzen AI 7 350 プロセッサ<br>グラフィックス: NVIDIA GeForce RTX™ 5060 Laptop GPU　← ここを活用したい。</p>



<div class="wp-block-cocoon-blocks-sticky-box blank-box block-box sticky">
<p class="wp-block-paragraph">「開封」と言えば、梱包やパッケージを開けることでしょうが、私にとっては、中を見てパーツを確認することなので、ノートPCの裏蓋を開けることが「開封」です 😉<br>そんなアイキャッチ画像です</p>
</div>



<p class="wp-block-paragraph">天体画像処理には、Siril 1.5 を使います。ソースからビルドします。</p>



<p class="wp-block-paragraph">以下は、時系列では無く、間にメモがあり、まとまっていなので、とても見にくいかと思います。ごめんなさい。</p>



<p class="wp-block-paragraph">以下はインストール作業をまとめています。<br><a target="_self" href="https://globe3.ddns.net/wp/cudatoolkit-12-8-2runfile-ubuntu-2604-nvidiadriver580-python3-12-13-graxpert-3-1-cosmicclaritysuite-siril-15/">https://globe3.ddns.net/wp/cudatoolkit-12-8-2runfile-ubuntu-2604-nvidiadriver580-python3-12-13-graxpert-3-1-cosmicclaritysuite-siril-15/</a></p>



<p class="wp-block-paragraph"><br>試行錯誤した部分もそのまま残しています。貴方にとって不必要な操作もあります。<br>参考にする際は、前後の操作を確認して下さい。</p>



<div class="wp-block-cocoon-blocks-icon-box common-icon-box block-box information-box">
<p class="wp-block-paragraph">CosmicClaritySuite_Linux_AlternateBuild<br>Python共有ライブラリを見てみる。<br>libpython3.12.so*<br>libpython3.12.so.1.0*</p>



<p class="wp-block-paragraph">Active Python releasesを見ると、Python 3.12 は &#8220;security&#8221; とあるので、<br>Python 3.12.13 &#8211; March 3, 2026を入れてみよう。<br><br>Ubuntu 26.04 + RTX5060 + CUDA 12.x + Python 3.12.13 + onnxruntime-gpu 1.26 + GraXPert  + Cosmic Clarity + ラッパーコマンド = Cheers🥂<br>かな？</p>
</div>



<h2 class="wp-block-heading">Ubuntu 26.04 LTS</h2>



<p class="wp-block-paragraph">福山大学 工学部 情報工学科 『金子邦彦研究室へようこそ』<br>こちらで綺麗にまとめられています。公開されていて、とても有り難いです。金子邦彦さん、感謝です。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">金子邦彦研究室へようこそ <a rel="noopener" target="_blank" href="https://www.kkaneko.jp/index.html">https://www.kkaneko.jp/index.html</a><br>Ubuntu 24.04 開発・研究環境構築ガイド<br>【概要】本ガイドでは、Ubuntu 24.04 LTSにおける各種ソフトウェアのインストール手順を説明する。プログラミング環境（C/C++、Python、Java、R）、NVIDIA GPU環境（ドライバ、CUDA Toolkit、cuDNN）、データベース（PostgreSQL）、人工知能・機械学習ライブラリ、3次元コンピュータグラフィックス・地理情報システム・メディア処理ツール、エディタ・統合開発環境などを扱う。<br><a rel="noopener" target="_blank" href="https://www.kkaneko.jp/tools/ubuntu/ubuntu.html">https://www.kkaneko.jp/tools/ubuntu/ubuntu.html</a><br><a rel="noopener" target="_blank" href="https://www.kkaneko.jp/tools/ubuntu/ubuntu_cudnn.html">https://www.kkaneko.jp/tools/ubuntu/ubuntu_cudnn.html</a></p>
</blockquote>



<h3 class="wp-block-heading">インストールできない。。。</h3>



<p class="wp-block-paragraph">インストール不具合があるならば、「セキュアブートを無効」は優先すべき選択肢と思います。</p>



<p class="wp-block-paragraph">SDDに問題があり、次のエラー表示。インストールが始まらない。。。</p>



<pre class="wp-block-code"><code>&#91;8768]:raise ValueError("Failed to find storage volume id='%s' config: %s"
&#91;8768]:ValueError: Failed to find storage volume id='disk-sda' config: {'ptable': 'gpt', 'serial': 'ELECOM_ESD-EYB_055Y00400047-0:0', 'path': '/dev/sda', 'wipe': 'superblock-recursive', 'preserve': False, 'name': '', 'grub_device': False, 'id': 'disk-sda', 'type': 'disk'}</code></pre>



<pre class="wp-block-code"><code>ストレージに対する指定は、

path	/dev/sda	対象となる物理ディスクのパス
wipe	superblock-recursive	ディスク上の古いファイルシステムやLVMのメタデータ（スーパーブロック）を完全に消去する
preserve   False	既存のパーティションやデータを保持しない（すべて上書きする）
name	''	ディスクの名前やラベルを指定しない（空白、指定なし）
grub_device	False	このディスク自体にはGRUB（ブートローダ）をインストールしない（※通常、GRUBはEFIパーティションなどの特定のパーティションにインストールされます）
type	disk	対象のタイプが「ディスク（物理ドライブ）」であることを示す
id	disk-sda	このディスク設定に対するユニークな識別子（ID）</code></pre>



<p class="wp-block-paragraph">インストールストレージのデバイス諸要件と、実際のストレージの要件が一致しないエラーのようです。何度もインストールを試し、パーティションを作り直しているので、このような症状になったのかと思い、インストールメディアの先頭データ512バイトを削除します。<br>これで、そのディスクの構成を記録してあるパーティションテーブルが無くなります。（乱暴。。。）</p>



<pre class="wp-block-code"><code>sudo dd if=/dev/zero of=/dev/sda bs=512 count=1
sudo dd if=/dev/zero of=/dev/sda bs=1M count=100 conv=fdatasync

sync</code></pre>



<p class="wp-block-paragraph"><code>/dev/sda</code> に残っているファイルシステムやパーティションなどの識別情報（署名）を削除します。</p>



<pre class="wp-block-code"><code>sudo wipefs -a /dev/sda</code></pre>



<p class="wp-block-paragraph">/dev/sda GPTパーティションテーブルを新しく作ります。</p>



<pre class="wp-block-code"><code>sudo parted /dev/sda mklabel gpt</code></pre>



<p class="wp-block-paragraph">この後、インストールを行います。</p>



<h3 class="wp-block-heading">インストール後の「落ち穂拾い」</h3>



<pre class="wp-block-code"><code>sudo apt update
sudo apt upgrade
reboot</code></pre>



<h4 class="wp-block-heading">バッテリーの話し</h4>



<p class="wp-block-paragraph">TLP: 電源管理</p>



<pre class="wp-block-code"><code>sudo apt install tlp tlp-rdw
REMOVING:
  power-profiles-daemon</code></pre>



<p class="wp-block-paragraph">TLP有効化</p>



<pre class="wp-block-code"><code>sudo systemctl enable tlp
sudo systemctl start tlp</code></pre>



<p class="wp-block-paragraph">TLP設定ファイルを編集</p>



<p class="wp-block-paragraph">こちらのノートPCでは、GNOME 拡張機能ではバッテリーのコントロールが出来ませんでした。<br>Windows11にてバッテリーマネージャー で設定すると、Ubuntu 26でも引き継がれている。<br>制御チップに指定がされ、残っているのだろうか？</p>



<pre class="wp-block-code"><code>電源デバイスのパスを表示
upower -e
/org/freedesktop/UPower/devices/battery_BAT0
/org/freedesktop/UPower/devices/line_power_AC0

upower -i /org/freedesktop/UPower/devices/battery_BAT0
charge-cycles:       N/A
</code></pre>



<pre class="wp-block-code"><code>/sys/class/power_supply/BAT
charge_full         6400000
charge_full_design  6400000

充電80% の時
charge_now　　　　　5120000

77%
current_now         2040000

voltage_min_design 15480000
voltage_now        16795000</code></pre>



<p class="wp-block-paragraph">GNOME 拡張機能を使用する場合は、以下の指定をします。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">

<a rel="noopener" target="_blank" href="https://www.youtube.com/watch?v=yDHEKpmSLO0" title="How to Limit Battery Charging to 80% in Ubuntu Linux" class="blogcard-wrap external-blogcard-wrap a-wrap cf"><div class="blogcard external-blogcard eb-left cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img loading="lazy" decoding="async" src="https://globe3.ddns.net/wp/wp-content/uploads/cocoon-resources/blog-card-cache/b99086c1ba963e2f2442d4f69908ca1e.jpg" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="320" height="180" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">How to Limit Battery Charging to 80% in Ubuntu Linux</div><div class="blogcard-snippet external-blogcard-snippet">Keeping your laptop constantly charged at 100% may reduce its battery health over time.So, in this quick tutorial, I’ll ...</div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://www.youtube.com/watch?v=yDHEKpmSLO0" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">www.youtube.com</div></div></div></div></a>



<ul class="wp-block-list">
<li>sudo apt install gnome-shell-extension-manager ：拡張機能マネージャーをインストール</li>



<li>「アプリを表示」→「Extension Manager」を開く→「Battery Health Charging」を検索</li>



<li>拡張機能の設定画面（歯車アイコン）を開き、 Install user privileges for this user</li>



<li>sudo 機能が必要なので、Install からパスワードを入れます。</li>



<li>パスワードを入力して権限が適用されると、画面右上のステータスバーから充電モード（100%、80%、60%など）を切り替えられる。</li>
</ul>
</blockquote>



<ul class="wp-block-list">
<li>sudo apt install gnome-shell-extension-manager ：拡張機能マネージャーをインストール</li>



<li>Extension Manager」アプリを開き、「Browse」 タブから 「Battery Health Charging」 を検索</li>



<li>拡張機能の設定画面（歯車アイコン）を開き、一番下にある Install user privileges</li>



<li>パスワードを入力して権限が適用されると、画面右上のステータスバーから充電モード（100%、80%、60%など）を切り替えられる</li>
</ul>



<h4 class="wp-block-heading">ファンコントロール</h4>



<pre class="wp-block-code"><code>lsmod | grep -E 'ec_sys|wmi|asus|dell|ideapad|thinkpad|hp'</code></pre>



<pre class="wp-block-code"><code>asus_wmi              106496  0
sparse_keymap          12288  1 asus_wmi
wmi_bmof               12288  0
nvidia_wmi_ec_backlight    12288  0
snd_rawmidi            57344  1 snd_seq_midi
snd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidi
snd                   147456  23 snd_hda_codec_generic,snd_seq,snd_hda_codec_conexant,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_sof,snd_soc_sdca,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi
platform_profile       20480  2 amd_pmf,asus_wmi
video                  77824  4 nvidia_wmi_ec_backlight,asus_wmi,amdgpu,nvidia_modeset
wmi                    36864  4 video,nvidia_wmi_ec_backlight,asus_wmi,wmi_bmof</code></pre>



<p class="wp-block-paragraph"><code>asus_wmi</code> がロードされています。</p>



<p class="wp-block-paragraph">EC（Embedded Controller：エンベデッド・コントローラー）は、パソコンのマザーボード上に搭載され、キーボードの入力監視や電源管理、温度・ファン制御などのシステム基本動作を常時監視・制御する小型のマイクロコントローラーです。</p>



<p class="wp-block-paragraph">Linuxカーネルは、このECをASUS系のWMIインターフェースとして認識しているかもしれない。</p>



<p class="wp-block-paragraph">DMI情報は、PCのメーカー名・機種名・製品型番などを、ファームウェア（BIOS/UEFI）からLinuxが読み取った情報です。</p>



<h4 class="wp-block-heading">時刻表示が8時間ずれる</h4>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">ハードウェアクロック:  PC集積回路上あるCMOSに保存されている、時刻情報<br>システムクロック: OSのカーネルが管理している時刻情報<br><br>OSの起動時にハードウェアクロックの情報をシステムクロックに反映させることで、時刻情報を取得している。<br><br>Linux : UTC（世界標準時）をNTPサーバから取得し、<strong>UTC時刻情報をハードウェアクロックに設定している</strong>。その後システムクロックは、ハードウェアクロックから取得した時刻情報はUTCと解釈しているため、その時刻情報をローカルタイムに合わせて調整する。<br><br>Windows : ハードウェアクロックに設定する時刻情報はローカルタイムであるため、システムクロックはその時刻情報をローカルタイムと解釈して、そのままの値で取得したものを設定している。<br><a rel="noopener" target="_blank" href="https://qiita.com/Juice/items/63279e93f818ba74312d">https://qiita.com/Juice/items/63279e93f818ba74312d</a></p>
</blockquote>



<p class="wp-block-paragraph">SSDなどを替えて、OSを同じPCで起動した場合、Windowsが世界標準時になり、Linuxが日本時刻（JST）になる。</p>



<pre class="wp-block-code"><code># ハードウェアクロックにローカルタイムを、ローカル時刻に指定
sudo timedatectl set-local-rtc 1

# ハードウェアクロックにローカルタイムを、UTC時刻に指定
sudo timedatectl set-local-rtc 0</code></pre>



<h4 class="wp-block-heading">Linux GPU Control Application</h4>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Linux GPU Control Application<br><a rel="noopener" target="_blank" href="https://github.com/ilya-zlobintsev/LACT">https://github.com/ilya-zlobintsev/LACT</a></p>
</blockquote>



<p class="wp-block-paragraph">Ubuntu 26.04 へインストールします。</p>



<pre class="wp-block-code"><code>wget https://github.com/ilya-zlobintsev/LACT/releases/download/v0.10.0/lact-0.10.0-0.amd64.ubuntu-2604.deb
sudo apt install ./lact-0.10.0-0.amd64.ubuntu-2604.deb</code></pre>



<pre class="wp-block-code"><code>sudo systemctl enable --now lactd</code></pre>



<h3 class="wp-block-heading">C/C++コンパイラ、make、パッケージツール</h3>



<pre class="wp-block-code"><code>sudo apt update
sudo apt install build-essential gcc g++ make libtool dpkg-dev pkg-config dkms</code></pre>



<pre class="wp-block-code"><code>### sudo apt update
### sudo apt install build-essential gcc g++ make libtool pkg-config</code></pre>



<h3 class="wp-block-heading">NVIDIA関連ソフトウェア（ドライバ、CUDA Toolkit、cuDNN）</h3>



<p class="wp-block-paragraph">ここが今回の主役とも言えます。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">NVIDIA ドライバ、NVIDIA CUDA ツールキット 11.8、NVIDIA cuDNN 8 のインストール<br><a rel="noopener" target="_blank" href="https://www.kkaneko.jp/tools/ubuntu/ubuntu_cudnn.html">https://www.kkaneko.jp/tools/ubuntu/ubuntu_cudnn.html</a></p>



<p class="wp-block-paragraph">26.04 LTSとNVIDIA/AMDのGPGPU事情<br><a rel="noopener" target="_blank" href="https://gihyo.jp/admin/serial/01/ubuntu-recipe/0912">https://gihyo.jp/admin/serial/01/ubuntu-recipe/0912</a><br><br>Linux向けCUDAインストールガイド<br><a rel="noopener" target="_blank" href="https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html">https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html</a></p>
</blockquote>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">NVIDIA CUDA ツールキットとは？<br>NVIDIA® CUDA® ツールキットは、高性能な GPU アクセラレーション対応アプリケーションを作成するための開発環境を提供します。<br>このツールキットには、GPU アクセラレーション対応ライブラリ、デバッグおよび最適化ツール、C/C++ コンパイラ、およびランタイムライブラリが含まれています。<br><a rel="noopener" target="_blank" href="https://developer.nvidia.com/cuda/toolkit">https://developer.nvidia.com/cuda/toolkit</a></p>
</blockquote>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">cuDNN とは？<br>NVIDIA® CUDA® ディープニューラルネットワークライブラリ（cuDNN）は、ディープニューラルネットワーク用のGPUアクセラレーション対応プリミティブライブラリです。cuDNNは、順方向および逆方向畳み込み、アテンション、行列乗算、プーリング、正規化などの標準ルーチンに対して、高度に最適化された実装を提供します。<br><a rel="noopener" target="_blank" href="https://developer.nvidia.com/cudnn">https://developer.nvidia.com/cudnn</a></p>
</blockquote>



<p class="wp-block-paragraph">インストールの流れは、</p>



<ul class="wp-block-list">
<li>目的にあった<code>nvidia-driver</code>が入っているかを、確認します。
<ul class="wp-block-list">
<li>R595がインストールされる （2026年7月現在）</li>



<li>NVIDIAのプロプライエタリなドライバーが入っているならば、削除</li>



<li><code>nvidia-driver</code>を入れ直す</li>
</ul>
</li>



<li>Ubuntu 公式リポジトリの <code>nvidia-driver-???-open</code> をインストール</li>



<li>CUDA ツールキット　<code>cuda-toolkit-</code>12.x.x runfileにてインストール</li>



<li>cuDNN</li>



<li>GPUアーキテクチャをサポートする最新のPyTorch、CUDA（CUDA 12.x）の組み合わせにアップデート</li>
</ul>



<pre class="wp-block-code"><code># システム内容を確認します。
dpkg -l | grep nvidia

nvidia-driver-595-open
linux-modules-nvidia-595-open-7.0.0-28-generic
linux-modules-nvidia-595-open-generic-hwe-26.04
libnvidia-compute-595:amd64
nvidia-utils-595</code></pre>



<pre class="wp-block-code"><code>nvidia-smi

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 595.71.05              Driver Version: 595.71.05      CUDA Version: 13.2   |  
+-----------------------------------------+------------------------+--------------------+
|   0  NVIDIA GeForce RTX
| N/A   41C    P8              6W /   75W |      26MiB /   8151MiB |      0%      Default </code></pre>



<pre class="wp-block-code"><code>nvidia-smi

+--------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.173.02             Driver Version: 580.173.02     CUDA Version: 13.0  |
+-----------------------------------------+------------------------+-------------------+</code></pre>



<p class="wp-block-paragraph">ここに表示されている、&#8221;CUDA Version: 13.2&#8243; や、&#8221;CUDA Version: 13.0&#8243;は、インストールされているCUDAではなくて、GPUがサポート出来るCUDAのバージョンです。</p>



<h4 class="wp-block-heading">どこの配布元のドライバを入れれば良いのか？</h4>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><a rel="noopener" target="_blank" href="https://www.nemotos.net/?p=5792">https://www.nemotos.net/?p=5792</a><br>Ubuntu 公式リポジトリと NVIDIA 公式リポジトリの両方に NVIDIA 関連パッケージが存在する状態になります。<code>apt-get full-upgrade</code> 時に、どちらのリポジトリからパッケージが引かれるかは優先度（priority）設定に依存し、意図しないバージョンが入る可能性があります。</p>
</blockquote>



<p class="wp-block-paragraph">アップデートなどで意図しないバージョンが更新されたり、ビルドに失敗することがあるらしい。</p>



<p class="wp-block-paragraph">2026年7月現在は、&#8221;Ubuntu 公式リポジトリの <code>restricted</code> セクションに <code>nvidia-driver-XXX-open</code> パッケージが収録され、NVIDIAのリポジトリを追加しなくても、nvidia-driverがインストールできます。</p>



<p class="wp-block-paragraph">Ubuntu 公式リポジトリの <code>nvidia-driver-580-open</code> を使えば、ドライバをインストールでき、カーネル更新との互換性も高まるそうです。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">NVIDIA ドライバのブランチ体系<br>NVIDIA は Linux GPU ドライバを “Long Term Support Branch”, “Production Branch”, “New Feature Branch” にわけてリリースしている<br><a rel="noopener" target="_blank" href="https://www.nemotos.net/?p=5792">https://www.nemotos.net/?p=5792</a></p>
</blockquote>



<p class="wp-block-paragraph">Ubuntu 26 04 インストール時に、プロプライエタリなドライバーを選択すると、<br>R595がインストールされます。（2026年7月19日現在）<br>しかし、R580を使いたいと思います。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Supported Drivers and CUDA Toolkit Versions を見ると、<br><a rel="noopener" target="_blank" href="https://docs.nvidia.com/datacenter/tesla/drivers/supported-drivers-and-cuda-toolkit-versions.html">https://docs.nvidia.com/datacenter/tesla/drivers/supported-drivers-and-cuda-toolkit-versions.html</a><br><br>R595は、2027年3月までのサポート<br>R580は、2028年6月までのサポート</p>
</blockquote>



<p class="wp-block-paragraph">Long Term Support Branch である 580が良いな。<br>サポート期間が終わったならば、NVIDIA ドライバを次のLong Term Support Branchへ移行し、<br>CUDAもNVIDIA ドライバに合わせて、runファイルを使って、アップデートを行う予定にする。</p>



<h4 class="wp-block-heading">CUDAバージョンに関して</h4>



<div class="wp-block-cocoon-blocks-icon-box common-icon-box block-box information-box">
<p class="wp-block-paragraph">GPUの型番にあったCUDAバージョンと、CUDA バージョンに対応した cuDNNをインストールすることが、「鍵」の一つになります。</p>
</div>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">GPUの型番にあったCUDAバージョンの選び方<br><a rel="noopener" target="_blank" href="https://zenn.dev/yumizz/articles/73d6c7d1085d2f">https://zenn.dev/yumizz/articles/73d6c7d1085d2f</a></p>
</blockquote>



<p class="wp-block-paragraph">こちらの表を参照します。<br>Wiki CUDA<br><a rel="noopener" target="_blank" href="https://en.wikipedia.org/wiki/CUDA">https://en.wikipedia.org/wiki/CUDA</a></p>



<p class="wp-block-paragraph">GPUが、RTX 5060 だと、Compute capability (version)は [12.0]、[Blackwell]</p>



<p class="wp-block-paragraph">CUDA SDK support vs. microarchitecture (cell: compute capability)表を見ると、<br>&#8220;Blackwell&#8221; → [12.0] → &#8220;CUDA SDK version(s)&#8221; → 12.8 と辿れます。</p>



<p class="wp-block-paragraph">CUDA 12.8 をインストールし、使用すれば良いと判ります。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">PyTorchはすでに CUDA 13.0 を標準（Stable）としてサポートするフェーズ<br><a rel="noopener" target="_blank" href="https://dev-discuss.pytorch.org/t/introducing-cuda-13-2-and-deprecating-cuda-12-8-release-2-12/3337">https://dev-discuss.pytorch.org/t/introducing-cuda-13-2-and-deprecating-cuda-12-8-release-2-12/3337</a></p>
</blockquote>



<h2 class="wp-block-heading">Ubuntuのリポジトリからnvidia-driver-580-open, <br>CUDA 12.x の runfile をダウンロードし、インストール</h2>



<h3 class="wp-block-heading">現在のNVIDIA関連パッケージを設定ファイルを含めて削除</h3>



<p class="wp-block-paragraph">Ubuntu 26インストール時に、プロプライエタリなドライバーインストールを選択したならば、</p>



<pre class="wp-block-code"><code># インストールされているCUDA関連パッケージを確認
dpkg -l | grep cuda
dpkg -l | grep nvidia

# NVIDIA関連パッケージを削除
sudo apt --purge remove '*nvidia*'
# CUDA はrunfile を用いてインストールしているので、"cuda-uninstaller"を使う
# sudo apt --purge remove '*cuda*'
sudo apt --purge remove '*cudnn*'

# 若しくは、
sudo apt --purge remove \
  'nvidia-driver-*' \
  'nvidia-dkms-*' \
  'nvidia-kernel-*' \
  'libnvidia-*' \
  'nvidia-utils-*' \
  'nvidia-compute-utils-*' \
  'nvidia-modprobe' \
  'nvidia-settings' \
  'xserver-xorg-video-nvidia-*'</code></pre>



<pre class="wp-block-code"><code># 削除結果
# nvidia-settings control panelが残る
dpkg -l | grep nvidia
ii  screen-resolution-extr 0.18.5build1 all Extension for the nvidia-settings control panel

# nvidia-settings control panelを削除
sudo apt --purge remove screen-resolution-extra
</code></pre>



<h3 class="wp-block-heading">現在のNVIDIA CUDA 関連パッケージの設定ファイルを含めて削除</h3>



<pre class="wp-block-code"><code>sudo apt --purge remove \
  'cuda*' \
  'libcudnn*' \
  'libnccl*' \
  'libcublas*' \
  'libcufft*' \
  'libcurand*' \
  'libcusolver*' \
  'libcusparse*' \
  'libnpp*' \
  'libnvjpeg*' \
  'libnvjitlink*' \
  'nsight-*'</code></pre>



<h3 class="wp-block-heading">NVIDIA repositoryの削除 、更新が固定されたNVIDIA, CUDA関連の固定解除</h3>



<pre class="wp-block-code"><code>ファイルがあれば、sudo rm -f　を用いて削除
/etc/apt/sources.list.d/cuda-ubuntu${UBUNTU_VER}-x86_64.list
/etc/apt/sources.list.d/cuda-*.list
/usr/share/keyrings/cuda-archive-keyring.gpg
/etc/apt/trusted.gpg.d/cuda-*.gpg</code></pre>



<pre class="wp-block-code"><code># 更新が固定されているNVIDIA、又は、CUDA関連のパッケージを検索し、
# 変数の"hold" を "remaining" に変更する
# Author: K. Nemoto
# Date: 2026-05-23
# Show remaining holds (should be empty)
echo "--- Remaining apt-mark holds for nvidia/cuda ---"
remaining=$(apt-mark showhold | grep -E 'nvidia|cuda' || true)
if &#91; -z "$remaining" ]; then
  echo "(none)"
else
  echo "$remaining"
fi

#”https://gitlab.com/kytk/lin4neuro-jammy/-/raw/main/installer-scripts/cuda_cleanup.sh”</code></pre>



<h3 class="wp-block-heading">依存関係の削除と、パッケージリスト情報を更新</h3>



<pre class="wp-block-code"><code># 不要になった依存関係を自動削除
sudo apt autoremove --purge

# パッケージリストの情報を更新
sudo apt update

# Update device list 必要ならば
sudo update-pciids</code></pre>



<h3 class="wp-block-heading">ドライバのビルドに必要なカーネルヘッダー等をインストールする</h3>



<pre class="wp-block-code"><code>sudo apt update
sudo apt install linux-headers-$(uname -r) build-essential dkms

### ヘッダー無しならば
### sudo apt update
### sudo apt install build-essential dkms</code></pre>



<h3 class="wp-block-heading">Ubuntuが推奨するドライバを指定してインストール</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">NVIDIA が GPU カーネルモジュールのソースコードを open source（GPL/MIT デュアルライセンス）で公開したことに伴い、Ubuntu は公式リポジトリの <code>restricted</code> セクションに <code>nvidia-driver-XXX-open</code> パッケージを収録するようになりました。つまり、NVIDIAのリポジトリを追加しなくても、nvidia-driverがインストールできるようになったということです。<br><a rel="noopener" target="_blank" href="https://www.nemotos.net/?p=5792">https://www.nemotos.net/?p=5792</a></p>
</blockquote>



<p class="wp-block-paragraph">Ubuntuのリポジトリからnvidia-driver-580-open　をインストールします。</p>



<pre class="wp-block-code"><code>Ubuntu 26インストール時に、プロプライエタリなドライバーインストールを選択せず、
コマンドでnvidiaドライバをインストールするならば、以下を行います。

# システムが認識しているGPUと利用可能なドライバを表示
ubuntu-drivers devices
driver   : nvidia-driver-???-open - distro non-free recommended

# "recommended" 推奨されるドライバをインストール
sudo apt install nvidia-driver-???-open

# 2026年7月現在では、580
sudo apt install nvidia-driver-580-open

# initramfsを更新
# /bootにある既存のInitramfsの更新や削除、/bootへの新規Initramfsの作成に使うコマンド
sudo update-initramfs -u

# 内容を確認
#  sudo lsinitramfs /boot/initrd.img-`uname -r`

# ドライバの有効化のためにシステムを再起動
sudo /sbin/shutdown -r now</code></pre>



<p class="wp-block-paragraph">モジュール関連</p>



<pre class="wp-block-code"><code>Building module(s)........... done.
Signing module /var/lib/dkms/nvidia/580.173.02/build/nvidia.ko
Signing module /var/lib/dkms/nvidia/580.173.02/build/nvidia-modeset.ko
Signing module /var/lib/dkms/nvidia/580.173.02/build/nvidia-drm.ko
Signing module /var/lib/dkms/nvidia/580.173.02/build/nvidia-uvm.ko
Signing module /var/lib/dkms/nvidia/580.173.02/build/nvidia-peermem.ko
Installing /lib/modules/7.0.0-28-generic/updates/dkms/nvidia.ko.zst
Installing /lib/modules/7.0.0-28-generic/updates/dkms/nvidia-modeset.ko.zst
Installing /lib/modules/7.0.0-28-generic/updates/dkms/nvidia-drm.ko.zst
Installing /lib/modules/7.0.0-28-generic/updates/dkms/nvidia-uvm.ko.zst
Installing /lib/modules/7.0.0-28-generic/updates/dkms/nvidia-peermem.ko.zst
Running depmod... done.
xserver-xorg-video-nvidia-580 (580.173.02-0ubuntu0.26.04.1) を設定しています ...
libnvidia-compute-580:amd64 (580.173.02-0ubuntu0.26.04.1) を設定しています ...
libnvidia-fbc1-580:amd64 (580.173.02-0ubuntu0.26.04.1) を設定しています ...
nvidia-compute-utils-580 (580.173.02-0ubuntu0.26.04.1) を設定しています ...
libnvidia-gl-580:amd64 (580.173.02-0ubuntu0.26.04.1) を設定しています ...
libnvidia-decode-580:amd64 (580.173.02-0ubuntu0.26.04.1) を設定しています ...
nvidia-utils-580 (580.173.02-0ubuntu0.26.04.1) を設定しています ...
libnvidia-encode-580:amd64 (580.173.02-0ubuntu0.26.04.1) を設定しています ...
nvidia-driver-580-open (580.173.02-0ubuntu0.26.04.1) を設定しています ...
gnome-menus (3.38.1-1ubuntu1) のトリガを処理しています ...
libc-bin (2.43-2ubuntu2) のトリガを処理しています ...
man-db (2.13.1-1build1) のトリガを処理しています ...
dbus (1.16.2-2ubuntu4) のトリガを処理しています ...
dracut (110-11) のトリガを処理しています ...
update-initramfs: Generating /boot/initrd.img-7.0.0-28-generic
desktop-file-utils (0.28-1build1) のトリガを処理しています ...</code></pre>



<pre class="wp-block-code"><code>何がインストールされたか確認
dpkg -l | grep nvidia
libnvidia-cfg1-580:amd64   580.159.03-0ubuntu0.26.04.1   amd64   NVIDIA binary OpenGL/GLX configuration library
libnvidia-common-580      580.159.03-0ubuntu0.26.04.1    amd64   Shared files used by the NVIDIA libraries
libnvidia-compute-580:amd64   580.159.03-0ubuntu0.26.04.1   amd64    NVIDIA libcompute package
libnvidia-decode-580:amd64  580.159.03-0ubuntu0.26.04.1  amd64   NVIDIA Video Decoding runtime libraries
libnvidia-egl-wayland1:amd64  1:1.1.21-1  amd64  Wayland EGL External Platform library -- shared library
libnvidia-encode-580:amd64   580.159.03-0ubuntu0.26.04.1   amd64   NVENC Video Encoding runtime library
libnvidia-extra-580:amd64     580.159.03-0ubuntu0.26.04.1     amd64   Extra libraries for the NVIDIA driver
libnvidia-fbc1-580:amd64    580.159.03-0ubuntu0.26.04.1    amd64   NVIDIA OpenGL-based Framebuffer Capture runtime library
libnvidia-gl-580:amd64  580.159.03-0ubuntu0.26.04.1   amd64  NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
nvidia-compute-utils-580 　580.159.03-0ubuntu0.26.04.1   amd64  NVIDIA compute utilities
nvidia-dkms-580-open    580.159.03-0ubuntu0.26.04.1  amd64    NVIDIA DKMS package (open kernel module)
nvidia-driver-580-open  580.159.03-0ubuntu0.26.04.1  amd64 NVIDIA driver (open kernel) metapackage
nvidia-firmware-580-580.159.03  580.159.03-0ubuntu0.26.04.1   amd64  Firmware files used by the kernel module
nvidia-kernel-common-580  580.159.03-0ubuntu0.26.04.1   amd64    Shared files used with the kernel module
nvidia-kernel-source-580-open  580.159.03-0ubuntu0.26.04.1  amd64    NVIDIA kernel source package
nvidia-prime      0.8.17.2build1       all       Tools to enable NVIDIA's Prime
nvidia-settings    510.47.03-0ubuntu7    amd64    Tool for configuring the NVIDIA graphics driver
nvidia-utils-580    580.159.03-0ubuntu0.26.04.1    amd64     NVIDIA driver support binaries
screen-resolution-extra    0.18.5build1  all    Extension for the nvidia-settings control panel
xserver-xorg-video-nvidia-580 580.159.03-0ubuntu0.26.04.1   amd64    NVIDIA binary Xorg driver</code></pre>



<pre class="wp-block-code"><code>NVIDIA製GPUの稼働状況やシステム情報を確認します。
nvidia-smi

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.173.02             Driver Version: 580.173.02     CUDA Version: 13.0   |
+---------------------------------------+------------------------+----------------------+</code></pre>



<h3 class="wp-block-heading">CUDA Toolkit runfile</h3>



<p class="wp-block-paragraph">CUDA Toolkit 12.8.2 (April 2026) runfile をインストールする。</p>



<div class="wp-block-cocoon-blocks-icon-box common-icon-box block-box information-box">
<p class="wp-block-paragraph"><code>--toolkit</code> : オプションを指定して、ドライバーをインストールしない。<br>との案内がありましたが、2026年7月では、CUDA 13.x , 12.xともドライバーにチェックが入っています。<br><br>ドライバは Ubuntu 公式リポジトリの deb で管理し、CUDA Toolkit は runfile で管理することができる。<br>とありますが、インストールツールには、マークされているので、ドライバーが不要ならば、マークを外します。</p>
</div>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">NVIDIA CUDA Toolkit <a rel="noopener" target="_blank" href="https://developer.nvidia.com/cuda-downloads">https://developer.nvidia.com/cuda-downloads</a> で利用可能です。<br><br>archive からでもファイルをダウンロードできます。<br><a rel="noopener" target="_blank" href="https://developer.nvidia.com/cuda-toolkit-archive">https://developer.nvidia.com/cuda-toolkit-archive</a><br><a rel="noopener" target="_blank" href="https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html">https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html</a></p>
</blockquote>



<pre class="wp-block-code"><code># CUDA Toolkit 12.8.2
wget https://developer.download.nvidia.com/compute/cuda/12.8.2/local_installers/cuda_12.8.2_570.211.01_linux.run
sudo sh cuda_12.8.2_570.211.01_linux.run --toolkit</code></pre>



<pre class="wp-block-code"><code># CUDA Toolkit 13.0.3

wget https://developer.download.nvidia.com/compute/cuda/13.0.3/local_installers/cuda_13.0.3_580.126.20_linux.run
sudo sh cuda_13.0.3_580.126.20_linux.run</code></pre>



<pre class="wp-block-code"><code>wget https://developer.download.nvidia.com/compute/cuda/12.8.2/local_installers/cuda_12.8.2_570.211.01_linux.run</code></pre>



<p class="wp-block-paragraph">「nvidia-fs をインストールするには、mofedを先にインストールしなさいよ」とインストールログ</p>



<pre class="wp-block-code"><code># インストールログ
&#91;INFO]: previous version of nvidia-fs is not installed, nvidia-fs version: 2.24.3 will be installed.
&#91;INFO]: getting mofed Status
&#91;INFO]: installation status shows that mofed is not installed,please install mofed before continuing nvidia_fs install.
&#91;ERROR]: Install of nvidia-fs failed, quitting</code></pre>



<h4 class="wp-block-heading">nvidia-fs と mofed</h4>



<p class="wp-block-paragraph">複数のGPUユニットがある場合に有効でしょう。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">nvidia-fs とは、<br><a rel="noopener" target="_blank" href="https://jp.ubuntu.com/blog/canonical-announces-it-will-distribute-nvidia-doca-ofed-in-ubuntu-jp">https://jp.ubuntu.com/blog/canonical-announces-it-will-distribute-nvidia-doca-ofed-in-ubuntu-jp</a></p>



<p class="wp-block-paragraph">RDMA（リモートダイレクトメモリアクセス）やNVIDIA GPUDirectといった高度な機能により、CPUのオフロード、テールレイテンシの短縮と予測、負荷時におけるスループットの維持を実現します。<br><br>NVIDIA GPUDirect とは、<br><a rel="noopener" target="_blank" href="https://developer.nvidia.com/gpudirect">https://developer.nvidia.com/gpudirect</a><br><br>システムメモリを介さずに、NVMeやNVMe over Fabric（NVMe-oF）などのローカルまたはリモートストレージと、GPUメモリとの間に、直接的なデータパスを実現します。</p>
</blockquote>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Canonical、UbuntuでのNVIDIA DOCA-OFEDの配布を発表　by Canonical on 21 April 2026<br><a rel="noopener" target="_blank" href="https://jp.ubuntu.com/blog/canonical-announces-it-will-distribute-nvidia-doca-ofed-in-ubuntu-jp">https://jp.ubuntu.com/blog/canonical-announces-it-will-distribute-nvidia-doca-ofed-in-ubuntu-jp</a><br><br>インストール<br>Install and maintain DOCA-OFED<br><a rel="noopener" target="_blank" href="https://ubuntu.com/server/docs/how-to/networking/install-doca-ofed/">https://ubuntu.com/server/docs/how-to/networking/install-doca-ofed/</a></p>
</blockquote>



<pre class="wp-block-code"><code># インストール
uname -r
sudo add-apt-repository ppa:canonical-nvidia/doca-stable
sudo apt update
sudo apt install -y doca-ofed-&lt;your_kernel_flavor&gt;
## もしも、uname -r -&gt; 7.0.0-28-generic などならば、以下
sudo apt install doca-ofed-generic
Finally, reboot the machine.!!</code></pre>



<pre class="wp-block-code"><code># インストールログ
Installing: doca-ofed-generic

Installing dependencies: doca-ofed-userspace-26.01  ibsim-doc-26.01  libibmad5-26.01 libnl-3-dev  linux-main-modules-doca-ofed-26.01-7.0.0-28-generic  mlnx-iproute2-26.01
opensm-doc-26.01  ucx-26.01

dpcp-26.01  ibutils2-26.01  libibnetdisc5-26.01 libnl-route-3-dev linux-modules-doca-ofed-26.01-generic
mlnx-ofed-kernel-utils-26.01  perftest-26.01

ibacm-26.01  ibverbs-providers-26.01  libibumad-dev-26.01   libopensm-26.01
mft-26.01    mlnx-tools-26.01    rdma-core-26.01

ibarr-26.01  ibverbs-utils-26.01  libibumad3-26.01  libopensm-devel-26.01
mft-mlx5-26.01    ofed-scripts-26.01   rdmacm-utils-26.01

ibdump-26.01 infiniband-diags-26.01 libibverbs-dev-26.01  librdmacm-dev-26.01
mft-nvredfish-26.01    openmpi-26.01  rshim-26.01

ibsim-26.01  libibmad-dev-26.01  libibverbs1-26.01  librdmacm1-26.01  mlnx-ethtool-26.01
opensm-26.01    srptools-26.01
</code></pre>



<div class="wp-block-cocoon-blocks-info-box block-box primary-box">
<p class="wp-block-paragraph">OSの再起動をお忘れなく</p>
</div>



<pre class="wp-block-code"><code>DOCA-OFED をアップグレード
apt list --upgradable
sudo apt update &amp;&amp; sudo apt full-upgrade</code></pre>



<pre class="wp-block-code"><code>#--silent 使用許諾やオプション表示がされない
sudo sh cuda_12.8.2_570.211.01_linux.run --silent --toolkit</code></pre>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box">
<p class="wp-block-paragraph">既存のパッケージマネージャーによるドライバのインストールが検出されました。続行する前に、これを削除することを強くお勧めします。</p>



<p class="wp-block-paragraph">エンドユーザー使用許諾契約書<br>NVIDIA ソフトウェア使用許諾契約書およびソフトウェア使用許諾契約書の CUDA 補足条項。CUDA ツールキットエンドユーザー使用許諾契約書は、NVIDIA CUDA ツールキット、NVIDIA CUDA サンプル、NVIDIA ディスプレイドライバ、NVIDIA Nsight ツール（Visual Studio Edition）、および CUDA API、プログラミングモデル、開発ツールに関する関連ドキュメントに適用されます。</p>
</div>



<pre class="wp-block-code"><code># インストールログ
===========
= Summary =
===========
Driver:   Not Selected
Toolkit:  Installed in /usr/local/cuda-12.8/

Please make sure that
 -   PATH includes /usr/local/cuda-12.8/bin
 -   LD_LIBRARY_PATH includes /usr/local/cuda-12.8/lib64, or, add /usr/local/cuda-12.8/lib64 to /etc/ld.so.conf and run ldconfig as root

To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-12.8/bin
***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 570.00 is required for CUDA 12.8 functionality to work.
To install the driver using this installer, run the following command, replacing &lt;CudaInstaller&gt; with the name of this run file:
    sudo &lt;CudaInstaller&gt;.run --silent --driver

警告：インストールが不完全です！このインストールでは、CUDA ドライバーがインストールされませんでした。CUDA 12.8 の機能を利用するには、バージョン 570.00 以上のドライバーが必要です。
このインストーラーを使用してドライバーをインストールするには、以下のコマンドを実行してください。この際、&lt;CudaInstaller&gt; をこの実行ファイルの名前に置き換えてください：
    sudo &lt;CudaInstaller&gt;.run --silent --driver

Logfile is /var/log/cuda-installer.log
</code></pre>



<pre class="wp-block-code"><code>sudo sh cuda_12.8.2_570.211.01_linux.run --silent --driver

 Existing package manager installation of the driver found. It is strongly recommended that you remove this before continuing.
 Override this check by passing --override-driver-check
</code></pre>



<pre class="wp-block-code"><code># CUDA Toolkit 13.3
wget https://developer.download.nvidia.com/compute/cuda/13.3.1/local_installers/cuda_13.3.1_610.43.02_linux.run
sudo sh cuda_13.3.1_610.43.02_linux.run --toolkit

Logfile is /var/log/cuda-installer.log</code></pre>



<h4 class="wp-block-heading"><strong>環境変数を設定する</strong></h4>



<pre class="wp-block-code"><code>echo 'export CUDA_HOME=/usr/local/cuda-12.8' &gt;&gt; ${HOME}/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-12.8/lib64:${LD_LIBRARY_PATH}' &gt;&gt; ${HOME}/.bashrc
echo 'export PATH=/usr/local/cuda-12.8/bin:${PATH}' &gt;&gt; ${HOME}/.bashrc

# 確認
tail ${HOME}/.bashrc

# 設定を即時反映（現在のシェルのみ）
source ${HOME}/.bashrc

# 詳細バージョンを確認
cat /usr/local/cuda-12.8/version.json # version.json

# nvcc コマンドでバージョンを確認
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Wed_Aug_20_01:58:59_PM_PDT_2025
Cuda compilation tools, release 13.0, V13.0.88
Build cuda_13.0.r13.0/compiler.36424714_0</code></pre>



<pre class="wp-block-code"><code>echo 'export CUDA_HOME=/usr/local/cuda-13.0' &gt;&gt; ${HOME}/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-13.0/lib64:${LD_LIBRARY_PATH}' &gt;&gt; ${HOME}/.bashrc
echo 'export PATH=/usr/local/cuda-13.0/bin:${PATH}' &gt;&gt; ${HOME}/.bashrc</code></pre>



<pre class="wp-block-code"><code>export CUDA_HOME=/usr/local/cuda-12.8/
echo 'export CUDA_HOME=/usr/local/cuda-12.8' &gt;&gt; ${HOME}/.bashrc
export LD_LIBRARY_PATH=/usr/local/cuda-12.8/lib64:${LD_LIBRARY_PATH}
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-12.8/lib64:${LD_LIBRARY_PATH}' &gt;&gt; ${HOME}/.bashrc
export PATH=/usr/local/cuda-12.8/bin:${PATH}
echo 'export PATH=/usr/local/cuda-12.8/bin:${PATH}' &gt;&gt; ${HOME}/.bashrc</code></pre>



<pre class="wp-block-code"><code>echo 'export CUDA_HOME=/usr/local/cuda-13.3' &gt;&gt; ${HOME}/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-13.3/lib64:${LD_LIBRARY_PATH}' &gt;&gt; ${HOME}/.bashrc
echo 'export PATH=/usr/local/cuda-13.3/bin:${PATH}' &gt;&gt; ${HOME}/.bashrc</code></pre>



<pre class="wp-block-code"><code># .bashrc
export CUDA_HOME=/usr/local/cuda-12.8
export LD_LIBRARY_PATH=/usr/local/cuda-12.8/lib64:${LD_LIBRARY_PATH}
export PATH=/usr/local/cuda-12.8/bin:${PATH}</code></pre>



<h3 class="wp-block-heading">CUDA Toolkit を削除する場合</h3>



<pre class="wp-block-code"><code>sudo ./cuda-uninstaller
./cuda-uninstaller: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

sudo ln -s /usr/lib/x86_64-linux-gnu/libxml2.so.16 /usr/lib/x86_64-linux-gnu/libxml2.so.2

sudo ./cuda-uninstaller
./cuda-uninstaller: /lib/x86_64-linux-gnu/libxml2.so.2: no version information available (required by ./cuda-uninstaller)
./cuda-uninstaller: /lib/x86_64-linux-gnu/libxml2.so.2: no version information available (required by ./cuda-uninstaller)
./cuda-uninstaller: /lib/x86_64-linux-gnu/libxml2.so.2: no version information available (required by ./cuda-uninstaller)
cat: /var/log/nvidia/.uninstallManifests/kernelobjects-components/uninstallManifest-nvidia_fs: No such file or directory
make: *** ターゲット 'uninstall' を make するルールがありません.  中止.
rmmod: ERROR: Module nvidia_fs is not currently loaded

 Successfully uninstalled</code></pre>



<h3 class="wp-block-heading">cuDNN</h3>



<p class="wp-block-paragraph">バージョンの互換性がとても重要らしい。多くの方がサイトで苦労話を綴っています。<br>CUDA バージョンに対応した cuDNNを探します。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">cuDNN version9.24.0 は、CUDA Toolkit Version 13と12に互換しています。<br><a rel="noopener" target="_blank" href="https://docs.nvidia.com/deeplearning/cudnn/backend/latest/reference/support-matrix.html">https://docs.nvidia.com/deeplearning/cudnn/backend/latest/reference/support-matrix.html</a></p>
</blockquote>



<p class="wp-block-paragraph">こちらから、cuDNNインストール手順を表示させます。<br><a rel="noopener" target="_blank" href="https://developer.nvidia.com/cudnn-downloads">https://developer.nvidia.com/cudnn-downloads</a></p>



<p class="wp-block-paragraph">アーカイブからもダウンロード出来るでしょう。<br><a rel="noopener" target="_blank" href="https://developer.nvidia.com/cudnn-archive">https://developer.nvidia.com/cudnn-archive</a></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">FULL と JIT の違いは、NVIDIA Ampere GPU アーキテクチャおよびそれ以降GPUに適応しています。ダウンロードサイズ及び、インストール後のバイナリサイズを大幅に削減します。cuDNN JIT は、グラフ API を通じてランタイム・フュージョン・エンジンのみをサポートすることでこのサイズ削減を実現していますが、その代わりにサポート範囲やパフォーマンスが若干低下します。<br><a rel="noopener" target="_blank" href="https://docs.nvidia.com/deeplearning/cudnn/latest/developer/graph-api.html#cudnn-jit">https://docs.nvidia.com/deeplearning/cudnn/latest/developer/graph-api.html#cudnn-jit</a></p>
</blockquote>



<pre class="wp-block-code"><code>libcudnn9-headers-cuda-12 9.25.0.15-1 &#91;75.2 kB]
libcudnn9-cuda-12 9.25.0.15-1 &#91;505 MB]</code></pre>



<pre class="wp-block-code"><code># ローカルインストール (FULL)
wget https://developer.download.nvidia.com/compute/cudnn/9.24.0/local_installers/cudnn-local-repo-ubuntu2604-9.24.0_1.0-1_amd64.deb
sudo dpkg -i cudnn-local-repo-ubuntu2604-9.24.0_1.0-1_amd64.deb
sudo cp /var/cudnn-local-repo-ubuntu2604-9.24.0/cudnn-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update

# CUDA 12 をインストールするには、パッケージを指定します。
sudo apt-get install cudnn9-cuda-12

# CUDA 13 をインストールするには、パッケージを指定します。
sudo apt-get install cudnn9-cuda-13</code></pre>



<pre class="wp-block-code"><code># keyring 使用 ネットワークインストール
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2604/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update

# FULLをインストール
# CUDA 12 用に&#91;FULL]インストールするには、CUDA 12 固有のパッケージをインストールします。
# sudo apt-get -y install cudnn
sudo apt-get -y install cudnn9-cuda-12

CUDA 13 用に&#91;FULL]インストールするには、CUDA 13 の特定のパッケージをインストールします。
# sudo apt-get -y install cudnn9-cuda-13</code></pre>



<pre class="wp-block-code"><code>sudo dpkg -i cudnn-local-repo-ubuntu2604-9.24.0_1.0-1_amd64.deb

#The public cudnn-local-repo-ubuntu2604-9.24.0 GPG key does not appear to be installed.
#To install the key, run this command:
#sudo cp /var/cudnn-local-repo-ubuntu2604-9.24.0/cudnn-local-B991B0EF-keyring.gpg /usr/share/keyrings/</code></pre>



<p class="wp-block-paragraph">cuDNN　インストールを確認</p>



<pre class="wp-block-code"><code>dpkg -l | grep cudnn</code></pre>



<pre class="wp-block-code"><code>cudnn9-cuda-12     9.25.0.15-1 　　amd64        NVIDIA cuDNN for CUDA 12
cudnn9-cuda-12-9   9.25.0.15-1     amd64        NVIDIA cuDNN for CUDA 12.9
libcudnn9-cuda-12  9.25.0.15-1     amd64        cuDNN runtime libraries for CUDA 12.9
libcudnn9-dev-cuda-12      9.25.0.15-1   amd64   cuDNN development libraries for CUDA 12.9
libcudnn9-headers-cuda-12  9.25.0.15-1    amd64    cuDNN header files for CUDA 12.9
libcudnn9-static-cuda-12   9.25.0.15-1   amd64   cuDNN static libraries for CUDA 12.9
</code></pre>



<h2 class="wp-block-heading">Python は、どのバージョンを入れるのか？</h2>



<h3 class="wp-block-heading"> PyTorch の対応</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Python 3.14 でのいくつかの変更が PyTorch 全体に影響を与えました：<br><a rel="noopener" target="_blank" href="https://dev-discuss.pytorch.org/t/torch-compile-support-for-python-3-14-completed/3276">https://dev-discuss.pytorch.org/t/torch-compile-support-for-python-3-14-completed/3276</a><br><br>Python 3.13 のサポートにおいて直面した重要な技術的課題について説明します。<br><a rel="noopener" target="_blank" href="https://dev-discuss.pytorch.org/t/torch-compile-support-for-python-3-13-completed/2738">https://dev-discuss.pytorch.org/t/torch-compile-support-for-python-3-13-completed/2738</a></p>
</blockquote>



<h3 class="wp-block-heading">Python 3.12.x + Cosmic Clarity</h3>



<p class="wp-block-paragraph">CosmicClaritySuite_Linux_AlternateBuild.tar.xz<br>　&#8221;AlternateBuildパッケージ&#8221;<br>/usr/local/share/CosmicClaritySuite_Linux/_internal/ にあるPython関連</p>



<pre class="wp-block-code"><code>/usr/local/share/Legacy_CosmicClaritySuite_Linux/_internal/
libpython3.12.so*
libpython3.12.so.1.0*</code></pre>



<p class="wp-block-paragraph">Python 3.12.x をインストールします。</p>



<pre class="wp-block-code"><code># sudo make altinstall</code></pre>



<p class="wp-block-paragraph">ソースから構築した&#8221;python3.x&#8221; コマンドはインストールされますが、&#8221;python3&#8243; コマンドはインストールされません。<br>これにより、python3 コマンドでは主に使用するバージョンのPythonを起動し、それ以外のバージョンのPythonは、 python3.12 のように、バージョンを指定して実行します。</p>



<p class="wp-block-paragraph">Python 3.12 をインストールします。<br><br>Python 3.12.14 Release date: Aug. 12, 2026<br><a rel="noopener" target="_blank" href="https://www.python.org/downloads/release/python-31214/">https://www.python.org/downloads/release/python-31214/</a><br>Python 3.12.10 Release date: April 8, 2025<br><a rel="noopener" target="_blank" href="https://www.python.org/downloads/release/python-31210/">https://www.python.org/downloads/release/python-31210/</a></p>



<p class="wp-block-paragraph">Ubuntu環境のPython<br><a rel="noopener" target="_blank" href="https://www.python.jp/install/ubuntu/index.html">https://www.python.jp/install/ubuntu/index.html</a></p>



<pre class="wp-block-code"><code>sudo apt update
sudo apt install build-essential libbz2-dev libdb-dev \
  libreadline-dev libffi-dev libgdbm-dev liblzma-dev \
  libncursesw5-dev libsqlite3-dev libssl-dev \
  zlib1g-dev uuid-dev tk-dev</code></pre>



<pre class="wp-block-code"><code>cd Python-3.12.13
./configure
make
sudo make altinstall</code></pre>



<pre class="wp-block-code"><code>python3 --version

python3.12 --version
Python 3.12.13</code></pre>



<h3 class="wp-block-heading">Siril 1.5 Python仮想環境を作ります</h3>



<p class="wp-block-paragraph">以下の作業は、仮想環境下で行います。<br>全ては、/home/$USER/.local/share/siril 以下にインストールされます。</p>



<pre class="wp-block-code"><code># Siril 1.5 Python仮想環境ディレクトリを作成
mkdir -p /home/$USER/.local/share/siril

# Python 3.12.13 を使って指定パスに仮想環境を作成
python3.12 -m venv /home/$USER/.local/share/siril/venv

# 仮想環境を有効化 (アクティベート)
source /home/$USER/.local/share/siril/venv/bin/activate

# 仮想環境内にpip のベースを生成する
python -m ensurepip --upgrade

# pip 自身を最新版にアップデートする
python -m pip install --upgrade pip

### pip 確認
pip3 --version</code></pre>



<div class="wp-block-cocoon-blocks-info-box block-box primary-box">
<p class="wp-block-paragraph">WARNING: Running pip as the &#8216;root&#8217; user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the &#8211;root-user-action option if you know what you are doing and want to suppress this warning.<br>警告：「root」ユーザーとして pip を実行すると、権限設定が破損したり、システムのパッケージマネージャーとの競合が発生したりし、システムが使用不能になる可能性があります。代わりに仮想環境を使用することをお勧めします：https://pip.pypa.io/warnings/venv。操作内容を十分に理解しており、この警告を抑制したい場合は、&#8211;root-user-action オプションを使用してください。</p>
</div>



<h2 class="wp-block-heading">GPUアーキテクチャをサポートする、PyTorch、CUDA（CUDA 12.x）の組み合わせにする</h2>



<div class="wp-block-cocoon-blocks-icon-box common-icon-box block-box information-box">
<p class="wp-block-paragraph">th.install_torch を用いたPyTorchとcudaインストール方法を試した経過を掲載しますが、<br>途中で止めました。<br>こちらでは、Siril仮想環境下で、pipを用いてPyTorchをインストールしました。<br></p>
</div>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Sirilのスクリプトエディタにソースコードをコピーして、[run]<br><a rel="noopener" target="_blank" href="https://www.facebook.com/groups/841870683930320/posts/1375756583875058/">https://www.facebook.com/groups/841870683930320/posts/1375756583875058/</a></p>
</blockquote>



<p class="wp-block-paragraph">Sirilの画面上部にある Scripts をクリック、スクリプトエディタを表示します。<br>次のコードをコピーしました。<br>2026年7月現在、このスクリプトは試していません。</p>



<pre class="wp-block-code"><code>import sirilpy as s
th = s.TorchHelper()
th.install_torch(cuda_version='cu128', force_reinstall=True)
th.test_torch()</code></pre>



<pre class="wp-block-code"><code># エラーコード cu130
Traceback (most recent call last):
16:50:11:   File "/tmp/siril-script-S7EUS3.py", line 3, in &lt;module&gt;
16:50:11:     th.install_torch(cuda_version='cu130', force_reinstall=True)
16:50:11: TypeError: TorchHelper.install_torch() got an unexpected keyword argument 'force_reinstall'
16:50:11: Python process (PID: 53902) exited with status 1
16:50:11: Python communication worker finished...</code></pre>



<h3 class="wp-block-heading">force_reinstall 引数が削除、cuda versionを指定</h3>



<p class="wp-block-paragraph">Sirilのアップデート（バージョン1.4.2以降〜1.5）に伴い、<code>sirilpy</code> 内の <code>TorchHelper.install_torch()</code> から <code>force_reinstall</code><strong> </strong>が削除</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Facebookで見つけたんですが、残念ながらもう使えなくなってしまいました。<br><a rel="noopener" target="_blank" href="https://discuss.pixls.us/t/syqon-starless-and-pytorch-install-failure/56239">https://discuss.pixls.us/t/syqon-starless-and-pytorch-install-failure/56239</a><br><a rel="noopener" target="_blank" href="https://www.facebook.com/groups/841870683930320/posts/1398410764942973/">https://www.facebook.com/groups/841870683930320/posts/1398410764942973/</a><br><br><a rel="noopener" target="_blank" href="https://blog.qualiteg.com/pytorch_and_supported_gpu_version/">https://blog.qualiteg.com/pytorch_and_supported_gpu_version/</a><br><a rel="noopener" target="_blank" href="https://discuss.pixls.us/t/syqon-starless-and-pytorch-install-failure/56239">https://discuss.pixls.us/t/syqon-starless-and-pytorch-install-failure/56239</a></p>
</blockquote>



<p class="wp-block-paragraph">以下をSirilのPython script editor にペースト、-&gt; run</p>



<pre class="wp-block-code"><code>import sirilpy as s
th = s.TorchHelper()
th.install_torch(cuda_version='cu128')
th.test_torch()</code></pre>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"># cu126 の場合<br>cuda_version=&#8217;cu126&#8242;<br><a rel="noopener" target="_blank" href="https://discuss.pytorch.org/t/when-i-install-torch-2-6-0-with-whl-cu126-none-of-cuda-dependencies-get-installed-i-have-cu126-in-the-environment-already-is-this-expected/218014">https://discuss.pytorch.org/t/when-i-install-torch-2-6-0-with-whl-cu126-none-of-cuda-dependencies-get-installed-i-have-cu126-in-the-environment-already-is-this-expected/218014</a><br><br><a rel="noopener" target="_blank" href="https://techjacksolutions.com/ai-tools/pytorch/how-to-install-pytorch/">https://techjacksolutions.com/ai-tools/pytorch/how-to-install-pytorch/</a><br></p>
</blockquote>



<pre class="wp-block-code"><code># インストール　ログ
16:59:15: &#91;notice] A new release of pip is available: 25.0.1 -&gt; 26.2
16:59:15: &#91;notice] To update, run: pip install --upgrade pip
16:59:15: PyTorch installation completed successfully
16:59:15: Torch is already installed
16:59:15: === PyTorch GPU Test ===
16:59:18: OK: PyTorch 2.13.0+cu130 imported successfully!
16:59:18: === Device Information ===
16:59:18: PyTorch version: 2.13.0+cu130
16:59:18: CUDA available: True
16:59:18: CUDA version: 13.0
16:59:18: GPU count: 1
16:59:18:   GPU 0: NVIDIA GeForce RTX 5060 Laptop GPU
16:59:18: Creating model and test data...
16:59:18: Model parameters: 459,904
16:59:18: Input shape: torch.Size(&#91;64, 256])
16:59:18: Testing CPU execution (for accuracy reference)...
16:59:18: Using CUDA (NVidia / AMD)
16:59:18: Testing GPU execution...
16:59:19: OK: GPU execution successful!
16:59:19: OK: CPU and GPU outputs match within tolerance!
16:59:19: ==================================================
16:59:19: === Tensor Operations Test ===
16:59:19: OK: PyTorch 2.13.0+cu130 imported successfully!
16:59:19: Creating 2048x2048 tensors...
16:59:19: OK: Results match within tolerance!
16:59:19: CPU time: 0.0343s
16:59:19: GPU time: 0.0020s
16:59:19: Speedup: 17.51x
16:59:19: ==================================================
16:59:20: Python communication worker finished...</code></pre>



<h3 class="wp-block-heading">コマンドラインからPyTorchをインストール</h3>



<pre class="wp-block-code"><code># 参考
# 1. 既存の torch パッケージを完全にアンインストール
# pip3 uninstall torch torchvision torchaudio -y

# 2. CUDA 12.8 専用インデックスを指定してクリーンインストール
# pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128</code></pre>



<pre class="wp-block-code"><code>python3.12 -m venv ~/siril_cosmic_env
source ~/siril_cosmic_env/bin/activate
pip install --upgrade pip
pip install torch torchvision torchaudio --index-url https://pytorch.org</code></pre>



<p class="wp-block-paragraph">Pytorch バージョン確認</p>



<pre class="wp-block-code"><code>### Siril 1.5 仮想環境で行う
python3.12 -c "import torch; print(torch.__version__)"

2.11.0+cu128</code></pre>



<h3 class="wp-block-heading">onnxruntime-gpu,  NVIDIA CUDA</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">onnxruntime-gpu,  NVIDIA CUDA<br><a rel="noopener" target="_blank" href="https://onnxruntime.ai/docs/install/#install-onnx-runtime-gpu-cuda-or-tensorrt">https://onnxruntime.ai/docs/install/#install-onnx-runtime-gpu-cuda-or-tensorrt</a></p>
</blockquote>



<p class="wp-block-paragraph">デフォルトのインストールは、pip install onnxruntime-gpu</p>



<pre class="wp-block-code"><code># CUDA 12.x
# The default CUDA version for onnxruntime-gpu in pypi is 12.x since 1.19.0.
# pip install onnxruntime-gpu
</code></pre>



<h4 class="wp-block-heading">Siril仮想環境へ、onnxruntime-gpuパッケージをインストール</h4>



<pre class="wp-block-code"><code># Siril 仮想環境で行う
source /home/$USER/.local/share/siril/venv/bin/activate

pip3 uninstall -y onnxruntime onnxruntime-gpu
pip3 install onnxruntime-gpu --upgrade

# onnxruntime-gpu==1.26.0 を指定
python3.12 -m pip install onnxruntime-gpu==1.26.0
Successfully installed flatbuffers-25.12.19 onnxruntime-gpu-1.26.0 packaging-26.3 protobuf-7.35.1</code></pre>



<pre class="wp-block-code"><code># 動作テスト
python3.12 -c "import onnxruntime as ort; print(ort.get_available_providers())"</code></pre>



<pre class="wp-block-code"><code>#インストールログ
Collecting onnxruntime-gpu
  Downloading onnxruntime_gpu-1.28.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (5.8 kB)
Collecting flatbuffers (from onnxruntime-gpu)
  Downloading flatbuffers-25.12.19-py2.py3-none-any.whl.metadata (1.0 kB)
Requirement already satisfied: numpy&gt;=1.21.6 in ./lib/python3.12/site-packages (from onnxruntime-gpu) (2.5.1)
Requirement already satisfied: packaging in ./lib/python3.12/site-packages (from onnxruntime-gpu) (26.2)
Requirement already satisfied: protobuf&gt;=4.25.8 in ./lib/python3.12/site-packages (from onnxruntime-gpu) (7.35.1)
Downloading onnxruntime_gpu-1.28.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (249.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 249.8/249.8 MB 8.1 MB/s eta 0:00:00
Downloading flatbuffers-25.12.19-py2.py3-none-any.whl (26 kB)
Installing collected packages: flatbuffers, onnxruntime-gpu
Successfully installed flatbuffers-25.12.19 onnxruntime-gpu-1.28.0

&#91;notice] A new release of pip is available: 25.0.1 -&gt; 26.2
&#91;notice] To update, run: pip install --upgrade pip</code></pre>



<h4 class="wp-block-heading">Siril仮想環境へ CUDA パスを固定する</h4>



<p class="wp-block-paragraph">/home/$USER/.local/share/siril/venv/bin/activate<br>ここに、CUDA パスと環境変数を追記</p>



<pre class="wp-block-code"><code>echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/lib/nvidia-580:${LD_LIBRARY_PATH}' &gt;&gt; /home/$USER/.local/share/siril/venv/bin/activate
echo 'export CUDA_MODULE_LOADING=LAZY' &gt;&gt; /home/$USER/.local/share/siril/venv/bin/activate</code></pre>



<p class="wp-block-paragraph">アクティブ中ならば、アクティブを解除してから、再度アクティブし、Sirilを起動させCosmic Clarityを動かしてみる。</p>



<pre class="wp-block-code"><code>deactivate
cd /home/$USER/.local/share/siril/venv
source ./bin/activate
siril</code></pre>



<h2 class="wp-block-heading">PyTorch と Siril</h2>



<div class="wp-block-cocoon-blocks-icon-box common-icon-box block-box information-box">
<p class="wp-block-paragraph"><br>こちらの環境では、torch-2.11.0+cu128　をインストールしています。<br>ログでは、torch-2.13.0+cu130をインストールを表示しています。</p>
</div>



<p class="wp-block-paragraph">Siril Pythonスクリプトにある、&#8221;GPU Firmware Manager&#8221;を使って、cuda 13対応をインストール</p>



<pre class="wp-block-code"><code>Successfully installed cuda-bindings-13.0.3 cuda-toolkit-13.0.3.0 nvidia-cublas-13.1.1.3 nvidia-cuda-cupti-13.0.85 nvidia-cuda-nvrtc-13.0.88 nvidia-cuda-runtime-13.0.96 nvidia-cudnn-cu13-9.20.0.48 nvidia-cufft-12.0.0.61 nvidia-cufile-1.15.1.6 nvidia-curand-10.4.0.35 nvidia-cusolver-12.0.4.66 nvidia-cusparse-12.6.3.3 nvidia-cusparselt-cu13-0.8.1 nvidia-nccl-cu13-2.29.7 nvidia-nvjitlink-13.2.78 nvidia-nvshmem-cu13-3.4.5 nvidia-nvtx-13.0.85 torch-2.13.0+cu130 torchvision-0.28.0+cu130 triton-3.7.1

PyTorch installation completed successfully
✓ Successfully installed torch+cu130 (CUDA 13.0 - GTX 16xx-RTX 50xx)
Running post-installation tests...

============================================================
Running PyTorch tests...
Torch is already installed
=== PyTorch GPU Test ===
OK: PyTorch 2.13.0+cu130 imported successfully!
=== Device Information ===
PyTorch version: 2.13.0+cu130
CUDA available: True
CUDA version: 13.0
GPU count: 1
  GPU 0: NVIDIA GeForce RTX 5060 Laptop GPU
Creating model and test data...
Model parameters: 459,904
Input shape: torch.Size(&#91;64, 256])
Testing CPU execution (for accuracy reference)...
Using CUDA (NVidia / AMD)
Testing GPU execution...
OK: GPU execution successful!
OK: CPU and GPU outputs match within tolerance!
==================================================
=== Tensor Operations Test ===
OK: PyTorch 2.13.0+cu130 imported successfully!
Creating 2048x2048 tensors...
OK: Results match within tolerance!
CPU time: 0.0343s
GPU time: 0.0020s
Speedup: 16.82x
==================================================
✓ All PyTorch tests passed!</code></pre>



<pre class="wp-block-code"><code># 画面表示のバックエンドとして従来のX11（XCB）を使用するよう強制する環境変数
QT_QPA_PLATFORM=xcb siril

# Wayland環境でSirilを実行する際、Qtプラグインのエラーを防ぐためには、QT_QPA_PLATFORM 環境変数を使用
QT_QPA_PLATFORM=wayland siril</code></pre>



<h2 class="wp-block-heading">Siril をソースからビルド / Ubuntu</h2>



<pre class="wp-block-code"><code># Siril インストール後に、Siril仮想環境を確認
less /home/${USER}/.local/share/siril/venv/pyvenv.cfg

home = /usr/local/bin
include-system-site-packages = false
version = 3.12.13
executable = /usr/local/bin/python3.12
command = /usr/local/bin/python3.12 -m venv /home/minmin/.local/share/siril/venv
#↑ビルドしたPythonを用いていることを確認します

### 3.14.6の場合
### home = /usr/local/bin
### include-system-site-packages = false
### version = 3.14.6
### executable = /usr/local/bin/python3.14
### command = /usr/local/bin/python3 -m venv /home/minmin/.local/share/siril/venv</code></pre>



<h3 class="wp-block-heading">Ubuntu 26.04 で、Sirilビルドに必要なパッケージをインストール</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Siril 1.5 ビルド案内<br><a rel="noopener" target="_blank" href="https://gitlab.com/free-astro/siril">https://gitlab.com/free-astro/siril</a></p>
</blockquote>


<a target="_self" href="https://globe3.ddns.net/wp/try-siril-development-edition-1-4-0/" title="Siril 開発版を試してみよう" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="160" height="90" src="https://globe3.ddns.net/wp/wp-content/uploads/2025/04/Siril-1.4.0-beta1-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2025/04/Siril-1.4.0-beta1-160x90.jpg 160w, https://globe3.ddns.net/wp/wp-content/uploads/2025/04/Siril-1.4.0-beta1-300x169.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2025/04/Siril-1.4.0-beta1-120x68.jpg 120w, https://globe3.ddns.net/wp/wp-content/uploads/2025/04/Siril-1.4.0-beta1-320x180.jpg 320w, https://globe3.ddns.net/wp/wp-content/uploads/2025/04/Siril-1.4.0-beta1.jpg 702w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">Siril 開発版を試してみよう</div><div class="blogcard-snippet internal-blogcard-snippet">Siril開発版が使えます。SPCC、GHS、モザイクに有用なプレートソルビングの歪み補正が使えます。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://globe3.ddns.net/wp" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">globe3.ddns.net</div></div><div class="blogcard-date internal-blogcard-date"><div class="blogcard-post-date internal-blogcard-post-date">2025.04.18</div></div></div></div></a>


<pre class="wp-block-code"><code># 2026年7月　追加
sudo apt install libgtk-4-dev libgtksourceview-5-dev

### sudo apt install wcslib-tools libgtk-4-dev libgtksourceview-5-dev kmplot \
  libsqlite3-dev</code></pre>



<h4 class="wp-block-heading">OpenCV5</h4>



<h3 class="wp-block-heading">meson ビルドオプション</h3>



<pre class="wp-block-code"><code>meson setup --prefix /usr/local --buildtype release _build
ninja -C _build
ninja -C _build install</code></pre>



<pre class="wp-block-code"><code>meson setup _build --buildtype release -Dgtk=true
cd _build
ninja
ninja install</code></pre>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box">
<p class="wp-block-paragraph"><strong><code>-prefix /usr/local</code></strong>: <code>meson install</code> を実行した際、ビルドされたファイルが格納されるディレクトリ</p>



<p class="wp-block-paragraph"><strong><code>--buildtype release</code></strong>: デバッグシンボルを削除し、コンパイラの最適化（最適化レベル <code>-O3</code> など）を有効にしてビルド</p>



<p class="wp-block-paragraph"><strong><code>_build</code></strong>: 設定ファイルや中間ファイルを出力するディレクトリ</p>
</div>



<pre class="wp-block-code"><code>meson setup --buildtype=release builddir -Dcpp_args="-march=native" -Dc_args="-march=native"</code></pre>



<p class="wp-block-paragraph">ん〜、有効にならない？</p>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box">
<p class="wp-block-paragraph"><code><strong>-march=native</strong></code>: コンパイルを実行しているマシンに搭載されているCPUが持つ全機能を有効にします</p>



<p class="wp-block-paragraph"><code><strong>-mtune=native</strong></code>: コードの命令スケジュールを特定のCPU向けに最適化します（生成されたバイナリは他の機種でも動作します）。</p>



<p class="wp-block-paragraph"><code><strong>-O3</strong></code>: コンパイラが可能な限りの高度な最適化を行います（<code>-O2</code> がデフォルトですが、速度を追求する場合に使用します）</p>
</div>



<pre class="wp-block-code"><code>meson setup --prefix /usr/local --buildtype release _build -Dcpp_args="-march=native" -Dc_args="-march=native"</code></pre>



<pre class="wp-block-code"><code>meson setup --prefix /usr/local --buildtype release _build -Dcpp_args="-march=native" -Dfortran_args="-march=native"</code></pre>



<pre class="wp-block-code"><code>meson setup --prefix /usr/local --buildtype release _build -Dcpp_args="-march=native -O3" -Dfortran_args="-march=native -O3"</code></pre>



<p class="wp-block-paragraph">ん〜、有効にならない？</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Meson <br><a rel="noopener" target="_blank" href="https://mesonbuild.com/Commands.html#configure">https://mesonbuild.com/Commands.html#configure</a></p>
</blockquote>



<h2 class="wp-block-heading">Siril Qtでの不具合</h2>



<p class="wp-block-paragraph">Sirilに関しては致命的なエラーではないようです。X11を使用する場合には、XWaylandを用いるようです。</p>



<p class="wp-block-paragraph">Ubuntu 26.04で採用のGNOME 48は、Wayland上での動作を前提に最適化されている。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Qt 5 で Wayland のサポートを有効化するには、qt5-wayland パッケージをインストールしてください。これで、Qt 5 アプリケーションは Wayland セッション上では Wayland で動作するようになります。</p>



<p class="wp-block-paragraph">必須ではないはずですが、明示的に Wayland プラグインを使って Qt 5 アプリケーションを動作させるには、[7] にあるように、-platform wayland を使用するか、環境変数 QT_QPA_PLATFORM=wayland をセットして下さい。</p>



<p class="wp-block-paragraph">一方、Wayland セッション上で X11 を使用させるには、<br>QT_QPA_PLATFORM=xcb と設定してください。<br>これは、システムの Qt の実装を使用しない一部のプロプライエタリアプリケーションで必要になる場合があります。また、QT_QPA_PLATFORM=&#8221;wayland;xcb&#8221; を使用すると、Qt が Wayland を利用できない場合に、代わりに xcb (X11)プラグインを使用させることができます。<br><br><a rel="noopener" target="_blank" href="https://wiki.archlinux.jp/index.php/Wayland">https://wiki.archlinux.jp/index.php/Wayland</a></p>
</blockquote>



<h2 class="wp-block-heading">Seti Astro Cosmic Clarity linux</h2>



<p class="wp-block-paragraph">SetiAstroCosmicClarity”, “SetiAstroCosmicClarity_denoise” をデコンパイルする方法をこちらに記載しています。</p>



<p class="wp-block-paragraph">SetiAstroCosmicClarity”, “SetiAstroCosmicClarity_denoise” それぞれをpyinstxtractor.py を使って展開し動作確認、後に、ラッパーを作成し、Siril 1.5から動かします。</p>



<div class="wp-block-cocoon-blocks-icon-box common-icon-box block-box information-box">
<p class="wp-block-paragraph">こちらでは公開されている、pythonコードをラッパーから利用しています。</p>


<a target="_self" href="https://globe3.ddns.net/wp/cudatoolkit-12-8-2runfile-ubuntu-2604-nvidiadriver580-python3-12-13-graxpert-3-1-cosmicclaritysuite-siril-15/#toc20" title="CUDA Toolkit 12.8.2 (April 2026)runfile +  Ubuntu 26.04 + nvidia-driver 580 + python version 3.12.13  + PyTorch + GraXpert + Cosmic Clarity Suite + Siril 1.5" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img loading="lazy" decoding="async" width="320" height="180" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/08/Ryzen7_350-320x180.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/08/Ryzen7_350-320x180.jpg 320w, https://globe3.ddns.net/wp/wp-content/uploads/2026/08/Ryzen7_350-240x135.jpg 240w, https://globe3.ddns.net/wp/wp-content/uploads/2026/08/Ryzen7_350-640x360.jpg 640w" sizes="(max-width: 320px) 100vw, 320px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">CUDA Toolkit 12.8.2 (April 2026)runfile +  Ubuntu 26.04 + nvidia-driver 580 + python version 3.12.13  + PyTorch + GraXpert + Cosmic Clarity Suite + Siril 1.5</div><div class="blogcard-snippet internal-blogcard-snippet">CUDA Toolkit 12.8.2を用いて、Ubuntu + CUDA環境を作ります。</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://globe3.ddns.net/wp" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">globe3.ddns.net</div></div><div class="blogcard-date internal-blogcard-date"><div class="blogcard-post-date internal-blogcard-post-date">2026.08.05</div></div></div></div></a></div>



<h3 class="wp-block-heading">pyinstxtractor.py を使って、SetiAstroCosmicClarity を展開</h3>



<pre class="wp-block-code"><code># Siril 1.5 仮想環境で行う
pwd /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild
python3.12 pyinstxtractor.py ./SetiAstroCosmicClarity

&#91;+] Processing ./SetiAstroCosmicClarity
&#91;+] Pyinstaller version: 2.1+
&#91;+] Python version: 3.12
&#91;+] Length of package: 57264312 bytes
&#91;+] Found 17 files in CArchive
&#91;+] Beginning extraction...please standby
&#91;+] Possible entry point: pyiboot01_bootstrap.pyc
&#91;+] Possible entry point: pyi_rth_inspect.pyc
&#91;+] Possible entry point: pyi_rth_pkgutil.pyc
&#91;+] Possible entry point: pyi_rth_multiprocessing.pyc
&#91;+] Possible entry point: pyi_rth_pkgres.pyc
&#91;+] Possible entry point: pyi_rth_setuptools.pyc
&#91;+] Possible entry point: pyi_rth_mplconfig.pyc
&#91;+] Possible entry point: pyi_rth_cryptography_openssl.pyc
&#91;+] Possible entry point: pyi_rth_pyqt6.pyc
&#91;+] Possible entry point: pyi_rth__tkinter.pyc
&#91;+] Possible entry point: setiastrocosmicclaritylinux.pyc
&#91;+] Found 7078 files in PYZ archive
&#91;+] Successfully extracted pyinstaller archive: ./SetiAstroCosmicClarity

You can now use a python decompiler on the pyc files within the extracted directory</code></pre>



<p class="wp-block-paragraph">SetiAstroCosmicClarity_extracted ディレクトリにある、<br>setiastrocosmicclaritylinux.pyc を<br>CosmicClaritySuite_Linux_AlternateBuild ディレクトリに配置</p>



<pre class="wp-block-code"><code># 動作確認
python3.12 ./setiastrocosmicclaritylinux.pyc

Using device: cuda (CUDA)
Identified 32bit floating point FITS iamge.
Sharpening Image: result_drizzle_19620s.fit
Total Chunks: 225
Stellar Sharpening:
Progress: 100.00% (225/225 chunks processed)
Stellar sharpening complete. Shape: (2877, 2877)
Saved 32-bit float sharpened image to: /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild/./output/result_drizzle_19620s_sharpened.fit</code></pre>



<h4 class="wp-block-heading">Cosmic Clarity Sharpening ラッパーを作成</h4>



<pre class="wp-block-code"><code>### ラッパーファイルを作成 run_Sharpen.sh
cd /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild/</code></pre>



<p class="wp-block-paragraph">以下が、run_Sharpen.sh</p>



<pre class="wp-block-code"><code>#!/bin/bash
source "$HOME/.local/share/siril/venv/bin/activate"
cd /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild/
python3.12 ./setiastrocosmicclaritylinux.pyc "$@"

# 実行権
chmod +x ./run_Sharpen.sh</code></pre>



<p class="wp-block-paragraph">シェルスクリプトにおける “$@” は、<br>スクリプトに渡されたすべての引数を、元の区切り（スペースなど）を完全に保ったまま展開する特殊な変数</p>



<h4 class="wp-block-heading">Cosmic Clarity Sharpening を設定</h4>



<p class="wp-block-paragraph">Cosmic Clarity Sharpening Settings<br>Cosmic Clarity Executable:  run_Sharpen.sh (上記ラッパー)を指定する。</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading">RTX 5060 動作確認</h4>



<pre class="wp-block-code"><code>source /home/$USER/.local/share/siril/venv/bin/activate
pip list |grep torch
torch                    2.11.0+cu128
torchaudio               2.11.0+cu128
torchvision              0.26.0+cu128

pip list |grep torch-cuda80
pip list |grep torch-model-archiver
pip list |grep torchrec-cpu</code></pre>



<pre class="wp-block-code"><code># 動作確認
python3.12 -c "import torch; print(torch.__version__, torch.cuda.is_available(), torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'None')"
2.11.0+cu128 True NVIDIA GeForce RTX 5060 Laptop GPU</code></pre>



<pre class="wp-block-code"><code># 動作確認
python3.12 -c "import torch; print('Version:', torch.__version__); print('CUDA:', torch.cuda.is_available()); print('Device Name:', torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'None')"
Version: 2.11.0+cu128
CUDA: True
Device Name: NVIDIA GeForce RTX 5060 Laptop GPU</code></pre>



<h3 class="wp-block-heading">Cosmic Clarity denoise を展開</h3>



<p class="wp-block-paragraph">python3.12 pyinstxtractor.py /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild/SetiAstroCosmicClarity_denoise</p>



<pre class="wp-block-code"><code># Siril 1.5 仮想環境で行う
pwd /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild
python3.12 pyinstxtractor.py ./SetiAstroCosmicClarity_denoise</code></pre>



<pre class="wp-block-code"><code># 動作確認
python3.12 ./setiastrocosmicclaritylinux.pyc
</code></pre>



<h4 class="wp-block-heading">Cosmic Clarity denoise ラッパーを作成</h4>



<pre class="wp-block-code"><code>### ラッパーファイルを作成 run_Denoise.sh
cd /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild/</code></pre>



<p class="wp-block-paragraph">以下が、run_Denoise.sh</p>



<pre class="wp-block-code"><code>#!/bin/bash

### RTX 5060（12.0）
### export TORCH_CUDA_ARCH_LIST="9.0"
### export TORCH_CUDA_ARCH_LIST="12.0"

source "$HOME/.local/share/siril/venv/bin/activate"
cd /usr/local/share/CosmicClaritySuite_Linux_AlternateBuild/
python3.12 ./SetiAstroCosmicClarity_denoise.pyc "$@"</code></pre>



<h4 class="wp-block-heading">Cosmic Clarity Denoise を設定</h4>



<p class="wp-block-paragraph">Cosmic Clarity Executable<br>run_Sharpen.sh (上記ラッパー)を指定する。</p>



<h2 class="wp-block-heading">StarNet2 2.5.3</h2>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><a rel="noopener" target="_blank" href="https://www.williamliphotos.com/pages/cuda-starnet">https://www.williamliphotos.com/pages/cuda-starnet</a><br><br><a rel="noopener" target="_blank" href="https://blog.0xbadc0de.be/archives/464">https://blog.0xbadc0de.be/archives/464</a></p>
</blockquote>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading">SyQon</h2>



<p class="wp-block-paragraph">syqon.it → syqon.eu<br>スクリプトを書き換えても動きません。モジュールを別途配置して動かしています。</p>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box">
<p class="wp-block-paragraph">Revert to a Previous Script VersionIf you are downloading scripts natively through Siril&#8217;s interface, the automated script updates might be linking to the down server.Go to the Get Scripts drop-down menu in Siril.Right-click on the problematic script (e.g., Starless or Prism Mini).Select Go back 1 version.Save the rolled-back version into your designated local scripts folder and try running it again.</p>
</div>



<h2 class="wp-block-heading">Windows11</h2>



<p class="wp-block-paragraph">ウェッブを辿っていくと、それぞれの特徴がまとめられていて、理解の手助けになります。有難うございます。</p>



<p class="wp-block-paragraph">CUDAツールキット、NVIDIA CUDA Toolkit、cuDNN</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">こちらを参考にしました。有難うございます。<br><a rel="noopener" target="_blank" href="https://docs.ailia.ai/setup/cuda/">https://docs.ailia.ai/setup/cuda/</a></p>
</blockquote>



<div class="wp-block-cocoon-blocks-info-box block-box primary-box">
<p class="wp-block-paragraph">以下の設定は、Windows11, Siril 1.5 環境で確認しています：</p>



<p class="wp-block-paragraph">・オペレーティングシステム : Windows 11<br>・GPU およびドライバー : NVIDIA GeForce RTX 5060、NVIDIA ドライバー 610.88 | WHQL<br>　nvidia-smi によって報告された CUDA 機能レベル : 13.3<br>・CUDA Toolkit : CUDA Toolkit 12.8.2 (April 2026). nvcc &#8211;version の出力は CUDA XX.x / VXX.x.x <br>・cuDNN : CUDA 12.8 対応の cuDNN 9.24.0<br>・ONNX Runtime GPU : Windows x64 対応の ONNX Runtime GPU 1.26.0</p>
</div>



<h3 class="wp-block-heading">サインインを回避</h3>



<p class="wp-block-paragraph">サインインの画⾯が表⽰されたら、Shift + F10 を同時に押します。</p>



<pre class="wp-block-code"><code>コマンドプロンプトに、
start ms-cxh:localonly</code></pre>



<h3 class="wp-block-heading">Windows11 「落ち穂ひろい」、Windows 開発者モード</h3>



<h4 class="wp-block-heading">Line</h4>



<p class="wp-block-paragraph">C:\Users\USERNAME\AppData\Local\LINE<br>ディレクトリを丸ごとコピー、Lineを再インストール。トーク履歴が反映される。<br></p>



<h4 class="wp-block-heading">Caps と Ctrl 入れ替え</h4>



<p class="wp-block-paragraph">Ctrl2Cap v3.0を使ってみます。<br>このツールは両キーを入れ替えるのではなく、CapsLockキーをCtrlに変更するツールらしく、CapsLockは存在しなくなるようです。ん、その様です。</p>



<p class="wp-block-paragraph">コマンドプロンプトを管理者として実行し、Ctrl2Cap ファイルを展開したディレクトリからコマンド ctrl2cap /install を実行してインストールします。 アンインストールは、ctrl2cap /uninstall</p>



<h4 class="wp-block-heading">Windows 開発者モード</h4>



<p class="wp-block-paragraph">Siril は天体画像の前処理で、シンボリックリンクを多く使います。<br>管理者権限なしで、シンボリックリンクを扱えるように、「開発者モード」を有効にすると良いらしいです。</p>



<p class="wp-block-paragraph">開発者向けの設定、開発者モードを有効にする<br><a rel="noopener" target="_blank" href="https://learn.microsoft.com/ja-jp/windows/advanced-settings/developer-mode">https://learn.microsoft.com/ja-jp/windows/advanced-settings/developer-mode</a></p>



<h3 class="wp-block-heading">Python 3 バージョン</h3>



<p class="wp-block-paragraph">Pythonバージョンはこちらを参照します。<br><a rel="noopener" target="_blank" href="https://devguide.python.org/versions/#versions">https://devguide.python.org/versions/#versions</a></p>



<p class="wp-block-paragraph">インストール画面の最初にある &#8220;Add python.exe to PATH&#8221;（環境変数への追加）に必ずチェック</p>



<p class="wp-block-paragraph">Python 3.12.10, Release date: April 8, 2025<br><a rel="noopener" target="_blank" href="https://www.python.org/downloads/release/python-31210/">https://www.python.org/downloads/release/python-31210/</a></p>



<p class="wp-block-paragraph">Windows installer (64-bit)を展開、インストール<br>(Python 3.12.14 exeはあるかな？)</p>



<h3 class="wp-block-heading">NVIDIA ドライバのインストール</h3>



<h4 class="wp-block-heading">Windows11 NVIDIA グラフィックスボードを確認</h4>



<p class="wp-block-paragraph">Windows 11の検索に、&#8221;dxdiag&#8221; を入力<br>DirectX 診断ツールが起動し、「システム」「ディスプレイ」等が表示されます。</p>



<p class="wp-block-paragraph">もしくは、Power Shell</p>



<pre class="wp-block-code"><code>nvidia-smi
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 616.56                 KMD Version: 616.56        CUDA UMD Version: 13.4   | 
+---------------------------------+------------------------+----------------------------+</code></pre>



<h4 class="wp-block-heading">NVIDIA Studio ドライバー？ GeForce Game Ready ドライバー？</h4>



<p class="wp-block-paragraph">NVIDIA Studio　2026年8月現在</p>



<p class="wp-block-paragraph">Driver Version: 616.56 | WHQL, Release Date: Wed Aug 26, 2026<br>OS: Windows 10 64-bit,　Windows 11<br>言語: Japanese　ファイル サイズ: 984.32 MB</p>



<h4 class="wp-block-heading">Siril Pytonスクリプトが GPUを使えるように、Nvidia を設定</h4>



<p class="wp-block-paragraph">CPU内蔵グラフィックスが画面表示を行い、NVIDIA GeForceは計算ユニットとして使います。</p>



<p class="wp-block-paragraph">BIOSでは 「MSHybrid」 または 「Optimus」（モデルによっては 「IGPU」 や 「Hybrid」）を指定<br>　画面表示はCPU内蔵グラフィックスが行う。<br>NVIDIAコントロールパネルを開く<br>　NVIDIAコントロールパネル：左メニューの 「3D設定の管理」 をクリック<br>　NVIDIA App：NVIDIA Appの「グラフィックス」→「プログラム設定」<br>　画面中央の 「グローバル設定」 タブが開いていることを確認<br>　項目一覧から 「OpenGL レンダリング GPU」 をクリック<br>　設定値を「自動選択」から GeForce RTX 5060 に変更<br>3D設定の管理の一覧から 「CUDA &#8211; GPU」をクリック<br>設定値が 「すべて」 になっていることを確認</p>



<p class="wp-block-paragraph">Windows 11 の「グラフィック設定」を行う。Windows 11では、システムのグラフィック設定で「高パフォーマンス」に指定されたアプリが優先してNVIDIA GPUに割り当てられます。<br>　スタートメニューから 「設定」（歯車マーク）を開く。<br>　「システム」 ＞ 「ディスプレイ」 ＞ 画面下部にある 「グラフィック」 をクリックする。<br>　アプリへ[Siril]を追加する。<br>　追加した[Siril]をクリックし、「オプション」 を開く。<br>　GPUのユーザー設定に、&#8221;高パフォーマンス（GPU: NVIDIA GeForce &#8230;)&#8221;を指定する。</p>



<p class="wp-block-paragraph">電源管理モード<br> 「標準」から 「パフォーマンス最大化を優先」 に変更<br>　最後に、画面右下の 「適用」 ボタンを必ずクリックして設定を保存</p>



<p class="wp-block-paragraph">ディスクトップの場合は、オンボードのHDMI出力に、ディスプレイケーブルを挿す。</p>



<pre class="wp-block-code"><code>ドライバファイルの保存先
C:\Windows\Temp\b8fa40a0-5b98-476e-ade9-3bd454ada083</code></pre>



<h3 class="wp-block-heading">NVIDIA CUDA Toolkit</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">CUDA、Microsoft Windows向けインストールガイド<br><a rel="noopener" target="_blank" href="https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html">https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html</a></p>
</blockquote>



<p class="wp-block-paragraph">CUDA Toolkit 12.8 をインストールします。</p>



<p class="wp-block-paragraph">CUDA 13系は、ライブラリが対応していないかもしれないので、安定動作をめざすならば、使用しません。</p>



<p class="wp-block-paragraph">また、Starnet2の案内に、<br>『現在の ONNX Runtime 1.26.0 の GPU パスでは、CUDA 12.x を使用してください。現在の CUDA-12 ONNX Runtime GPU DLL では、CUDA 13.x ランタイム DLL を使用しないでください』、とあります。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Windows GPU acceleration setup instructions<br><a rel="noopener" target="_blank" href="https://starnetastro.com/documentation/windows-cuda/">https://starnetastro.com/documentation/windows-cuda/</a></p>
</blockquote>



<div class="wp-block-cocoon-blocks-icon-box common-icon-box block-box information-box">
<p class="wp-block-paragraph">CUDA 12.xを使います。<br>GPUドライバーは、ここではインストールしません。<br>カスタムインストールを選び、ドライバーの印を外します。</p>
</div>



<p class="wp-block-paragraph">CUDA Toolkit 12.8 Update 2 Downloads<br><a rel="noopener" target="_blank" href="https://developer.nvidia.com/cuda-12-8-0-download-archive">https://developer.nvidia.com/cuda-12-8-0-download-archive</a></p>



<pre class="wp-block-code"><code>nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Fri_Feb_21_20:42:46_Pacific_Standard_Time_2025
Cuda compilation tools, release 12.8, V12.8.93
Build cuda_12.8.r12.8/compiler.35583870_0</code></pre>



<h4 class="wp-block-heading">Build Tools for Visual Studio 2026</h4>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">サポートされるプロジェクト: ASP.NET、Azure、C++ デスクトップ、ClickOnce、コンテナー、.NET Core、.NET Desktop、Node.js、Office と SharePoint、Python、TypeScript、単体テスト、UWP、WCF、Xamarin。 このツールを使用するには、プロジェクトのオープン ソースの依存関係をビルドしている場合を除き、有効な Visual Studio ライセンスが必要です。<br><a rel="noopener" target="_blank" href="https://visualstudio.microsoft.com/ja/downloads/">https://visualstudio.microsoft.com/ja/downloads/</a></p>
</blockquote>



<p class="wp-block-paragraph">Build Tools for Visual Studio 2026 をインストールします。<br>C/C++のコンパイラ機能のみを導入します。[C++によるデスクトップ開発]をチェックします。<br>18.9.2では、6.68GBらしいです。</p>



<p class="wp-block-paragraph">C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools<br>このディレクトリへインストールされます。</p>



<h3 class="wp-block-heading">NVIDIA cuDNN</h3>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box">
<p class="wp-block-paragraph">StarNet2をRTX5060で動かします。その為には、ONNX RuntimeのCUDA Execution Providerでは、現在のCUDA 12.x系に対応した cuDNN 9.x を使います。</p>
</div>



<p class="wp-block-paragraph">cuDNN Archive<br><a rel="noopener" target="_blank" href="https://developer.nvidia.com/cudnn-archive">https://developer.nvidia.com/cudnn-archive</a></p>



<p class="wp-block-paragraph">cuDNN 9.25.0 が2026年7月にリリースされました。が、cuDNN 9.24.0 をインストールします。<br>cuDNNアーカイブから、&#8221;cuDNN 9.24.0 (July 2026)&#8221; を導入します。</p>



<p class="wp-block-paragraph">Cosmic Clarityのスタンドアロン版やSirilのPython連携（SetiAstroSuiteなど）は、内部に必要なライブラリを内蔵（Frozen Executables）しているため、cuDNNをインストールする必要はないらしい。</p>



<p class="wp-block-paragraph">もしも、ソフト起動時に「cudnn64_8.dll または cudnn64_9.dll が見つかりません」といったエラーが出る場合は、NVIDIA cuDNNページから対応するv9.xのZipをダウンロードしインストールします。<br>（中身をCUDAのインストール先 [C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.x] の各フォルダに上書きコピーします。）</p>



<pre class="wp-block-code"><code>C:\Program Files\NVIDIA\CUDNN\v9.24</code></pre>



<pre class="wp-block-code"><code>C:\Program Files\NVIDIA\CUDNN\v9.24\bin\12.9\x64</code></pre>



<pre class="wp-block-code"><code>findstr "CUDNN_M CUDNN_P" "C:\Program Files\NVIDIA\CUDNN\v9.24\include\12.9\cudnn_version.h"</code></pre>



<div class="wp-block-cocoon-blocks-info-box block-box primary-box">
<p class="wp-block-paragraph">ここでは、CUDA Toolkit 12.8 Update 2を使うので、<br>cuDNN for CUDA cuda 12.9をカスタムインストールで選びます。</p>
</div>



<h4 class="wp-block-heading">cuDNN パスを通す</h4>



<p class="wp-block-paragraph">cuDNNライブラリ (<code>cudnn64_*.dll</code>) にパスを通します。</p>



<p class="wp-block-paragraph">「設定」→「システム」→ → 「関連リンク」 → 「システムの詳細設定」をクリックして「システムのプロパティ」を表示します。「環境変数」ボタンをクリックします。</p>



<p class="wp-block-paragraph">もしくは、<br>スタートボタンを右クリックし、「システム」→「バージョン情報」→「システムの詳細設定」→「環境変数」を選びます。</p>



<p class="wp-block-paragraph"><strong>システム環境変数</strong>の「Path」を選択し、「編集」をクリックします。「新規」をクリックして、cuDNN の <code>bin</code> フォルダのパスを追加します。</p>



<p class="wp-block-paragraph">CUDA Toolkit 12.8を導入しているので、以下のパスを通します。</p>



<pre class="wp-block-code"><code>C:\Program Files\NVIDIA\CUDNN\v9.24\bin\12.9\x64</code></pre>



<pre class="wp-block-code"><code># コマンドプロンプトで、確認します
where cudnn64_*.dll
C:\Program Files\NVIDIA\CUDNN\v9.24\bin\12.9\x64\cudnn64_9.dll</code></pre>



<h2 class="wp-block-heading">ソースから Siril をビルド / Windows 11</h2>



<p class="wp-block-paragraph"><a rel="noopener" target="_blank" href="https://siril.readthedocs.io/en/latest/installation/windows.html#building-on-windows-with-msys2">https://siril.readthedocs.io/en/latest/installation/windows.html#building-on-windows-with-msys2</a><br>こちらの案内に従い、MSYS2 64bit をインストールし、これを用いて、Siril 開発版を構築します。</p>



<p class="wp-block-paragraph">MSYS2<br>Software Distribution and Building Platform for Windows<br><a rel="noopener" target="_blank" href="https://www.msys2.org/">https://www.msys2.org/</a></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">MSYS2　各シェルの違い<br><a rel="noopener" target="_blank" href="https://qiita.com/koyukitukimino/items/df76f7fdb8512920d75b">https://qiita.com/koyukitukimino/items/df76f7fdb8512920d75b</a><br><br>MSYS2 MSYS : Unix向けソフトウェアのビルドに使用する なし<br>MSYS2 MINGW64 : 64Bit Windowsアプリケーションをgccでビルドするための環境 あり<br>MSYS2 UCRT64 : Universal C Runtime（UCRT）を使用して64Bit Windowsアプリケーションをgccでビルドするための環境 あり<br>MSYS2 CLANG64 : 64Bit WindowsアプリケーションをClangでビルドするための環境 あり<br>MSYS2 CLANGARM64 : ARM64(AArch64)アプリケーションをClangでビルドするための環境 ARM64版Windowsで動作</p>
</blockquote>



<p class="wp-block-paragraph">MSYS2 MinGW UCRT x64 : こちらを用いて、Siril を構築していきます。<br>Universal C Runtime（UCRT）を使用して64Bit Windowsアプリケーションをgccでビルドします。</p>



<p class="wp-block-paragraph">パッケージデータベースとコアシステムパッケージを入力して更新します。</p>



<pre class="wp-block-code"><code>pacman -Syu</code></pre>



<p class="wp-block-paragraph">依存関係をインストールする</p>



<pre class="wp-block-code"><code>curl -s -o siril-deps.sh https://gitlab.com/free-astro/siril/-/raw/master/build/windows/native-gitlab-ci/siril-deps.sh

bash siril-deps.sh</code></pre>



<p class="wp-block-paragraph">curl が動かない。。。再インストールしよう。</p>



<pre class="wp-block-code"><code>pacman -S mingw-w64-ucrt-x86_64-curl</code></pre>



<p class="wp-block-paragraph">113のパッケージがインストールされました。</p>



<p class="wp-block-paragraph">Siril ソースコードをダウンロードします。</p>



<pre class="wp-block-code"><code>git clone https://gitlab.com/free-astro/siril.git
cd siril
# ヘッダーファイルなどをダウンロード
git submodule update --init</code></pre>



<p class="wp-block-paragraph">ビルドシステムを生成し、コードをコンパイルします。</p>



<pre class="wp-block-code"><code>meson setup _build --buildtype release -Dgtk=true</code></pre>



<p class="wp-block-paragraph">若しくは、</p>



<pre class="wp-block-code"><code>meson setup --buildtype release _build -Dgtk=true -Dcpp_args="-march=native" -Dc_args="-march=native"

meson setup --prefix /usr/local --buildtype release _build -Dgtk=true -Dcpp_args="-march=native" -Dc_args="-march=native"</code></pre>



<p class="wp-block-paragraph">あれ、arch_nativeが有効にならないな～。。。</p>



<p class="wp-block-paragraph">ビルド、インストールします。</p>



<pre class="wp-block-code"><code>ninja -C _build install</code></pre>



<p class="wp-block-paragraph">Python仮想環境の準備や、モジュールインストールのために、Windows環境からSirilを起動させます。</p>



<p class="wp-block-paragraph">エクスプローラーから、<br>C:\msys64\ucrt64\binにあるsirilを起動させます。</p>



<pre class="wp-block-code"><code>log: ローカルのSPCCデータベースリポジトリは最新です！
Entering wrapping_idle for function 00007ff7d8326f50
log: python仮想環境を準備しています: C:\Users\USERNAME\AppData\Local\siril\venv.
log: pythonモジュールが最新か確認しています...
log: バックグラウンドでpythonモジュールをインストール/更新します。これは数秒掛かるかもしれません...
log: Pythonモジュールは最新です</code></pre>



<p class="wp-block-paragraph">Siril 1.5 Python仮想環境である、C:\Users\USERNAME\AppData\Local\siril<br>このディレクトリで、仮想環境をアクティブにして、pipを用います。</p>



<h3 class="wp-block-heading">Siril 1.5 Python仮想環境</h3>



<p class="wp-block-paragraph">Siril 1.5 Python仮想環境を動かします。「アクティブ」にする。</p>



<p class="wp-block-paragraph">PowerShell :</p>



<pre class="wp-block-code"><code>. C:\Users\USERNAME\AppData\Local\siril\venv\Scripts\Activate.ps1</code></pre>



<p class="wp-block-paragraph">コマンドプロンプト（cmd）:</p>



<pre class="wp-block-code"><code>C:\Users\USERNAME\AppData\Local\siril\venv\Scripts\activate.bat</code></pre>



<p class="wp-block-paragraph">PowerShellでのエラー表示</p>



<pre class="wp-block-code"><code>このシステムではスクリプトの実行が無効になっているため、ファイル C:\Users\USERNAME\AppData\Local\siril\venv\Scripts\A
ctivate.ps1を読み込むことができません。詳細については、「about_Execution_Policies」(https://go.microsoft.com/fwlink/?L
inkID=135170) を参照してください。
発生場所 行:1 文字:3
+ . C:\Users\USERNAME\AppData\Local\siril\venv\Scripts\Activate.ps1
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : セキュリティ エラー: (: ) &#91;]、PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess</code></pre>



<p class="wp-block-paragraph">PowerShellのスクリプト実行許可レベルを変更する。</p>



<pre class="wp-block-code"><code>Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process</code></pre>



<ul class="wp-block-list">
<li>Set-ExecutionPolicy: PowerShellのスクリプト実行許可レベルを変更</li>



<li>-ExecutionPolicy Bypass: 警告や確認を出さず、すべてのスクリプトの実行を許可</li>



<li>-Scope Process: 変更の影響範囲を現在実行中のPowerShellプロセス（ウィンドウ）だけに限定</li>
</ul>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">例 6: 現在の PowerShell セッションの実行ポリシーを設定する<br><a rel="noopener" target="_blank" href="https://learn.microsoft.com/ja-jp/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.6#6-powershell">https://learn.microsoft.com/ja-jp/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.6#6-powershell</a></p>
</blockquote>



<h3 class="wp-block-heading">PyTorch インストール</h3>



<p class="wp-block-paragraph">Siril 1.5 仮想環境をアクティブにする。</p>



<pre class="wp-block-code"><code>Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process

. C:\Users\USERNAME\AppData\Local\siril\venv\Scripts\Activate.ps1</code></pre>



<pre class="wp-block-code"><code>(venv) PS　#仮想環境アクティブ表示</code></pre>



<p class="wp-block-paragraph">コマンドを用いて、Siril Python仮想環境下へ、PyTorch, onnxruntime-gpuをインストールする。</p>



<pre class="wp-block-code"><code>pip 自身をインストール、最新版にアップデートする
python -m pip install --upgrade pip</code></pre>



<pre class="wp-block-code"><code>Downloading pip-26.2.1-py3-none-any.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 9.9 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 25.0.1
    Uninstalling pip-25.0.1:
      Successfully uninstalled pip-25.0.1
Successfully installed pip-26.2.1</code></pre>



<pre class="wp-block-code"><code>pip3 --version
pip 26.2.1 from C:\Users\USERNAME\AppData\Local\siril\venv\Lib\site-packages\pip (python 3.12)</code></pre>



<p class="wp-block-paragraph">PyTorchをインストール</p>



<pre class="wp-block-code"><code>python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128</code></pre>



<pre class="wp-block-code"><code>Installing collected packages: torchaudio, mpmath, typing-extensions, sympy, setuptools, pillow, networkx, MarkupSafe, fsspec, filelock, jinja2, torch, torchvision
Successfully installed MarkupSafe-3.0.3 filelock-3.32.3 fsspec-2026.7.0 jinja2-3.1.6 mpmath-1.3.0 networkx-3.6.1 pillow-12.3.0 setuptools-78.1.0 sympy-1.14.0 torch-2.11.0+cu128 torchaudio-2.11.0+cu128 torchvision-0.26.0+cu128 typing-extensions-4.16.0</code></pre>



<p class="wp-block-paragraph">動作確認</p>



<pre class="wp-block-code"><code>python -c "import torch; print('PyTorch Version:', torch.__version__); print('CUDA Available:', torch.cuda.is_available()); print('GPU Device:', torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'None')"

PyTorch Version: 2.11.0+cu128
CUDA Available: True
GPU Device: NVIDIA GeForce RTX 5060 Laptop GPU</code></pre>



<h3 class="wp-block-heading">onnxruntime-gpu インストール</h3>



<div class="wp-block-cocoon-blocks-icon-box common-icon-box block-box information-box">
<p class="wp-block-paragraph">CUDA 12.xでは、ONNX Runtime: onnxruntime-gpu 1.28.0 を用いても、<br>GPU (RTX5060) は、動きません。</p>



<p class="wp-block-paragraph">ONNX Runtime: 1.26.x-1.21.x , CUDA: 12.8 , cuDNN: 9.x<br>この3つの要素を組み合わせます。</p>



<p class="wp-block-paragraph">onnxruntime-gpu==1.26.0, version 1.26をインストールします。</p>
</div>



<pre class="wp-block-code"><code>python -m pip install onnxruntime-gpu==1.26.0</code></pre>



<p class="wp-block-paragraph">動作確認</p>



<pre class="wp-block-code"><code> python -c "import onnxruntime as ort; print(ort.get_available_providers())"
&#91;'TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']</code></pre>



<p class="wp-block-paragraph">CUDAとCPUが有効になっています。</p>



<pre class="wp-block-code"><code>Installing collected packages: flatbuffers, protobuf, onnxruntime-gpu
Successfully installed flatbuffers-25.12.19 onnxruntime-gpu-1.26.0 protobuf-7.36.0</code></pre>



<p class="wp-block-paragraph">動作確認</p>



<pre class="wp-block-code"><code>python -c "import torch; print('CUDA利用可能:', torch.cuda.is_available()); print('Detected GPU:', torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'None')"</code></pre>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box">
<p class="wp-block-paragraph">Siril Python スクリプトを使っても、PyTorch, onnxruntime-gpu をインストールできるでしょう。GPU Framework Manager を使います。<br><br>コマンドラインからのインストールが、動作やログが表示されるので、こちらではコマンド操作をしています。</p>
</div>



<h3 class="wp-block-heading">Cosmic Clarity Suite で RTX5060 を使う</h3>



<p class="wp-block-paragraph">ここから試行錯誤します。</p>



<h4 class="wp-block-heading">エラーログを読む</h4>



<p class="wp-block-paragraph">Siril 1.5仮想環境をアクティブにして、</p>



<pre class="wp-block-code"><code>(venv) PS C:\local\CosmicClaritySuite_Windows&gt; .\setiastrocosmicclarity.exe</code></pre>



<p class="wp-block-paragraph">若しくは、Siril 1.5 Pythonスクリプト、Cosmic Clarity Suite Sharpen を用いる。</p>



<p class="wp-block-paragraph">以下、エラーログ</p>



<pre class="wp-block-code"><code>Using device: cuda (CUDA)
Loaded TIFF image with dtype: float32
Final bit depth set to: 32-bit floating point
Sharpening Image: result_drizzle_19620s.fit.tif
Total Chunks: 225
Stellar Sharpening:
Traceback (most recent call last):
  File "Python Code\SetiAstroCosmicClarity.py", line 1391, in &lt;module&gt;
  File "Python Code\SetiAstroCosmicClarity.py", line 1216, in process_images
  File "Python Code\SetiAstroCosmicClarity.py", line 930, in sharpen_image
RuntimeError: CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.</code></pre>



<pre class="wp-block-code"><code> Traceback (most recent call last):
   File "Python Code\SetiAstroCosmicClarity.py", line 1391, in &lt;module&gt;
   File "Python Code\SetiAstroCosmicClarity.py", line 1216, in process_images
   File "Python Code\SetiAstroCosmicClarity.py", line 930, in sharpen_image
 RuntimeError: CUDA error: no kernel image is available for execution on the device
 CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
 For debugging consider passing CUDA_LAUNCH_BLOCKING=1
 Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
 &#91;PYI-18620:ERROR] Failed to execute script 'SetiAstroCosmicClarity' due to unhandled exception!

  *#              Cosmic Clarity Suite - Sharpen V6.5 AI3.5s          # 
  *#                                                                  #
  *#                         SetiAstro                                #
  *#                    Copyright © 2025                              #
  *#                                                                  #
 Using device: cuda (CUDA)
 Loaded TIFF image with dtype: float32
 Final bit depth set to: 32-bit floating point
 Sharpening Image: NGC2685_drizzle_19620s.fit.tif
 Total Chunks: 225
 Stellar Sharpening:
</code></pre>



<div class="wp-block-cocoon-blocks-info-box block-box primary-box">
<p class="wp-block-paragraph">エラー表示内容：<br>Using device: cuda (CUDA) ：<br>　Cosmic Clarityが、「GPUを使って処理します。CUDA経由でNVIDIA GPUを使用します」<br>Stellar Sharpening：星像のシャープ化処理を開始<br><br>no kernel image is available&#8230;：<br>CUDAでは、GPU上で実行する小さなプログラムを CUDA kernel（カーネル） と呼びます。</p>



<p class="wp-block-paragraph">イメージとしては、<br>Cosmic Clarity→PyTorchなど→CUDA kernel→RTX 5060<br>という流れです。<br><br>RTX 5060の場合は、<br>Compute Capability→12.0→sm_120（CUDA表記）<br></p>



<p class="wp-block-paragraph">ところが、Cosmic Clarityに含まれているCUDA関連コードが、例えば古いGPU向けにしか用意されていないらしく、</p>



<p class="wp-block-paragraph">Cosmic Clarity→「このCUDA kernelを実行して」<br>↓<br>RTX 5060<br>↓<br>「このkernelは私（sm_120）用のコードを持っていない」<br>↓<br>no kernel image is available</p>



<p class="wp-block-paragraph">となります。</p>
</div>



<p class="wp-block-paragraph">どうやら、Cosmic Clarity の .exe ファイルは、パッケージ（PyInstaller）によって古いバージョンの PyTorch が同梱されているらしい。<br>Cosmic Clarityの中に同梱されているCUDA対応ライブラリやPyTorchなどが、RTX 5060（sm_120）用のkernelを持っていないらしい。</p>



<div class="wp-block-cocoon-blocks-info-box block-box primary-box">
<p class="wp-block-paragraph">こちらの環境では、</p>



<p class="wp-block-paragraph">Windows 11<br>│<br>├── NVIDIA Driver 616.56<br>│ └── RTX 5060を正常に認識<br>│<br>├── CUDA Toolkit 12.8.2<br>│<br>└── Cosmic Clarity<br>　　　│<br>　　　├── setiastrocosmicclarity.exe<br>　　　│<br>　　　└── _internal<br>　　　　　　│<br>　　　　　　├── PyTorch<br>　　　　　　├── CUDA関連DLL<br>　　　　　　└── CUDA kernel<br>　　　　　　　　　│<br>　　　　　　　　　↓<br>　　　　　　　　　RTX 5060<br>　　　　　　　　　sm_120<br>　　　　　　　　　│<br>　　　　　　　　　X<br>　　　　　　　　　対応kernelがない？<br>　　　　　　　　　│<br>　　　　　　　　　↓<br>　　　　　　　　　no kernel image is available</p>
</div>



<p class="wp-block-paragraph">Cosmic Clarityが使用しているCUDA関連の実行コードのどこかが、RTX 5060（sm_120）に対応していない可能性が高いらしい。</p>



<pre class="wp-block-code"><code>setiastrocosmicclarity.exe にあるPyTorch は、RTX 30シリーズや40シリーズまでに対応か？
　古いPyTorchは、RTX 5060（Blackwell世代）の計算命令（sm_120）が無いので動かせない。

CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect：
 CUDAのエラーは非同期（時間差）で報告されることがあるため、以下のスタックトレース（エラーが発生した場所の記録）は正確ではない可能性があります

RuntimeError: CUDA error: no kernel image is available for execution on the device：
 このGPUデバイス上で実行できる、カーネルイメージ（コンパイル済みの命令データ）が見つからない。

GPUは大量の計算を「裏でまとめて」処理しています。そのため、プログラムが「これを計算して！」とGPUに命令を投げた瞬間ではなく、少し後になってGPU側から「さっきの命令、僕の言葉じゃなくて読めなかったよ」とエラーが返ってくる。そのため、プログラムがエラーで止まった一行手前や、別の場所が本当の引き金かもしれないよ、という開発者向けの注意書き。
　環境変数 CUDA_LAUNCH_BLOCKING=1 を設定して実行すると良いかもと言っている。
　GPUの不具合検知を有効にするには、TORCH_USE_CUDA_DSA を付けてコンパイルしてね、とも</code></pre>



<pre class="wp-block-code"><code>python "Python Code\SetiAstroCosmicClarity.py"
C:\Users\minmin\AppData\Local\Programs\Python\Python312\python.exe: can't open file 'C:\\local\\CosmicClaritySuite_Windows\\Python Code\\SetiAstroCosmicClarity.py': &#91;Errno 2] No such file or directory
### 動かない</code></pre>



<div class="wp-block-cocoon-blocks-info-box block-box primary-box">
<p class="wp-block-paragraph">[PYI-13972:ERROR] Failed to execute script &#8216;SetiAstroCosmicClarity&#8217;<br>　という表示から、setiastrocosmicclarity.exe は PyInstallerで固められたアプリかな？<br><br>構造としては、おそらく<br>CosmicClaritySuite_Windows<br>│<br>├─ setiastrocosmicclarity.exe<br>│<br>└─ _internal<br>　　├─ torch<br>　　├─ torchvision<br>　　├─ torchaudio<br>　　├─ numpy<br>　　├─ scipy<br>　　├─ &#8230;<br>　　└─ その他DLL<br>と思われる。（Frankに聞けば良い&#8230;）</p>
</div>



<p class="wp-block-paragraph">C:\local\CosmicClaritySuite_Windows_internal\torchにある、<br><code>version.py</code><br>を見てみると、</p>



<pre class="wp-block-code"><code>Get-Content .\_internal\torch\version.py
from typing import Optional

__all__ = &#91;'__version__', 'debug', 'cuda', 'git_version', 'hip']
__version__ = '2.5.1+cu121'
debug = False
cuda: Optional&#91;str] = '12.1'
git_version = 'a8d6afb511a69687bbb2b7e88a3cf67917e1697e'
hip: Optional&#91;str] = None</code></pre>



<p class="wp-block-paragraph">Cosmic Clarity Windowsに同梱されているPyTorchは、<br>PyTorch 2.5.1+cu121<br>CUDA 12.1</p>



<p class="wp-block-paragraph">Cosmic Clarity内蔵のPyTorch 2.5.1+cu121を、RTX 5060 / Blackwell対応の新しいPyTorchに交換すると、他の部分との互換性が保てない。<br></p>



<pre class="wp-block-code"><code>(Get-Item .\setiastrocosmicclarity.exe).VersionInfo | Format-List *
FileVersionRaw     : 0.0.0.0
ProductVersionRaw  : 0.0.0.0
Comments           :
CompanyName        :
FileBuildPart      : 0
FileDescription    :
FileMajorPart      : 0
FileMinorPart      : 0
FileName           : C:\local\CosmicClaritySuite_Windows\setiastrocosmicclarity.exe
FilePrivatePart    : 0
FileVersion        :
InternalName       :
IsDebug            : False
IsPatched          : False
IsPrivateBuild     : False
IsPreRelease       : False
IsSpecialBuild     : False
Language           :
LegalCopyright     :
LegalTrademarks    :
OriginalFilename   :
PrivateBuild       :
ProductBuildPart   : 0
ProductMajorPart   : 0
ProductMinorPart   : 0
ProductName        :
ProductPrivatePart : 0
ProductVersion     :
SpecialBuild       :</code></pre>



<p class="wp-block-paragraph">アップデートを使ってみます。<br><a rel="noopener" target="_blank" href="https://github.com/setiastro/cosmicclarity/releases/tag/Windows">https://github.com/setiastro/cosmicclarity/releases/tag/Windows</a><br>darkstar_*.onnx<br>darkstar_*.pth<br>deep_*.onnx<br>deep_*.pth<br>satellite*.onnx<br>satellite*.pth<br>setiastro*.exe<br>superres_*.onnx<br>superres_*.pth<br>各ファイルを入れ替えます。<br></p>



<pre class="wp-block-code"><code>エラー表示
 .\setiastrocosmicclarity.exe
Traceback (most recent call last):
  File "Python Code\SetiAstroCosmicClarity.py", line 5, in &lt;module&gt;
  File "&lt;frozen importlib._bootstrap&gt;", line 1360, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 1331, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
  File "torch\__init__.py", line 2108, in &lt;module&gt;
  File "&lt;frozen importlib._bootstrap&gt;", line 1360, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 1331, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
  File "torch\functional.py", line 7, in &lt;module&gt;
  File "&lt;frozen importlib._bootstrap&gt;", line 1360, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 1331, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
  File "torch\nn\__init__.py", line 8, in &lt;module&gt;
  File "&lt;frozen importlib._bootstrap&gt;", line 1360, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 1331, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
  File "torch\nn\modules\__init__.py", line 1, in &lt;module&gt;
  File "&lt;frozen importlib._bootstrap&gt;", line 1360, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 1331, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
  File "torch\nn\modules\module.py", line 29, in &lt;module&gt;
  File "&lt;frozen importlib._bootstrap&gt;", line 1360, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 1331, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
  File "torch\utils\__init__.py", line 8, in &lt;module&gt;
  File "&lt;frozen importlib._bootstrap&gt;", line 1360, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 1331, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
  File "torch\utils\data\__init__.py", line 1, in &lt;module&gt;
  File "&lt;frozen importlib._bootstrap&gt;", line 1360, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 1331, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
  File "torch\utils\data\dataloader.py", line 20, in &lt;module&gt;
  File "&lt;frozen importlib._bootstrap&gt;", line 1360, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 1331, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
  File "torch\distributed\__init__.py", line 122, in &lt;module&gt;
  File "&lt;frozen importlib._bootstrap&gt;", line 1360, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 1331, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
  File "torch\distributed\device_mesh.py", line 40, in &lt;module&gt;
  File "&lt;frozen importlib._bootstrap&gt;", line 1360, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 1331, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
  File "torch\distributed\distributed_c10d.py", line 234, in &lt;module&gt;
  File "torch\distributed\distributed_c10d.py", line 285, in Backend
AttributeError: type object 'torch._C._distributed_c10d.BackendType' has no attribute 'XCCL'. Did you mean: 'NCCL'?
&#91;PYI-3680:ERROR] Failed to execute script 'SetiAstroCosmicClarity' due to unhandled exception!</code></pre>



<div class="wp-block-cocoon-blocks-info-box block-box primary-box">
<p class="wp-block-paragraph">AttributeError: type object &#8216;torch._C._distributed_c10d.BackendType&#8217; has no attribute &#8216;XCCL&#8217;. Did you mean: &#8216;NCCL&#8217;?<br>[PYI-3680:ERROR] Failed to execute script &#8216;SetiAstroCosmicClarity&#8217; due to unhandled exception!<br><br>新しく上書きしたCosmic Clarityのコードが、_internal のPyTorch 2.5.1+cu121 と組み合わさったため、互換性が崩れた。</p>



<p class="wp-block-paragraph">EXEやPythonコードだけ更新して、_internalを残す組み合わせでは動かない。</p>
</div>



<h4 class="wp-block-heading">SetiAstroCosmicClarity.py を使ってみます。</h4>



<p class="wp-block-paragraph">作者のFrankin Marekさんは、プログラムのソースコードを完全に公開しています。有難い事です。</p>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box">
<p class="wp-block-paragraph">公式の完全なWindows版を入手します。</p>



<p class="wp-block-paragraph">今回のReleaseページを見ると、現在確認できるWindows更新版は、</p>



<p class="wp-block-paragraph">Files to grab to update just various files instead of having to download the full Cosmic Clarity</p>



<p class="wp-block-paragraph">という位置付けです。<br>これは _internal を更新するものではありません。現在のGitHubリポジトリには、Pythonソースも公開されています。</p>
</div>



<p class="wp-block-paragraph">C:\local\CosmicClarityRTX5060ディレクトリを作り、仮想環境下で動くか試します。</p>



<pre class="wp-block-code"><code>
py -3.12 -m venv .venv

Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process

.\.venv\Scripts\Activate.ps1

(.venv) PS C:\local\CosmicClarityRTX5060&gt; python --version
Python 3.12.10

(.venv) PS C:\local\CosmicClarityRTX5060&gt; python -c "import sys; print(sys.executable)" C:\local\CosmicClarityRTX5060\.venv\Scripts\python.exe

python -m pip install torch==2.9.0 torchvision==0.24.0 torchaudio==2.9.0 --index-url https://download.pytorch.org/whl/cu128
### 2.9GBをダウンロードします。</code></pre>



<p class="wp-block-paragraph">動作テストをします。</p>



<pre class="wp-block-code"><code>python -c "import torch; print('PyTorch:', torch.__version__); print('Torch CUDA:', torch.version.cuda); print('CUDA available:', torch.cuda.is_available()); print('GPU:', torch.cuda.get_device_name(0)); print('Capability:', torch.cuda.get_device_capability(0))"</code></pre>



<pre class="wp-block-code"><code>PyTorch: 2.9.0+cu128
Torch CUDA: 12.8
CUDA available: True
GPU: NVIDIA GeForce RTX 5060 Laptop GPU
Capability: (12, 0)</code></pre>



<pre class="wp-block-code"><code>python -c "import torch; x=torch.randn(1024,1024,device='cuda'); y=x@x; torch.cuda.synchronize(); print('CUDA TEST: OK', y.shape)"
###import torch; PyTorchを読み込む。
###x=torch.randn(1024,1024,device='cuda'); GPU（CUDA）上に、1024×1024のランダムな数値行列 x を作る。
### y=x@x; GPU上で、1024×1024行列 × 1024×1024行列、計算を実行する。</code></pre>



<pre class="wp-block-code"><code>CUDA TEST: OK torch.Size(&#91;1024, 1024])</code></pre>



<p class="wp-block-paragraph">setiastro /cosmicclarity<br><a rel="noopener" target="_blank" href="https://github.com/setiastro/cosmicclarity?utm_source=chatgpt.com">https://github.com/setiastro/cosmicclarity?utm_source=chatgpt.com</a><br>requirements.txtを見ると、<br>PyQt5, torch, numpy, tifffile, astropy, Pillow, torchvision, lz4, zstandard, rawpy</p>



<p class="wp-block-paragraph">これらをインストールして試します。</p>



<pre class="wp-block-code"><code>python -m pip install numpy tifffile astropy Pillow lz4 zstandard rawpy</code></pre>



<pre class="wp-block-code"><code>python -c "import numpy, tifffile, astropy, PIL, lz4, zstandard, rawpy; print('numpy:', numpy.__version__); print('tifffile:', tifffile.__version__); print('astropy:', astropy.__version__); print('Pillow:', PIL.__version__); print('lz4:', lz4.__version__); print('zstandard:', zstandard.__version__); print('rawpy:', rawpy.__version__)"</code></pre>



<pre class="wp-block-code"><code>python -c "import torch, torchvision; print('torch:', torch.__version__); print('torchvision:', torchvision.__version__); print('CUDA:', torch.version.cuda); print('GPU:', torch.cuda.get_device_name(0))"</code></pre>



<p class="wp-block-paragraph">依存関係を見てみると、<br><a rel="noopener" target="_blank" href="https://github.com/setiastro/cosmicclarity?utm_source=chatgpt.com">https://github.com/setiastro/cosmicclarity?utm_source=chatgpt.com</a><br>requirements.txt<br>PyQt5, torch, numpy, tifffile, astropy, Pillow, torchvision, lz4, zstandard,</p>



<p class="wp-block-paragraph">PyQt5とありますが、現在のPythonソースはPyQt6をimportしています。</p>



<pre class="wp-block-code"><code>python -m pip install xisf PyQt6 sep</code></pre>



<pre class="wp-block-code"><code>python -m pip install onnxruntime-gpu==1.26.0</code></pre>



<p class="wp-block-paragraph">C:\local\CosmicClarityRTX5060ディレクトリへ [SetiAstroCosmicClarity.py]　を配置します。</p>



<pre class="wp-block-code"><code>setiastro / cosmicclarity (Public)
https:&#47;&#47;github.com/setiastro/cosmicclarity/
SetiAstroCosmicClarity.py</code></pre>



<pre class="wp-block-code"><code>python .\SetiAstroCosmicClarity.py
### GUI起動を確認</code></pre>



<p class="wp-block-paragraph">C:\local\CosmicClarityRTX5060ディレクトリに、input、outputディレクトリを作る。<br>inputディレクトリへfitsファイルを配置する。</p>



<pre class="wp-block-code"><code> python .\SetiAstroCosmicClarity.py --sharpening_mode "Stellar Only"

###エラー表示
stellar_model_radius_1.load_state_dict(torch.load(os.path.join(exe_dir, 'deep_sharp_stellar_cnn_AI3_5s.pth'), map_location=device))</code></pre>



<p class="wp-block-paragraph">次のファイルを同じディレクトリへ配置すると、SetiAstroCosmicClarity.pyは動いた。<br><br>deep_nonstellar_sharp_cnn_radius_1AI3_5s.pth<br>deep_nonstellar_sharp_cnn_radius_2AI3_5s.pth<br>deep_nonstellar_sharp_cnn_radius_4AI3_5s.pth<br>deep_nonstellar_sharp_cnn_radius_8AI3_5s.pth<br>deep_sharp_stellar_cnn_AI3_5s.pth</p>



<pre class="wp-block-code"><code>python .\SetiAstroCosmicClarity.py</code></pre>



<p class="wp-block-paragraph">動作ログ、スタンドアローンはこれで動きました。</p>



<pre class="wp-block-code"><code>Using device: cuda (CUDA)
Loaded TIFF image with dtype: float32
Final bit depth set to: 32-bit floating point
Sharpening Image: result_drizzle_19620s.fit.tif
Total Chunks: 225
Stellar Sharpening:
Progress: 100.00% (225/225 chunks processed)
Stellar sharpening complete. Shape: (2731, 2731)
Updating luminance for non-stellar sharpening...
Non-Stellar Sharpening:
Progress: 100.00% (225/225 chunks processed)</code></pre>



<p class="wp-block-paragraph">以上を踏まえて、CosmicClaritySuite_Windowsディレクトリに変更を行います。</p>



<h4 class="wp-block-heading">CosmicClaritySuite_Windows へ &#8220;Windows Files Excluding _internal&#8221;を導入</h4>



<p class="wp-block-paragraph">Windows Files Excluding _internal にある各ファイルに入れ替えます。<br><a rel="noopener" target="_blank" href="https://github.com/setiastro/cosmicclarity/releases/tag/Windows">https://github.com/setiastro/cosmicclarity/releases/tag/Windows</a></p>



<p class="wp-block-paragraph">darkstar_*.onnx<br>darkstar_*.pth<br>deep_*.onnx<br>deep_*.pth<br>satellite*.onnx<br>satellite*.pth<br>setiastro*.exe<br>superres_*.onnx<br>superres_*.pth<br>各ファイルを入れ替えます。</p>



<h4 class="wp-block-heading">CosmicClaritySuite_Windows へ SetiAstroCosmicClarity.py を導入</h4>



<p class="wp-block-paragraph">cosmicclarityにある、SetiAstroCosmicClarity.py、SetiAstroCosmicClarity_denoise.pyをダウンロードし配置します。<br><a rel="noopener" target="_blank" href="https://github.com/setiastro/cosmicclarity">https://github.com/setiastro/cosmicclarity</a></p>



<p class="wp-block-paragraph">不足するパッケージをインストールします。</p>



<pre class="wp-block-code"><code>python -m pip install xisf astropy sep opencv-python</code></pre>



<h4 class="wp-block-heading">CosmicClaritySuite_Windows へ バッチファイルを導入</h4>



<p class="wp-block-paragraph">[SetiAstroCosmicClarity.py]　へSiril から諸設定などの情報を受け取れるバッチファイルを作ります。<br>&#8220;run_SetiAstroCosmicClarity.bat&#8221; とします。</p>



<pre class="wp-block-code"><code>@echo off
call C:\Users\USERNAME\AppData\Local\siril\venv\Scripts\activate.bat
python "%~dp0SetiAstroCosmicClarity.py" %*</code></pre>



<p class="wp-block-paragraph">[SetiAstroCosmicClarity_denoise.py]　へSiril から諸設定などの情報を受け取れるバッチファイルを作ります。<br>&#8220;run_SetiAstroCosmicClarity_denoise.bat&#8221; とします。</p>



<pre class="wp-block-code"><code>@echo off
call C:\Users\USERNAME\AppData\Local\siril\venv\Scripts\activate.bat
python "%~dp0SetiAstroCosmicClarity_denoise.py" %*</code></pre>



<h4 class="wp-block-heading">%~dp0</h4>



<ul class="wp-block-list">
<li>%0：実行されているバッチファイル自身のファイル名（絶対パス）</li>



<li>~：前後の不要なダブルクォーテーション（&#8221;）を取り除く</li>



<li>d：ドライブ名（例：C:）だけを抽出</li>



<li>p：フォルダの経路（パス：\Users\USERNAME\AppData\Local\siril\venv\Scripts\）を抽出</li>
</ul>



<p class="wp-block-paragraph">Siril などの外部ソフトからこのバッチファイルが呼び出されたとき、パソコンの内部（カレントディレクトリ）は「Sirilのプログラムがある場所」になってしまっています。もし単に python SetiAstroCosmicClarity.py とだけ書いておくと、システムは Siril のフォルダから SetiAstroCosmicClarity.py を探してしまい、「ファイルが見つかりません」というエラーになります。</p>



<p class="wp-block-paragraph">%~dp0 を付けて &#8220;%~dp0SetiAstroCosmicClarity.py&#8221; と書くことで、「このバッチファイルと同じフォルダ内にある SetiAstroCosmicClarity.py を実行」 とSirilに指示を出せます。</p>



<div class="wp-block-cocoon-blocks-sticky-box blank-box block-box sticky">
<p class="wp-block-paragraph">最新のGPUを使うには、みんなどうやっているのかな？<br>きっと、もっと簡単なのだろう。。。</p>
</div>



<p class="wp-block-paragraph">&#8220;SetiAstroCosmicClarity_denoise.py&#8221; も同様に設定します。<br>SetiAstroCosmicClarity, Siril Pythonスクリプトの動作設定は、ここまでです。</p>



<h3 class="wp-block-heading">SyQon Prizm, Starless</h3>



<p class="wp-block-paragraph">C:\Users\USERNAME\AppData\Local\siril<br>以下に、次のディレクトリがあり、そこへそれぞれのファイルを配置します。<br>syqon_prism　→　prism_mini.pt<br>syqon_starless　→　zenith.pt</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">Build Tools for Visual Studio が必要になるのは、</h3>



<p class="wp-block-paragraph">Siril での画像処理では、開発を行っていないならば、C++をコンパイル、ビルドする必要は、まず、ありません。</p>



<p class="wp-block-paragraph">そのために、Build Tools for Visual Studioは、通常は、不必要です。</p>



<p class="wp-block-paragraph">Siril 1.5 を使い、天体画像処理をPythonスクリプトなどを用いるならば、numpy, PyQt6, astropyなどのスクリプト実行に必要なPythonライブラリや、PyTorchなどのAIフレームワークは、Windows用にコンパイル済みのパッケージ（Wheel形式）が、スクリプト実行時にインストールされます。</p>



<p class="wp-block-paragraph">Windows版 CUDA Toolkitインストーラーを実行すると、途中で「No supported version of Visual Studio was found…」という警告が表示されることがあります。これは「Visual Studio用のプラグイン（開発者向けの統合環境）が入れられない」という警告なので、そのまま進めると、ランタイムやドライバーは正常にインストールされます。</p>



<p class="wp-block-paragraph">もしも、事前にビルドされていないPythonパッケージを pip install する必要が出た場合などは、画面に 「Microsoft Visual C++ 14.0 or greater is required 」とエラー表示されます。</p>



<p class="wp-block-paragraph">この場合は、「Build Tools for Visual Studio」 を開き、「C++ によるデスクトップ開発」にチェックを入れてインストールします。</p>



<p class="wp-block-paragraph">GUIにてBuild Tools for Visual Studioをインストール<br>「C++ によるデスクトップ開発」をクリックする。画面右側で「ATL」と「MFC」にチェックを入れ、「インストール」をクリックする。</p>



<p class="wp-block-paragraph">コマンドを用いてインストールするならば、以下を参考にします。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><a rel="noopener" target="_blank" href="https://www.kkaneko.jp/tools/win/cuda.html" title="
NVIDIA ドライバ，NVIDIA CUDA ツールキット 12.8，NVIDIA cuDNN v9.19.0 のインストール（Windows 上）｜金子邦彦研究室" class="blogcard-wrap external-blogcard-wrap a-wrap cf"><div class="blogcard external-blogcard eb-left cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img loading="lazy" decoding="async" src="https://s.wordpress.com/mshots/v1/https%3A%2F%2Fwww.kkaneko.jp%2Ftools%2Fwin%2Fcuda.html?w=320&#038;h=180" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="320" height="180" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">
NVIDIA ドライバ，NVIDIA CUDA ツールキット 12.8，NVIDIA cuDNN v9.19.0 のインストール（Windows 上）｜金子邦彦研究室</div><div class="blogcard-snippet external-blogcard-snippet"></div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://www.kkaneko.jp/tools/win/cuda.html" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">www.kkaneko.jp</div></div></div></div></a></blockquote>



<p class="wp-block-paragraph">winget を用いて以下のインストールを行うので、先ずは、wingetを確認します。<br>&#8220;Win&#8221;+&#8221;X&#8221;key → &#8220;i&#8221;key → &#8220;Windows PowerShell</p>



<pre class="wp-block-code"><code>winget
Windows Package Manager v1.29.280</code></pre>



<p class="wp-block-paragraph">Build Tools for Visual Studio 2026 のインストール</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><br><a rel="noopener" target="_blank" href="https://learn.microsoft.com/ja-jp/windows/package-manager/winget/install">https://learn.microsoft.com/ja-jp/windows/package-manager/winget/install</a></p>
</blockquote>



<pre class="wp-block-code"><code>winget install --scope machine --id Microsoft.VCRedist.2015+.x64 -e --silent --disable-interactivity --force --accept-source-agreements --accept-package-agreements --override "/quiet /norestart"
</code></pre>



<ul class="wp-block-list">
<li>&#8211;scope: インストーラーでユーザーまたはコンピューターのスコープをターゲットにする必要がある場合に指定できます。</li>



<li>&#8211;id: installをアプリケーションの ID に制限します。</li>



<li>-e, &#8211;exact: 大文字小文字の区別の検査を含め、クエリで正確な文字列を使用します。 部分文字列の既定の動作は使用されません。</li>



<li>&#8211;silent: サイレント モードでインストーラーを実行します。 これにより、すべての UI が抑制されます。 既定のエクスペリエンスでは、インストーラーの進行状況が表示されます。</li>



<li><code>--disable-interactivity</code>: 対話型プロンプトを無効にします。</li>



<li><code>--force</code>: コマンドを直接実行し、セキュリティ関連以外の問題を続行します。</li>



<li><code>--accept-source-agreements</code>:  対話型プロンプトを抑制して、WinGet ソース (リポジトリ) の使用許諾契約書に同意します。 これはパッケージ ライセンスとは別であり、ソース自体の使用条件 ( winget コミュニティ リポジトリなど) が対象となります。</li>



<li><code>--accept-package-agreements</code>: パッケージ インストーラーによって提示された使用許諾契約書または EULA を受け入れ、対話型プロンプトを表示しません。 これはパッケージのライセンス条項にのみ適用されます。インストーラーによって提供されるオプションのコンポーネントやバンドルされたソフトウェアには影響しません。 完全に非対話型の installの場合は、 <strong><code>--silent</code> (<code>-h</code>)</strong> と組み合わせます。</li>



<li><code>--override</code>: インストーラーに直接渡される文字列。</li>



<li><code>"/quiet /norestart"</code></li>
</ul>



<h3 class="wp-block-heading">zlib のインストールは不要</h3>



<p class="wp-block-paragraph">zlibは、別途、インストールする必要はありません。<br>cuDNN 9.1.0のドキュメントに案内があります。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">ZLIB version 1.2.13 is statically linked into the cuDNN Windows dynamic libraries. Changing to the static linkage of ZLIB for other platforms will be addressed in future cuDNN releases.<br><a rel="noopener" target="_blank" href="https://docs.nvidia.com/deeplearning/cudnn/backend/latest/release-notes.html">https://docs.nvidia.com/deeplearning/cudnn/backend/latest/release-notes.html</a><br><br>ZLIB バージョン 1.2.13 は、cuDNN の Windows 向けダイナミックライブラリに静的リンクされています。その他のプラットフォームにおける ZLIB の静的リンクへの変更については、今後の cuDNN リリースで対応される予定です。</p>
</blockquote>



<pre class="wp-block-code"><code><a rel="noopener" target="_blank" href="https://www.winimage.com/zLibDll/index.html">https://www.winimage.com/zLibDll/index.html</a>

There is also a DLL for Windows 64 bits, for <strong>AMD64/Intel EM64T</strong> and for Intel Itanium.</code></pre>



<p class="wp-block-paragraph">展開した中にある <code>zlibwapi.dll</code> を、PATH の通った場所にコピーします。cuDNN の <code>bin</code> フォルダにコピーします。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://globe3.ddns.net/wp/setting-up-ubuntu26-and-windows11-for-astronomy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>NGC4438-M86, Arp286, Arp272</title>
		<link>https://globe3.ddns.net/wp/ngc4438-m86-arp286-arp272/</link>
					<comments>https://globe3.ddns.net/wp/ngc4438-m86-arp286-arp272/#respond</comments>
		
		<dc:creator><![CDATA[minmin]]></dc:creator>
		<pubDate>Tue, 26 May 2026 06:40:25 +0000</pubDate>
				<category><![CDATA[Arp天体]]></category>
		<category><![CDATA[NGC天体]]></category>
		<category><![CDATA[画像処理]]></category>
		<guid isPermaLink="false">https://globe3.ddns.net/wp/?p=3369</guid>

					<description><![CDATA[NGC4438 M86 NGC4402 西に傾く春の星座が名残惜しく、晩春には、形に面白みがある銀河たちを撮影しました。 左側、縦長の菱形がNGC4438。右側、ぼんやりと楕円型がM86です。乙女座にあります。右上にある [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">NGC4438 M86 NGC4402</h2>



<p class="wp-block-paragraph">西に傾く春の星座が名残惜しく、晩春には、形に面白みがある銀河たちを撮影しました。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/05/NGC4438-M86_HEUIB-II_2h54m_2026-05-16T21-03-29_recomposition_800.jpg" alt="" class="wp-image-3407" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/05/NGC4438-M86_HEUIB-II_2h54m_2026-05-16T21-03-29_recomposition_800.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/05/NGC4438-M86_HEUIB-II_2h54m_2026-05-16T21-03-29_recomposition_800-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/05/NGC4438-M86_HEUIB-II_2h54m_2026-05-16T21-03-29_recomposition_800-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/05/NGC4438-M86_HEUIB-II_2h54m_2026-05-16T21-03-29_recomposition_800-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">左側、縦長の菱形がNGC4438。右側、ぼんやりと楕円型がM86です。乙女座にあります。<br>右上にある銀河は、NGC4402です。この銀河は、乙女座銀河団の中心に向かって移動中に、その中心から流れてくる高温のガスにより、NGC4402を形作る水素やヘリウムなどのガスなどが吹き飛ばされている様子らしいです。菱形のNGC4438や楕円のM86よりも、その姿に惹かれたNGC4402を強調した画像処理を行いました。</p>



<p class="wp-block-paragraph">Name: NGC4438, M86, NGC4402<br>Date: 2026-05-16 T21-03<br>SQM: 21.64 mag/arcsec<sup>2</sup> (Yamanashi)<br>Optics: Takahashi TS-160, HEUIB-II<br>Camera: ASI533MC Pro, gain 100, offset 20, -20degrees<br>Exposure: 180s x 58 (total 2h54m)<br>Mount: 160jp, Althiba3, off-axis guide, INDI Library, PHD2<br>Processing: Siril 1.5 beta, VeraLux Nox, Cosmetic Correction<br>Star Processing Python script: Aberrations Remover, Cosmic Clarity Sharpen (Stel_amt=0.16, Nstel_str=3), SyQon Starless<br>Galaxy Processing Python script: SyQon Prism, GraXpert, SyQon Starless</p>



<h2 class="wp-block-heading">Arp286</h2>



<p class="wp-block-paragraph">Arp286は乙女座にある銀河です。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/05/Arp286_HEUIB-II_1h24m_2026-05-17T00-21-53_recomposition_800.jpg" alt="" class="wp-image-3410" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/05/Arp286_HEUIB-II_1h24m_2026-05-17T00-21-53_recomposition_800.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/05/Arp286_HEUIB-II_1h24m_2026-05-17T00-21-53_recomposition_800-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/05/Arp286_HEUIB-II_1h24m_2026-05-17T00-21-53_recomposition_800-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/05/Arp286_HEUIB-II_1h24m_2026-05-17T00-21-53_recomposition_800-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">Name: Arp286<br>Date: 2026-05-17 T00-21<br>SQM: 21.64 mag/arcsec<sup>2</sup> (Yamanashi)<br>Optics: Takahashi TS-160, HEUIB-II<br>Camera: ASI533MC Pro, gain 100, offset 20, -20degrees<br>Exposure: 180s x 28 (total 1h24m)<br>Mount: 160jp, Althiba3, off-axis guide, INDI Library, PHD2<br>Processing: Siril 1.5 beta, VeraLux Nox, Cosmetic Correction<br>Star Processing Python script: Aberrations Remover, Cosmic Clarity Sharpen (Stel_amt=0.16, Nstel_str=3), SyQon Starless<br>Galaxy Processing Python script: SyQon Prism, GraXpert, SyQon Starless</p>



<h2 class="wp-block-heading">Arp272</h2>



<p class="wp-block-paragraph">画像中心から少し右に映る衝突した銀河、NGC6050とIC1179が、Arp272です。<br>ヘルクレス座にあります。<br>明け方の画像には南北に移動する人工衛星が映りました。<br></p>



<p class="wp-block-paragraph">Name: Arp272<br>Date: 2026-05-17 T01-51<br>SQM: 21.64 mag/arcsec<sup>2</sup> (Yamanashi)<br>Optics: Takahashi TS-160, HEUIB-II<br>Camera: ASI533MC Pro, gain 100, offset 20, -20degrees<br>Exposure: 180s x25 (total 1h15m)<br>Mount: 160jp, Althiba3, off-axis guide, INDI Library, PHD2<br>Processing: Siril 1.5 beta, VeraLux Nox, Cosmetic Correction<br>Star Processing Python script: Aberrations Remover, Cosmic Clarity Sharpen (Stel_amt=0.16, Nstel_str=3), SyQon Starless<br>Galaxy Processing Python script: SyQon Prism, GraXpert, SyQon Starless</p>



<p class="wp-block-paragraph">SyQon Starless 若しくは、Starnet 2、いずれでも綺麗に恒星と星雲の分離ができないので、この画像のみは、分離せずに処理を行います。</p>



<h2 class="wp-block-heading">Siril 画像処理</h2>



<ul class="wp-block-list">
<li>勾配補正、色校正など
<ul class="wp-block-list">
<li>VeraLux Nox (Background Extraction)</li>



<li>SPCC (Gaia Spectrum)</li>



<li>Cosmetic Correction (CFAあり)</li>



<li>別名でファイル保存</li>
</ul>
</li>
</ul>



<ul class="wp-block-list">
<li>恒星処理
<ul class="wp-block-list">
<li>Desaturate Stars: 必要に応じて</li>



<li>Aberrations Remover: 必要に応じて</li>



<li>Deconvolution: Cosmic Clarity Sharpening, Stellar Only (Stel_amt=0.16 若しくは0.32, Nstel_str=3)</li>



<li>Starnet 2 若しくは SyQon Starless</li>
</ul>
</li>



<li>銀河星雲処理
<ul class="wp-block-list">
<li>ノイズ除去 : SyQon Prism (Strength=0.64, Target Median=0.15, Std)</li>



<li>Deconvolution: GraXpert (Strength=0.64)</li>



<li>SyQon Starless (Starnet 2は、星雲部分を削除してしまう事がある。または、逆もある)</li>



<li>ストレッチ（HT,GHS）</li>



<li>Wavelets Transformation</li>



<li>ノイズ除去 : SyQon Prism (Strength=0.64, Taget Median=0.2, Soft)</li>



<li>色補正: Color saturation, threshold 1.00</li>
</ul>
</li>



<li>恒星、銀河星雲再合成
<ul class="wp-block-list">
<li>Star recomposition</li>
</ul>
</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://globe3.ddns.net/wp/ngc4438-m86-arp286-arp272/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>VeraLux Nox, Silentium と Siril</title>
		<link>https://globe3.ddns.net/wp/using-veralux-with-siril/</link>
					<comments>https://globe3.ddns.net/wp/using-veralux-with-siril/#respond</comments>
		
		<dc:creator><![CDATA[minmin]]></dc:creator>
		<pubDate>Wed, 20 May 2026 07:48:00 +0000</pubDate>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Siril]]></category>
		<category><![CDATA[画像処理]]></category>
		<guid isPermaLink="false">https://globe3.ddns.net/wp/?p=3304</guid>

					<description><![CDATA[Cyril Richardさん と オープンソース Cyril RichardさんとRich Stevensonさんが対談してます。https://www.youtube.com/watch?v=Y6b3VVf-tvk  [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Cyril Richardさん と オープンソース</h2>



<p class="wp-block-paragraph">Cyril RichardさんとRich Stevensonさんが対談してます。<br><a rel="noopener" target="_blank" href="https://www.youtube.com/watch?v=Y6b3VVf-tvk">https://www.youtube.com/watch?v=Y6b3VVf-tvk</a></p>



<p class="wp-block-paragraph">対談を聞いてみると、</p>



<p class="wp-block-paragraph">Siril開発者のCyril Richardさんは、理論物理学者です。<br>天体物理学分野では分光学、氷の分析、系外惑星の大気を研究してるそうです。<br>彼曰く、それらを行う量子力学者だそうです。</p>



<p class="wp-block-paragraph">彼はLinuxのみで作業をするので、Linuxで動作する、無料で自由な天体写真処理ツールが欲しかったそうです。当時はそれが無いのでSirilを開発したそうです。</p>



<p class="wp-block-paragraph">Sirilの始まりは、Christian Builさんの &#8220;IRIS&#8221;のLinux版としてでした。これが2005年の事でした。<br>一時中断していた開発を、2012年ころから、Cyril Richardさんが、その後を引き継いだようです。</p>



<p class="wp-block-paragraph">Sirilの名称は、元の&#8221;IRIS&#8221;の文字を後ろから並び替えて、IRIS → iris → siri<br>そこに&#8221;Linux&#8221;の先頭文字の &#8220;l&#8221; をつなげる形にしたようです。&#8221;siri&#8221; + &#8220;l&#8221; =&gt; Siril<br>UNIXやGNUに見られる命名法です。 Cyril Richardさんの名前とは無関係です。</p>



<p class="wp-block-paragraph">量子力学者の彼は、ノイズの多いデータを扱う事には慣れていたので、Sirilの画像処理アルゴリズムも厳密さと信頼性が高くなるように努めているそうです。</p>



<p class="wp-block-paragraph">彼はきちんと動作し、綺麗な画像が得られる、Linux上のプログラムが欲しかったそうです。<br>無料であり、しかもオープンソースのプログラムが欲しかったので、Sirilをその形にしたそうです。</p>



<p class="wp-block-paragraph">オープンソースで開発した事に因り、Sirilは広がりを見せたと思えます。<br>マルチプラットフォームになり、Pythonスクリプトでの処理が可能になり、多くのプログラマー、テスターが参加し、開発がより速くなりました。また、開発に掛かる費用を、寄付で賄えるようになりました。</p>



<p class="wp-block-paragraph">昨今は、AIでプログラム開発が出来ます。<br>ですが、そのプログラムがより良くなる為に必要な事は、何でしょうか？<br>それは、オープンソースプログラムであり、それゆえに多くの人に楽しまれながら、育まれ、より大きく育つことが出来ます。</p>



<p class="wp-block-paragraph">Cyril RichardさんとRich Stevensonさんの話しから、強くそう思いました。</p>



<h2 class="wp-block-heading">VeraLux Nox</h2>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">VeraLux Noxは、Zenith Membrane（ゼニス・メンブレン）と呼ばれる概念を基盤とした、決定論的な背景モデリングエンジンを導入しています。このアルゴリズムは、統計的サンプリングや曲線近似によって勾配を推定するのではなく、離散ポアソン方程式を直接解くことで、空の背景を物理的に弾性を持つ表面として再構築します。<br><a rel="noopener" target="_blank" href="https://www.youtube.com/watch?v=eK9VU1d-VP0">https://www.youtube.com/watch?v=eK9VU1d-VP0</a></p>
</blockquote>



<h2 class="wp-block-heading">VeraLux Silentium</h2>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">VeraLux Silentium Pythonスクリプトは、Sirilのリニアステージ向けに特別に設計された、強力な非AIノイズ除去エンジンを導入しています。</p>



<p class="wp-block-paragraph">AIベースとは異なり、Silentiumはリニアデータに対して直接処理を行うため、微弱な構造や細かなディテールを保持しつつ、制御された方法で、天体画像に適した安全な手法により背景ノイズを低減します。これにより、微細部分の誤認識や過度な平滑化を行うことなく、ストレッチ処理の前にクリーンなデータを得たいユーザーにとって理想的な解決法となります。<br><a rel="noopener" target="_blank" href="https://www.youtube.com/watch?v=N4CUQA2X-cE">https://www.youtube.com/watch?v=N4CUQA2X-cE</a></p>
</blockquote>



<p class="wp-block-paragraph">Silentium を用いるには、&#8221;Defaults&#8221;ボタンを押して、初期状態でノイズ除去を行うと良いでしょう。<br>なぜなら、Silentiumは、ノイズの統計計算を行うからです。</p>



<ul class="wp-block-list">
<li>スペースキーを押し続けると、未処理の画像、オリジナル画像が表示される。</li>



<li>赤枠はプレビュー
<ul class="wp-block-list">
<li>ノイズ除去を確認したい部分をクリックします。</li>



<li>戻すには、画面上のどこかをクリックするか、「1:1ボタン」をクリックします。</li>
</ul>
</li>
</ul>



<ul class="wp-block-list">
<li>Noise Intensity:<br>ノイズ除去強度</li>



<li>Detail Guard:<br>微細構造の保護</li>



<li>Chromeinance:<br>3色、カラー画像に対してノイズ除去を行います。チェックボタンを外すと輝度のみのノイズ除去<br>数値が上げると、カラーノイズ除去を強く行います。</li>



<li>Deep Space Smoothness (Shadows): 陰（かげ）部分の滑らかさ（？）<br>ノイズ除去を行った後に、天体構造がぼやけ始めたならば、この数値を上げていきます。</li>



<li>Use findstar (.lst) for Star Protection:<br>恒星にノイズ除去処理を行わないように、Sirilのfindstarを用います。<br>作業ディレクトリに、listファイルが作られます。内容は、Dynamic PSFの数値です。</li>



<li>Auto Starless Detection:<br>恒星が無い画像にノイズ除去を行う時にも、このチェックを使います。</li>
</ul>



<p class="wp-block-paragraph">プレビュー画像で良好なノイズ除去が得られたならば、&#8221;PROCESS&#8221;ボタンを押して、処理を全画面に適応します。</p>



<h2 class="wp-block-heading">Siril 画像処理の流れ</h2>



<p class="wp-block-paragraph">掲載画像は、画像処理中です。</p>



<p class="wp-block-paragraph">Name: <br>Processing: Siril 1.5 beta, VeraLux, StarNet2, Cosmic Clarity, GraXpert<br>Star Processing Python script: VeraLux Nox, Aberration Remover, Cosmic Clarity Sharpen<br>Galaxy Processing Python script: GraXpert, SyQon Prism</p>



<p class="wp-block-paragraph">Siril 1.5 betaを使って画像処理します。</p>



<ul id="block-38592a4e-9105-41a4-b0a4-204e6907d0bc" class="wp-block-list">
<li>Background Extraction: VeraLux Nox</li>



<li>SPCC (Gaia Spectrum: G2Vなど)</li>



<li>別名でファイル保存
<ul class="wp-block-list">
<li>恒星処理
<ul class="wp-block-list">
<li>Desaturate Stars: 今回は未使用</li>



<li>Aberrations Remover: 必要に応じて</li>



<li>Deconvolution: Cosmic Clarity Sharpening, Stellar Only (Stel_amt=0.24, Nstel_str=3)</li>



<li>Starnet 2</li>
</ul>
</li>



<li>銀河星雲処理
<ul class="wp-block-list">
<li>ノイズ除去 : VeraLux Silentium (Strength=　, 　)</li>



<li>Deconvolution: GraXpert (Strength=0.64)</li>



<li>Starnet 2</li>



<li>ストレッチ（HT,GHS）</li>



<li>Wavelets Transformation</li>



<li>ノイズ除去 : VeraLux Silentium (Strength=　, 　)</li>



<li>色補正: Color saturation 65%, threshold 1.00</li>
</ul>
</li>
</ul>
</li>



<li>Star recomposition</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://globe3.ddns.net/wp/using-veralux-with-siril/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>何度でも Arp 214</title>
		<link>https://globe3.ddns.net/wp/arp214-3-nights/</link>
					<comments>https://globe3.ddns.net/wp/arp214-3-nights/#respond</comments>
		
		<dc:creator><![CDATA[minmin]]></dc:creator>
		<pubDate>Thu, 23 Apr 2026 08:24:37 +0000</pubDate>
				<category><![CDATA[Arp天体]]></category>
		<category><![CDATA[画像処理]]></category>
		<guid isPermaLink="false">https://globe3.ddns.net/wp/?p=3205</guid>

					<description><![CDATA[Arp214は、おおぐま座にある銀河たちです。NGC 3718 と パートナーのNGC 3729です。 NGC3718は、S字の様に大きく歪んでいます。近くにあるNGC3729と互いに重力が影響し合っています。その互いの [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Arp214は、おおぐま座にある銀河たちです。NGC 3718 と パートナーのNGC 3729です。</p>



<p class="wp-block-paragraph">NGC3718は、S字の様に大きく歪んでいます。<br>近くにあるNGC3729と互いに重力が影響し合っています。その互いの距離は、15万光年だそうです。</p>



<p class="wp-block-paragraph">S字状のNGC3718は、極環状銀河になる経過途中の様です。<br>極環状銀河は、星やガス、塵が平らな銀河円盤の平面に対して、垂直な環状に周回している銀河です。</p>



<p class="wp-block-paragraph">NGC3718の下(南側)に小さな銀河がかたまって映っています。<br>HCG56（Hickson Compact Group:ヒクソン・コンパクト・グループ）です。</p>



<h2 class="wp-block-heading">2026年4月18日 Arp 214</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-04-18_1h27m_800_recomposition.jpg" alt="" class="wp-image-3241" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-04-18_1h27m_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-04-18_1h27m_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-04-18_1h27m_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-04-18_1h27m_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">2026年、4月18日<br>GPV気象予報モデルでは夜半頃から雲が広がる。他の予報も曇りがち。<br>でも、観望と撮影に行ってみよう。</p>



<p class="wp-block-paragraph">夜に機材設置を終えると、おおぐま座、北斗七星あたりは雲が無いので、Arp 214</p>



<p class="wp-block-paragraph">Name: Arp 214<br>Date: 2026-04-18 T21-45<br>SQM: 21.64 mag/arcsec<sup>2</sup> (Yamanashi)<br>Optics: Takahashi TS-160, HEUIB-II<br>Camera: ASI533MC Pro, gain 100, offset 20, -15deg 2026-04-18 -20degrees<br>Exposure: 180s x 30 (total 1h30m)</p>



<h2 class="wp-block-heading">2026年2月15日、2026年2月21日、2026年4月18日 Arp 214</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition.jpg" alt="" class="wp-image-3234" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">3日間の画像を合わせました。</p>



<p class="wp-block-paragraph">Name: Arp 104<br>Date: 2026-02-16 T01-17 , 2026-02-22 T01-32, 2026-04-18 T21-45<br>SQM: 21.64 mag/arcsec<sup>2</sup> (Yamanashi)<br>Optics: Takahashi TS-160, HEUIB-II<br>Camera: ASI533MC Pro, gain 100, offset 20, -15degrees, 2026-04-18 -20degrees<br>Exposure: 180s x 137 (total 6h51m)</p>



<h2 class="wp-block-heading">共通データ</h2>



<p class="wp-block-paragraph">Name: Arp 214<br>SQM: 21.64 mag/arcsec<sup>2</sup> (Yamanashi)<br>Optics: Takahashi TS-160, HEUIB-II<br>Mount: 160jp, Althiba3, off-axis guide, INDI Library, PHD2<br>Processing: Siril 1.5 beta, VeraLux, StarNet2, Cosmic Clarity, GraXpert<br>Star Processing Python script: VeraLux Nox, Aberration Remover, Cosmic Clarity Sharpen<br>Galaxy Processing Python script: GraXpert, SyQon Prism</p>



<h2 class="wp-block-heading">露出時間での違いは？</h2>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-7387b849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-04-18_1h27m_800_recomposition.jpg" alt="" class="wp-image-3241" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-04-18_1h27m_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-04-18_1h27m_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-04-18_1h27m_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-04-18_1h27m_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="has-text-align-center wp-block-paragraph">1時間30分間</p>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition.jpg" alt="" class="wp-image-3234" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="has-text-align-center wp-block-paragraph">6時間51分間</p>
</div>
</div>



<h2 class="wp-block-heading">GHS. Stretch factor, Local stretch intensityが強めでの違いは</h2>



<p class="wp-block-paragraph">6時間51分間露光画像を、GHS, Local stretch intensity (b)の数値を変えた処理しました。</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-7387b849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition.jpg" alt="" class="wp-image-3234" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_2026-02-15_02-21_04-18_6h51m_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">(b) = 1 ~ 2</p>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_GHSb_2026-02-15_02-21_04-18_6h51m_800_recomposition.jpg" alt="" class="wp-image-3480" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_GHSb_2026-02-15_02-21_04-18_6h51m_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_GHSb_2026-02-15_02-21_04-18_6h51m_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_GHSb_2026-02-15_02-21_04-18_6h51m_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/Arp214_GHSb_2026-02-15_02-21_04-18_6h51m_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">(b) = 5 ~ 7</p>
</div>
</div>



<h2 class="wp-block-heading">Siril 画像処理</h2>



<p class="wp-block-paragraph">Name: Arp 214<br>Processing: Siril 1.5 beta, VeraLux, StarNet2, Cosmic Clarity, GraXpert<br>Star Processing Python script: VeraLux Nox, Aberration Remover, Cosmic Clarity Sharpen<br>Galaxy Processing Python script: GraXpert, SyQon Prism</p>



<p class="wp-block-paragraph">Siril 1.5 betaを使って画像処理します。</p>



<ul id="block-38592a4e-9105-41a4-b0a4-204e6907d0bc" class="wp-block-list">
<li>Background Extraction: VeraLux Nox</li>



<li>SPCC (Gaia Spectrum: G2Vなど)</li>



<li>別名でファイル保存
<ul class="wp-block-list">
<li>恒星処理
<ul class="wp-block-list">
<li>Desaturate Stars: 今回は未使用</li>



<li>Aberrations Remover: 必要に応じて</li>



<li>Deconvolution: Cosmic Clarity Sharpening, Stellar Only (Stel_amt=0.24, Nstel_str=3)</li>



<li>Starnet 2</li>
</ul>
</li>



<li>銀河星雲処理
<ul class="wp-block-list">
<li>ノイズ除去 : SyQon Prism  (Strength=0.64, Std)</li>



<li>Deconvolution:  GraXpert (Strength=0.64)</li>



<li>Starnet 2 (SyQon Starlessは、HCGを削除してしまうため未使用)</li>



<li>ストレッチ（HT,GHS）</li>



<li>Wavelets Transformation</li>



<li>ノイズ除去 : SyQon Prism</li>



<li>色補正: Color saturation 65%, threshold 1.00</li>
</ul>
</li>
</ul>
</li>



<li>Star recomposition</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://globe3.ddns.net/wp/arp214-3-nights/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>IC 342, NGC 2146, NGC1579</title>
		<link>https://globe3.ddns.net/wp/ic342-ngc2146-ngc1579-20251123-29/</link>
					<comments>https://globe3.ddns.net/wp/ic342-ngc2146-ngc1579-20251123-29/#respond</comments>
		
		<dc:creator><![CDATA[minmin]]></dc:creator>
		<pubDate>Fri, 17 Apr 2026 11:49:58 +0000</pubDate>
				<category><![CDATA[NGC天体]]></category>
		<category><![CDATA[画像処理]]></category>
		<guid isPermaLink="false">https://globe3.ddns.net/wp/?p=3178</guid>

					<description><![CDATA[2025年11月、23日、29日に撮影した銀河たちです。 IC 342 きりん座に位置する銀河。 Name: IC 342Date: 2025-11-23 T01-54SQM: 21.64 mag/arcsec2 (Ya [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">2025年11月、23日、29日に撮影した銀河たちです。</p>



<h2 class="wp-block-heading">IC 342</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_800_recomposition.jpg" alt="" class="wp-image-3195" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">きりん座に位置する銀河。</p>



<p class="wp-block-paragraph">Name: IC 342<br>Date: 2025-11-23 T01-54<br>SQM: 21.64 mag/arcsec<sup>2</sup> (Yamanashi)<br>Optics: Takahashi TS-160, HEUIB-II<br>Camera: ASI533MC Pro, gain 100, offset 20, -15degrees<br>Exposure: 180s x 25 (total 1h15m)<br>Mount: 160jp, Althiba3, off-axis guide, INDI Library, PHD2<br>Processing: Siril 1.5 beta, VeraLux Nox<br>Star Processing Python script, etc: Aberrations Remover, Cosmic Clarity Sharpen (Stel_amt=0.32, Nstel_str=3), SyQon Starless<br>Galaxy Processing Python script, etc: GraXpert (Strength=90, PSF Size =4.1), Cosmetic Correction, SyQon Prism (Strength=64%, Target median=0.15) , SyQon Starless, Wavelet, SyQon Prism (Strength=64%, Target median=0.00) HT, GHS</p>



<p class="wp-block-paragraph">下の画像は、広がっている銀河の腕を強調した処理を行いました。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_GHS-b_800_recomposition.jpg" alt="" class="wp-image-3469" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_GHS-b_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_GHS-b_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_GHS-b_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_GHS-b_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">GHSとWavelet, ノイズ除去の違いが下画像、左右にはあります。</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-7387b849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_GHS-b_800_recomposition.jpg" alt="" class="wp-image-3469" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_GHS-b_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_GHS-b_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_GHS-b_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_GHS-b_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_800_recomposition.jpg" alt="" class="wp-image-3195" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/IC342_HEUIB-II_2025-11-23T01-54_1h15m_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>
</div>
</div>



<h2 class="wp-block-heading">NGC 2146, NGC 2146A</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC2146A_HEUIB-II_1h06m_2025-11-23T03-26_800_recomposition.jpg" alt="" class="wp-image-3190" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC2146A_HEUIB-II_1h06m_2025-11-23T03-26_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC2146A_HEUIB-II_1h06m_2025-11-23T03-26_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC2146A_HEUIB-II_1h06m_2025-11-23T03-26_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC2146A_HEUIB-II_1h06m_2025-11-23T03-26_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">きりん座に位置する銀河。近くを通った銀河により、腕が曲げられたそうです。<br>興味深い形をしています。さらに露出時間を重ねたいです。</p>



<p class="wp-block-paragraph">Name: NGC 2146<br>Date: 2025-11-23 T03-26<br>SQM: 21.64 mag/arcsec<sup>2</sup> (Yamanashi)<br>Optics: Takahashi TS-160, HEUIB-II<br>Camera: ASI533MC Pro, gain 100, offset 20, -15degrees<br>Exposure: 180s x 22 (total 1h06m)<br>Mount: 160jp, Althiba3, off-axis guide, INDI Library, PHD2<br>Processing: Siril 1.5 beta, VeraLux Nox<br>Star Processing Python script: Aberrations Remover, Cosmic Clarity Sharpen (Stel_amt=0.32, Nstel_str=3), SyQon Starless<br>Galaxy Processing Python script: SyQon Prism (Strength=64%, Target median=0.140) , GraXpert, SyQon Starless<br>Siril Filters: Cosmetic Correction, À Trous Wavelets Transform, Contrast-Limited Adaptive Histogram Equalization (CLAHE)</p>



<h2 class="wp-block-heading">NGC 1579</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC_1579_Light_HEUIB-II_4h09m_2025-11-29_800_recomposition.jpg" alt="" class="wp-image-3193" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC_1579_Light_HEUIB-II_4h09m_2025-11-29_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC_1579_Light_HEUIB-II_4h09m_2025-11-29_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC_1579_Light_HEUIB-II_4h09m_2025-11-29_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC_1579_Light_HEUIB-II_4h09m_2025-11-29_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">ペルセウス座にある星雲です。別名は、&#8221;Northern Trifid&#8221;<br>広がっている星雲を強調する処理を行いました。</p>



<p class="wp-block-paragraph">Name: NGC 1579<br>Date: 2025-11-29 T00-59<br>SQM: 21.64 mag/arcsec<sup>2</sup> (Yamanashi)<br>Optics: Takahashi TS-160, HEUIB-II<br>Camera: ASI533MC Pro, gain 100, offset 20, -15degrees<br>Exposure: 180s x 83 (total 4h09m)<br>Mount: 160jp, Althiba3, off-axis guide, INDI Library, PHD2<br>Processing: Siril 1.5 beta, VeraLux Nox<br>Star Processing Python script: Aberrations Remover, Cosmic Clarity Sharpen (Stel_amt=0.32, Nstel_str=3), SyQon Starless<br>Galaxy Processing Python script: SyQon Prism (Strength=64%, Target median=0.140) , GraXpert, SyQon Starless<br>Siril Filters: Cosmetic Correction, À Trous Wavelets Transform, Contrast-Limited Adaptive Histogram Equalization (CLAHE)</p>



<h2 class="wp-block-heading">Siril 画像処理</h2>



<p class="wp-block-paragraph">Siril 1.5 betaを使って画像処理します。</p>



<ul id="block-38592a4e-9105-41a4-b0a4-204e6907d0bc" class="wp-block-list">
<li>Background Extraction: VeraLux Nox</li>



<li>SPCC (Gaia Spectrum: G2Vなど)</li>



<li>別名でファイル保存
<ul class="wp-block-list">
<li>恒星処理
<ul class="wp-block-list">
<li>Desaturate Stars: 必要に応じて</li>



<li>Aberrations Remover: 必要に応じて</li>



<li>Deconvolution: Cosmic Clarity Sharpening, Stellar Only (Stel_amt=0.32, Nstel_str=3)</li>



<li>SyQon Starless</li>
</ul>
</li>



<li>銀河星雲処理
<ul class="wp-block-list">
<li>Deconvolution:  GraXpert</li>



<li>Cosmetic Correction</li>



<li>ノイズ除去 : SyQon Prism</li>



<li>SyQon Starless</li>



<li>Wavelet</li>



<li>ノイズ除去 : SyQon Prism</li>



<li>ストレッチ：GHS</li>



<li>色補正: LCh色空間: VeraLux Vectra</li>
</ul>
</li>
</ul>
</li>



<li>Star recomposition</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://globe3.ddns.net/wp/ic342-ngc2146-ngc1579-20251123-29/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>NGC 691 Group</title>
		<link>https://globe3.ddns.net/wp/ngc-691-group/</link>
					<comments>https://globe3.ddns.net/wp/ngc-691-group/#respond</comments>
		
		<dc:creator><![CDATA[minmin]]></dc:creator>
		<pubDate>Mon, 13 Apr 2026 04:37:02 +0000</pubDate>
				<category><![CDATA[NGC天体]]></category>
		<category><![CDATA[Siril]]></category>
		<category><![CDATA[画像処理]]></category>
		<guid isPermaLink="false">https://globe3.ddns.net/wp/?p=3173</guid>

					<description><![CDATA[左側から、S字の様な IC167、複数のリングを持つ NGC 691、楕円銀河の NGC 680、腕が歪む NGC 678 それぞれ違った形の銀河が4つ、まとまった姿が面白く、撮影しました。右側の2つの銀河、楕円銀河NG [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="800" height="800" src="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC691-Group_HEUIB-II_4h00m_2025-11-22_2025-11-28_800_recomposition.jpg" alt="" class="wp-image-3174" srcset="https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC691-Group_HEUIB-II_4h00m_2025-11-22_2025-11-28_800_recomposition.jpg 800w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC691-Group_HEUIB-II_4h00m_2025-11-22_2025-11-28_800_recomposition-300x300.jpg 300w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC691-Group_HEUIB-II_4h00m_2025-11-22_2025-11-28_800_recomposition-150x150.jpg 150w, https://globe3.ddns.net/wp/wp-content/uploads/2026/04/NGC691-Group_HEUIB-II_4h00m_2025-11-22_2025-11-28_800_recomposition-768x768.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">左側から、S字の様な IC167、複数のリングを持つ NGC 691、楕円銀河の NGC 680、腕が歪む NGC 678</p>



<p class="wp-block-paragraph">それぞれ違った形の銀河が4つ、まとまった姿が面白く、撮影しました。<br>右側の2つの銀河、楕円銀河NGC 680、腕が歪むNGC 678は重力の影響を及ぼし合っているようです。</p>



<p class="wp-block-paragraph">Name: NGC 691 group<br>Date: 2025-11-22 T21-59, 2025-11-28 T23-39<br>SQM: 21.64 mag/arcsec<sup>2</sup> (Yamanashi)<br>Optics: Takahashi TS-160, HEUIB-II<br>Camera: ASI533MC Pro, gain 100, offset 20, -15degrees<br>Exposure: 180s x 80 (total 4h00m)<br>Mount: 160jp, Althiba3, off-axis guide, INDI Library, PHD2<br>Processing: Siril 1.5 beta, VeraLux Nox<br>Star Processing Python script: Aberrations Remover, Cosmic Clarity Sharpen, SyQon Starless<br>Galaxy Processing Python script: SyQon Prism, GraXpert, SyQon Starless</p>



<h2 class="wp-block-heading">Siril 画像処理</h2>



<ul id="block-38592a4e-9105-41a4-b0a4-204e6907d0bc" class="wp-block-list">
<li>Siril 1.5 bata</li>



<li>Background Extraction: VeraLux Nox</li>



<li>SPCC (Gaia Spectrum: G2Vなど)</li>



<li>別名でファイル保存
<ul class="wp-block-list">
<li>恒星処理
<ul class="wp-block-list">
<li>Desaturate Stars: 必要に応じて</li>



<li>Aberrations Remover: 必要に応じて</li>



<li>Deconvolution: Cosmic Clarity Sharpening, Stellar Only (Stel_amt=0.32, Nstel_str=3)</li>



<li>SyQon Starless</li>
</ul>
</li>



<li>銀河星雲処理
<ul class="wp-block-list">
<li>ノイズ除去 : SyQon Prism</li>



<li>Deconvolution: Cosmic Clarity Sharpening, Non-Stellar Only. 若しくは GraXpert</li>



<li>SyQon Starless</li>



<li>ストレッチ（GHS）</li>
</ul>
</li>
</ul>
</li>



<li>Star recomposition</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://globe3.ddns.net/wp/ngc-691-group/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
