未分類」カテゴリーアーカイブ

SeeStar first light

SeeStarの仕様

  • センサー:IMX462
    サイズ:142 X 129 X 257mm
    対物レンズ:50mm3枚玉アポクロマート
    焦点距離:246mm
    焦点距離:F4.9
    重量:3kg
    バッテリー内蔵:6時間駆動

SeeStarで各30分のスタック後、簡易な画像処理(ステライメージでレベル調整、トーンカーブ調整)

M1
IC443

gphoto2でカメラ制御

NIKON Coolpix P950

~$ gphoto2 –list-config
/main/actions/bulb
/main/actions/autofocusdrive
/main/actions/changeafarea
/main/actions/controlmode
/main/actions/viewfinder
/main/actions/opcode
/main/settings/datetime
/main/settings/thumbsize
/main/settings/fastfs
/main/settings/capturetarget
/main/settings/autofocus
/main/status/serialnumber
/main/status/manufacturer
/main/status/cameramodel
/main/status/deviceversion
/main/status/vendorextension
/main/status/batterylevel
/main/status/availableshots
/main/status/minfocallength
/main/status/maxfocallength
/main/status/liveviewprohibit
/main/imgsettings/iso
/main/capturesettings/exposurecompensation
/main/capturesettings/f-number
/main/capturesettings/focallength
/main/capturesettings/focusmode
/main/capturesettings/expprogram
/main/capturesettings/capturemode
/main/capturesettings/shutterspeed2
/main/capturesettings/liveviewafmode

cuda対応のtorchをインストール

ubuntu22.04へ非推奨のcuda11.6をインストール

$ sudo apt install --no-install-recommends nvidia-driver-510
$ sudo apt install nvidia-prime
$ sudo apt install nvidia-cuda-toolkit

https://stackoverflow.com/questions/70340812/how-to-install-pytorch-with-cuda-support-with-pip-in-visual-studio

python
Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.__version__)
1.13.1+cpu

---------------------------
> nvidia-smi
Sat Mar 11 11:43:37 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.06       Driver Version: 510.06       CUDA Version: 11.6     |
|-------------------------------+----------------------+----------------------+


pip3 install torch==1.13.1+cu116  -f https://download.pytorch.org/whl/cu116/torch_stable.html

> pip3 install torch==1.13.1+cu116  -f https://download.pytorch.org/whl/cu116/torch_stable.html
Looking in links: https://download.pytorch.org/whl/cu116/torch_stable.html
Collecting torch==1.13.1+cu116
  Downloading https://download.pytorch.org/whl/cu116/torch-1.13.1%2Bcu116-cp39-cp39-win_amd64.whl (2434.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 GB 562.9 kB/s eta 0:00:00
Requirement already satisfied: typing-extensions in c:\users\ei2k-\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from torch==1.13.1+cu116) (4.0.1)
Installing collected packages: torch
  Attempting uninstall: torch
    Found existing installation: torch 1.13.1
    Uninstalling torch-1.13.1:
      Successfully uninstalled torch-1.13.1
Successfully installed torch-1.13.1+cu116
PS C:\Users\ei2k-> python
Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.__version__)
1.13.1+cu116
>>>

Windowsの基本機能だけでクローンを作成する方法

https://www.youtube.com/watch?v=-1a0c9ELmCA

事前準備:

diskのデフラグ
diskを右クリックし、ツールメニューから
diskの縮小
 disk管理ツールで縮小
回復ドライブの削除
 管理者権限でcmd
 diskpert 実行
 list disk
 select disk 0
 list partition 回復パーティションを確認
 select partition 3 回復パーティションを選択
 delete partiotion override 削除

システムイメージのバックアップ
 control パネルバックアップと復元

 システムイメージの作成
フォーマット済のNTFS/GPT SSDをPCへ組み込む
システムイメージを格納したHDD(USB接続)を接続し、インストールUSBから起動
 コンピュータを修復する
 トラブルシューティングを選択
 イメージでシステムを回復を選択
 目的のOS選択
イメージバックアップの選択 =>外付けのHDDを選択

量子コンピューター関連リンク

** シミュレータを作りながら量子コンピュータの仕組みを理解する
https://qiita.com/ohtaman/items/e121a2b0b4525b85b54d

WSL2の環境でAdafruit FT232H Breakoutを利用する

Adafruit FT232H Breakoutを使うことで、USB I/F経由でGPIO/I2C/SPIの機能を利用できるようになります。WSL2上のUbuntu22.02で、Adafruit FT232H Breakoutを動かしてみました。

準備:WSL2でUSBデバイスを利用するには、あらかじめWindows側での準備が必要です。

STEP1 usbipdのインストール

Windows 管理者として次を実行

>winget install –interactive –exact dorssel.usbipd-win

インストールしたらWindowsを再起動

WSLで次を実行

sudo apt install linux-tools-virtual hwdata
sudo update-alternatives --install /usr/local/bin/usbip usbip `ls /usr/lib/linux-tools/*/usbip | tail -n1` 20

STEP2 Adafruit FT232H BreakoutのWindows driverをインストール

FT232H を接続してUSB Seria Converterの認識を確認。

>usbipd wsl list
BUSID  VID:PID    DEVICE                                                        STATE
1-2    1ea7:0066  USB 入力デバイス                                              Not attached
1-3    0403:6014  USB Serial Converter                                          Not attached

STEP3 USB Seria ConverterをWSL側へ接続する。管理者権限で次を実行