EC2インスタンスのストレージ増設方法
![Thumbnail of post image 053](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/lex-sirikiat-nV19ucDBbs8-unsplash.jpg?resize=150%2C150&ssl=1)
手順としては大まかに2つあり, ひとつはAWS マネジメントコンソール上でストレージをアタッチすること, もうひとつが任意のフォルダにストレージをマウントすることである.
では早速手順にはいる.
EC2 Man ...
shutil.copyfileでpermission deniedがでたときは引数を見直そう[Python][shutil]
![Thumbnail of post image 097](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/bram-van-oost-6WvZo5FOxww-unsplash.jpg?resize=150%2C150&ssl=1)
Windowsでファイルをあるフォルダへコピーするコードを書いた際,以下のエラーがでた.
import shutilpath1 = r"C:\Users\hoge\Documents\hoge\hoge.pdf"path2 = ...Pytorch v0.4のコードをv0.3で動かす際には.dataに注意[Pytorch]
![Thumbnail of post image 015](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/taylor-heery-71sp4JBYO-U-unsplash-2.jpg?resize=150%2C150&ssl=1)
Pytorchのコードを見ているとミニバッチごとのlossやaccuracyを計算する際、.dataを用いて値を取り出されることが頻繁にある。
よくある例:
for i in range(0, 2 * POS_NEG ...pythonでグラフデータベースを構築[Python][GraphDataBase][Neo4j]
![Thumbnail of post image 110](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/samuel-yongbo-kwon-wrQsfMKwElI-unsplash.jpg?resize=150%2C150&ssl=1)
本記事では、グラフデータベースNeo4jを用いて、簡単なグラフをpythonで記述する方法を紹介。
まずはNeo4jのインストールから済ませよう
vastee.hatenablog.com
Neo4 ...
フォルダ内のファイルを階層ごとに表示するtreeコマンドの紹介[Windows]
![Thumbnail of post image 110](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/georgia-de-lotz-muN_TndU9A0-unsplash.jpg?resize=150%2C150&ssl=1)
階層表示したいフォルダでShift+右クリックし,PowerShellウィンドウをここに開くをクリック.
以下のtreeコマンドに引数/fをつけて入力
tree/f例
C:.└─data├─test│ ├ ...別々のフォルダに散らばって保存されたファイルを1つにまとめる[Python]
![Thumbnail of post image 013](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/georgia-de-lotz-muN_TndU9A0-unsplash.jpg?resize=150%2C150&ssl=1)
└─data├─test│ ├─0│ │ train_0000010.tif│ │ train_0000011.tif│ │ train_0000012.tif│ │ train_0000013.tif│ │ train_0000014.t ...
Tensorboardでログを見る時のコマンド
![Thumbnail of post image 026](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/debby-hudson-EjCS2TsPjh8-unsplash.jpg?resize=150%2C150&ssl=1)
tensorboard --logdir=/run/Sep23_18-03-17_hogecloud9経由の場合tensorboard --bind_all --logdir ./logs
の後,ブラウザに以下を打ち込む
Kerasで花画像の名前を当てる~検出編~[Keras][CNN][深層学習][Python]
![Thumbnail of post image 011](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/debby-hudson-hWVVtG0d8jM-unsplash.jpg?resize=150%2C150&ssl=1)
vastee.hatenablog.com
の続き
今回は学習したモデルを使って花の名前を当てるプログラムを作成する.
import numpy as npfrom keras.preprocessing ...自前で用意した花画像を使ってKerasでCNN~学習編~[Keras][CNN][深層学習][Python]
![Thumbnail of post image 054](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/sambazon-qfIVXu7nxGU-unsplash.jpg?resize=150%2C150&ssl=1)
昨今様々な深層学習ライブラリが台頭してきたことにより,最新のソースコードも様々なライブラリを用いて書かれることが大きなって来た.
この為,いつも使っているpytorch以外のライブラリも触れるようにしておかなければならない ...
Building Detection from Satellite Imagery using Ensemble of Size-specific Detectors
![Thumbnail of post image 165](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/piotr-wilk-Kc-OBw1fMJg-unsplash.jpg?resize=150%2C150&ssl=1)
CVPR2018の衛星画像コンテストで優勝した手法。コンテストのタスクは建物検知。
キモは建物の大きさ(small, medium, large)で分類したこと。
手順は非常にシンプルで、まず二値画像の正解ラベ ...