Pytorchでのログの取り方
![Thumbnail of post image 019](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/erik-dungan-MQyCrJVFG8U-unsplash.jpg?resize=150%2C150&ssl=1)
学習しているとエポックごとの誤差やテストデータセットでのF1 scoreなどを継続的に記録したいと思うことがある.
こんなときにはwriter.add_scalarを使うのが良い.
下記にサンプルコードを載せる ...
Tensorflowをpipでインストールするときのエラー
![Thumbnail of post image 027](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/brooke-lark-HlNcigvUi4Q-unsplash.jpg?resize=150%2C150&ssl=1)
pip install tensorflow
を実行した際,
ERROR: Could not find a version that satisfies the requirement tensorflow
ELECTRAをTPUで事前学習 [GCP]
![Thumbnail of post image 178](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/sambazon-qfIVXu7nxGU-unsplash.jpg?resize=150%2C150&ssl=1)
GCP経由でTPUを利用することによって,ELECTRAの事前学習を実行する方法を紹介.
必要なサービスCompute EngineCloud TPU
Cloud Storage
手順Cloud Shell ...
BERTのpre-trainingを実行 [2020/9版]
![Thumbnail of post image 124](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/sidekix-media-FsgWEVacLU-unsplash.jpg?resize=150%2C150&ssl=1)
前準備
Tensorflow(GPU版)をpipでインストール。pipのバージョン違いで混乱することがあるため、私はpython -m pipでインストールした。バージョンは1.15にすること。
python -m pip ins ...バージョンを指定してインストール[python][tensorflow]
![Thumbnail of post image 192](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/bram-van-oost-6WvZo5FOxww-unsplash.jpg?resize=150%2C150&ssl=1)
pip install tensorflow-gpu==1.11.0
Tensorboardでログを見る時のコマンド
![Thumbnail of post image 037](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
の後,ブラウザに以下を打ち込む
RaspiにTensorflowをインストールする為に調べた情報
![Thumbnail of post image 165](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/lex-sirikiat-nV19ucDBbs8-unsplash.jpg?resize=150%2C150&ssl=1)
TensorflowがRaspiに正式に対応したようだ。
正式対応に伴い、多数のブログでインストール方法やTIPSが色々公開されている。
私もRaspi 3B+をもっているので、インストールしたいなと考えている ...
KerasがGPU版のTensorflowを使っているかを確認する方法[Keras][Tensorflow]
![Thumbnail of post image 076](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/georgia-de-lotz-muN_TndU9A0-unsplash.jpg?resize=150%2C150&ssl=1)
>>> from tensorflow.python.client import device_lib>>> print(device_lib.list_local_devices()) 2018-09- ...
TensorFlowの練習 ~ Cifar10の画像をダウンロードしCNNしてみた ~
![Thumbnail of post image 112](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/brooke-lark-HlNcigvUi4Q-unsplash.jpg?resize=150%2C150&ssl=1)
WindowsにTensorflowをインストールしたので,試しにCNNしてみた.
なお,本記事の手順は以下の記事を参考にした.
blogs.yahoo.co.jp
必要スクリプトのダウンロード以下 ...
Tensorflow1.10 + Windows10 + CUDA9.0 + cuDNN7.0.5
![Thumbnail of post image 196](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/debby-hudson-EjCS2TsPjh8-unsplash.jpg?resize=150%2C150&ssl=1)
タイトルのパッケージをインストールする手順をここに示す.
前提条件CUDA9.0とcuDNN7.05, Anacondaがすでにインストールされていることが前提.
上3つのインストール手順の説明は本記事では扱わ ...