私の備忘録がないわね...私の...

画像処理とかプログラミングのお話。

2022-01-01から1年間の記事一覧

matplotlibでbmやboldsymbolを使う

各versionは以下の通り. Python 3.8.13 matplotlib 3.6.2 Latex環境の構築 apt-get install texlive texlive-latex-extra texlive-fonts-recommended dvipng cm-super pip3 install latex bmを使う場合のコード例. import matplotlib.pyplot as plt plt.rcPa…

CUDA と PyTorch 公式 Docker Image の相性が悪いとき

PyTorch で GPU を扱うとき, PyTorch 公式 Docker Image を使用しているかもしれません. FROM pytorch/pytorch:1.9.1-cuda11.1-cudnn8-devel ほとんどの場合, 大丈夫なのですが, 稀に以下のエラーに遭遇することがあります. docker: Error response from dae…

点と超平面の最小 lp 距離

解法 1 (そのまま) p = 1 のとき p = ∞ のとき 解法 2 (ラグランジュの未定乗数法) 解法 3 (Holder の不等式) 「点と直線の距離」やその多次元拡張である「点と超平面の距離」は高校数学的な解法, 例えば連立方程式やベクトルで解くことが出来るポピュラーな…

AutoAttack[日本語まとめ]

基本情報 Abstract (概要) Introduction (導入) Adversarial examples and PGD (敵対的画像とPGD) Auto-PGD: A budget-aware step size-free variant of PGD (Auto-PGD: step size を選ぶ必要がない PGD の変種) Gradient step (勾配計算による敵対的画像の…

Hierarchical Adversarial Robustness

Improving Hierarchical Adversarial Robustness of Deep Neural Networks [Ma+, arXiv20] Huawei Intern で書かれた論文. 2021/2/17 [arXiv] 簡単のため, 以下のような略語を使用する. AE: Adversarial Examples AA: Adversarial Attack clean: AAを受けて…