2018-10-31から1日間の記事一覧

【keras】weightの中身をみるために「RuntimeError: maximum recursion depth exceeded」と「RecursionError: cannot set the recursion limit the limit is too low」を解決

やりたいこと 画像補完のプログラムを作成しているが、学習によって作成されたweightの中にnanが混ざり込んでいてうまく画像が生成されず真っ黒の画像が出てきてしまう。 そこでweight(h5ファイル)の中身を見てどこがnanになっているか確認したい。 方針1:g…

【自分用メモ】gitで色々詰まったときにみる

自分の.gitconfig github.com 取り消す系 直前のcommitをやり直す $ git add -A $ git commit --amend -m "Commit message" git commitをやり直しする&取り消しする(「git commit --amend」と「git reset」) addを取り消す $ git reset HEAD <FILENAME> git add の取</filename>…