tensorflow-hub

(1)------------------------------------------------------------ pip install tensorflow tensorflow-hubRequirement already satisfied: tensorflow in c:\users\xxxxx\anaconda3\envs\tensorflow_gpu\lib\site-packages (2.1.0)Collecting tensorflow-h…

ModuleNotFoundError: No module named 'pip'

https://bootstrap.pypa.io/get-pip.py

ImportError: DLL load failed: %1 は有効な Win32 アプリケーションではありません。

>pip install MeCabCollecting MeCab Downloading mecab-0.996.2-cp36-cp36m-win_amd64.whl (510 kB) |████████████████████████████████| 510 kB 36 kB/sInstalling collected packages: MeCabSuccessfully installed MeCab-0.996.2 **********************…

TypeError: object of type 'generator' has no len()

memo: 区切り文字で区切られた値を連結して文字列を作成するには、 str.join が最適 これにより、使用しているイテラブルの長さについて考える必要がなくなります。一般にpythonはほとんどの場合そうです。反復可能オブジェクトを反復処理する場合はfor x in…

mecab

WPy64-3820\scripts>pip install mecab Collecting mecab Downloading mecab-0.996.2-cp38-cp38-win_amd64.whl (510 kB) |████████████████████████████████| 510 kB 23 kB/sInstalling collected packages: mecabSuccessfully installed mecab-0.996.2 WPy6…

jupyter nbconvert --to python xxxx.ipynb

「xxxx.ipynb」 を 「xxxx.py」(Pythonファイル)に変換 jupyter nbconvert --to python xxxx.ipynb

sudo apt-get install ethereum

Welcome to Ubuntu 20.04 LTS (GNU/Linux 4.4.0-18362-Microsoft x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of xxx xxx xx 22:22:2…

AttributeError: 'collections.OrderedDict' object has no attribute 'state_dict'

https://github.com/Microsoft/MMdnn/blob/master/mmdnn/conversion/pytorch/README.md#faq pytorchからtensorflowへのmmconvert: 'dict'オブジェクトには属性 'state_dict'`がありません モデルには重みのみが含まれていることがわかりましたstate_dict。…

pip install onnx

test>pip install onnxCollecting onnx Downloading onnx-1.7.0-cp38-cp38-win_amd64.whl (6.8 MB) |████████████████████████████████| 6.8 MB 29 kB/sRequirement already satisfied: typing-extensions>=3.6.2.1 in d:\software\wpy64-3820\python-3.8.2.…

mmconvertのメモ

https://github.com/Microsoft/MMdnn/blob/master/mmdnn/conversion/_script/convert.py mmconvert -sf pytorch -iw aaaa -in bbbb -df onnx -om cccc.onnx -sf ・・・sauce(変換元)のframework-iw ・・・入力inputする重みfile-in ・・・入力inputするnetwo…

>pip install mmdnn >etc

test>pip install mmdnnCollecting mmdnn Downloading mmdnn-0.3.1-py2.py3-none-any.whl (318 kB) |████████████████████████████████| 318 kB 11 kB/sRequirement already satisfied: six>=1.10.0 in d:\software\wpy64-3820\python-3.8.2.amd64\lib\site-…

ITとAIについて思うこと

ITは左脳であり AIは右脳である 双方は、バランスよく共存していく関係脳であり、対立概念ではない。

pip3 install scrapy

pip3 install scrapyCollecting scrapy Downloading https://files.pythonhosted.org/packages/3b/e4/69b87d7827abf03dea2ea984230d50f347b00a7a3897bc93f6ec3dafa494/Scrapy-1.8.0-py2.py3-none-any.whl (238kB) |################################| 245kB …

pip install beautifulsoup4

pip install beautifulsoup4Collecting beautifulsoup4 Downloading https://files.pythonhosted.org/packages/cb/a1/c698cf319e9cfed6b17376281bd0efc6bfc8465698f54170ef60a485ab5d/beautifulsoup4-4.8.2-py3-none-any.whl (106kB) 100% |################…

sudo apt-get install python-virtualenv

xxxxxr@DESKTOP-xxxxxr:~$ sudo apt-get install python-virtualenvReading package lists... DoneBuilding dependency treeReading state information... DoneThe following additional packages will be installed: libpython-stdlib libpython2.7-minimal…

WSL の Ubuntu に install linux-generic build-essential

Installing, this may take a few minutes...Please create a default UNIX user account. The username does not need to match your Windows username.For more information visit: https://aka.ms/wslusersEnter new UNIX username: xxxxEnter new UNIX p…

conda install -c conda-forge opencv

(tensorflow) C:\Users\xx-xx>conda install -c conda-forge opencvCollecting package metadata (current_repodata.json): doneSolving environment: failed with current_repodata.json, will retry with next repodata source.Initial quick solve with f…

pip install --upgrade tensorflow==1.5.0

(tensorflow) C:\Users\xx-xx>pip install --upgrade tensorflow==1.5.0Collecting tensorflow==1.5.0 Downloading https://files.pythonhosted.org/packages/dd/6e/c32ea02f33ee47b74f747961f2023c189bed523bbbfdb618c719b3ccb76d/tensorflow-1.5.0-cp35-cp…

MEMO ドライバの詳細 

[xx-xx 11:37:30 2019] Update Package Execution Started[xx-xx 11:37:30 2019] Update Package Execution Started[xx-xx 11:37:30 2019] Original command line: "C:\Users\xx-xx\AppData\Local\Packages\DellInc.AlienwareCommandCenter_htrsf667h5kn2\Lo…

(nnabla) memo 003

(nnabla) C:\Users\xx-xx\MNIST>Python vae.py -c cudnn2019-xx-xx 14:58:33,963 [nnabla][INFO]: Initializing CPU extension...2019-xx-xx 14:58:34,702 [nnabla][INFO]: Running in cudnn2019-xx-xx 14:58:34,703 [nnabla][ERROR]: Extension `cudnn` doe…

(nnabla) memo 002

(nnabla) C:\Users\xxxxxxx\MNIST>Python vae.py -c cudnn2019-xx-xx 14:58:33,963 [nnabla][INFO]: Initializing CPU extension...2019-xx-xx 14:58:34,702 [nnabla][INFO]: Running in cudnn2019-xx-xx 14:58:34,703 [nnabla][ERROR]: Extension `cudnn` d…

(nnabla) memo 001

(nnabla) C:\Users\xxxxxxx>cd mnist (nnabla) C:\Users\xxxxxxx\MNIST>Python dcgan.pyTraceback (most recent call last): File "dcgan.py", line 16, in <module> from six.moves import rangeImportError: No module named 'six' (nnabla) C:\Users\xxxxxxx\MNIS</module>…

文字列→1文字ずつにカンマいれる

<script> var pi1 ="31415"var pi2 =pi1.replace(/(.)(?=.)/g,"$1,")document.write(pi2) </script>

文字列→1文字ずつのリストに

str1 = "0123456789"str2 = list(str1)print(str2)

pi =[3,1,4,1,5,9,2,6,5,3,5,8,9,7,9]picubes=[x**3 for x in pi]print(picubes)

pi =[3,1,4,1,5,9,2,6,5,3,5,8,9,7,9]pisquares=[x**2 for x in pi]print(pisquares)

さっきのを今度はJSで反転して元に戻してみる

<script> function hanten(p) {return p.split("").reverse().join("")} console.log(hanten("6712483595162964564471389651995548562"));document.write(hanten("612961845123799031836303480873397492701632806249165191")); </script>

いまの数値を分解メモ

(%i1) factor(6712483595162964564471389651995548562); (%o1) 2*13*17*59*4751*54549105912577*993199035727177 (%i2) factor(612961845123799031836303480873397492701632806249165191); (%o2) 47*61*131*9013*122149*14824333149960174181021328023188449…

反転は面白い!②

m='191561942608236107294793378084303638130997321548169216'n=m[::-1]print(n) 結果 612961845123799031836303480873397492701632806249165191

反転は面白い!①

m='2658455991569831744654692615953842176'n=m[::-1]print(n) 結果 6712483595162964564471389651995548562