のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

2018-10-01から1ヶ月間の記事一覧

gan 講義 lecture

speech.ee.ntu.edu.tw李宏毅 - GAN (不是髒話) - 2017 台灣人工智慧年會-人工智慧.智慧台灣

Pix2pixを読む train

https://github.com/phillipi/pix2pix/blob/master/train.lua -- usage example: DATA_ROOT=/path/to/data/ which_direction=BtoA name=expt1 th train.lua -- -- code derived from https://github.com/soumith/dcgan.torch -- >|lua| require 'torch' requ…

RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb

!python main.py 64 64 --backend tensorflow --nb_epoch 10Using TensorFlow backend. RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb ImportError: numpy.core.multiarray failed to import ImportError: numpy…

InvalidArgumentError: Input to reshape is a tensor with 3200 values, but the requested shape requires a multiple of 49

VAEのもとのソースをgoogle colabで実行したら、以下のようなエラーがでた。 for i in range(30000): batch = [np.reshape(b, [28, 28]) for b in mnist.train.next_batch(batch_size=batch_size)[0]] sess.run(optimizer, feed_dict = {X_in: batch, Y: bat…

fast.ai machine learning note

medium.comhackernoon.comFast.ai Machine Learning Lesson 1 | Kaggle

TypeError: read_feather() got an unexpected keyword argument 'nthreads'

df_raw = pd.read_feather('tmp/bulldozers-raw')--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-62-54f538a9be00> in <module>() ----> 1 df_raw = pd.read_feather('tmp/bulldozers-raw') /usr/local/</module></ipython-input-62-54f538a9be00>…

python pandas tail().T

tail()したものを、転置していた。

google colab

qiita.com

fastai

from fastai.imports import * from fastai.structured import * from pandas_summary import DataFrameSummary from sklearn.ensemble import RandomForestRegressor, RandomForestClassifier from IPython.display import display from sklearn import met…

google colabでfast aiを実行する

fastaiがv1.0になったので、古いのを実行するには、0.7を入れる必要がある。 新しいv1.0はtorchのバージョンが違うようだ。pip install fastai==0.7.0 github.com note.mu forums.fast.ai

pep425tags

import pip._internal; print(pip._internal.pep425tags.get_supported())[('cp36', 'cp36m', 'manylinux1_x86_64'), ('cp36', 'cp36m', 'linux_x86_64'), ('cp36', 'abi3', 'manylinux1_x86_64'), ('cp36', 'abi3', 'linux_x86_64'), ('cp36', 'none', 'man…

google colabでfast aiを実行する

Fast.ai Install on Google Colab · GitHub fastai_in_colab/Using_Google_Colab_for_Fastai.ipynb at master · none53/fastai_in_colab · GitHub note.mu

ImportError: cannot import name 'as_tensor'

%load_ext autoreload %autoreload 2 %matplotlib inlineThe autoreload extension is already loaded. To reload it, use: %reload_ext autoreload# Check python version import sys sys.version'3.6.3 (default, Oct 3 2017, 21:45:48) \n[GCC 7.2.0]'Req…

nn build

nnがうまくビルドできない C:\torch\install>luarocks download nn C:\torch\install>git clone git://github.com/torch/nn.git Cloning into 'nn'... remote: Enumerating objects: 7662, done. remote: Total 7662 (delta 0), reused 0 (delta 0), pack-re…

luarocks

C:\torch\install>.\luarocks install nn

"torch"を"windows 10"の "visual studio 2017"でビルドしてみる(その4)

C:\torch\install>.\luarocks download luaffi C:\torch\install>git clone git://github.com/facebook/luaffifb.git Cloning into 'luaffifb'... remote: Enumerating objects: 963, done. remote: Total 963 (delta 0), reused 0 (delta 0), pack-reused 9…

"torch"を"windows 10"の "visual studio 2017"でビルドしてみる(その3)

Lapack library not found in compile time C:\torch\install\torch7>luajit LuaJIT 2.0.4 -- Copyright (C) 2005-2017 Mike Pall. http://luajit.org/ _____ _ |_ _| | | | | ___ _ __ ___| |__ | |/ _ \| '__/ __| '_ \ | | (_) | | | (__| | | | \_/\___/…

"torch"を"windows 10"の "visual studio 2017"でビルドしてみる(その2)

qiita.com luarocks download torchgit clone git://github.com/torch/torch7.git cd torch7 luarocks make ../torch-scm-1.rockspec********************************************************************** ** Visual Studio 2017 Developer Command Prom…

"torch"を"windows 10"の "visual studio 2017"でビルドしてみる(その1)

git clone https://github.com/torch/luajit-rocks.git cd luajit-rocks mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=X:/torch/install -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release nmake cmake -DCMAKE_INSTALL_PREFIX=X:/torch/install -…

ubuntu torch

ensekitt.hatenablog.com

lua path

lua

Lua 5.3.1 Copyright (C) 1994-2015 Lua.org, PUC-Rio > print(package.cpath) /usr/local/lib/lua/5.3/?.so; /usr/lib/x86_64-linux-gnu/lua/5.3/?.so; /usr/lib/lua/5.3/?.so; /usr/local/lib/lua/5.3/loadall.so;./?.so > print(package.path) /usr/local…

lua class定義

lua

-- define some dummy B class, inheriting from A local B = class('B', 'A')github.com