tensorflow で image retraining のテストした時のコマンド・ログ

自分用の覚え書きです。

pip3 install tensorflow
pip install google_images_download
pip3 install google_images_download
mkdir tensorflow
cd tensorflow/
ls
mkdir tftest
cd tftest/
ls
wget https://github.com/tensorflow/hub/blob/master/examples/image_retraining/retrain.py
mkdir photos
cd photos/
mkdir ari nashi
cd ..
python3 retrain.py --image_dir photos/
cd '/home/dyama/tensorflow/tftest' 
cat > retrain.py
rm retrain.py 
cat > retrain.py
python retrain.py --image_dir ~/flower_photos/ \
cd '/home/dyama/tensorflow/tftest' 
python retrain.py --image_dir photos/
python3 retrain.py --image_dir photos/
pip3 install tensorflow_hub
python3 retrain.py --image_dir photos/
python3 retrain.py --image_dir photos
pip install --upgrade tensorflow-hub
pip3 install --upgrade tensorflow-hub
python3 retrain.py --image_dir photos
pip3 install 'tensorflow>=2.0.0'
pip3 install "tensorflow>=1.15,<2.0"
pip3 upgrade
pip3 
pip3 install 'tensorflow>=2.0.0b1'
python3 retrain.py --image_dir photos
rm retrain.py 
wget https://raw.githubusercontent.com/tensorflow/hub/2ae328d542b8bb163056b5dc0cb109eb84d77dc8/examples/image_retraining/retrain.py
python3 retrain.py --image_dir photos
pip3 install 'tensorflow>=1.0.0b1'
pip3 install 'tensorflow>=1.0.00'
pip3 install 'tensorflow>=1.9.'
python3 retrain.py --image_dir photos
rm retrain.py 
wget https://raw.githubusercontent.com/tensorflow/hub/master/examples/image_retraining/retrain.py
python3 retrain.py --image_dir photos
pip3 search tensorflow
which pip3
which python3
sudo pip3 install tensorflow
python3 retrain.py --image_dir photos
pip3 freeze | grep -i tensor
rm retrain.py 
wget https://raw.githubusercontent.com/tensorflow/hub/master/examples/image_retraining/retrain.py
python3 retrain.py --image_dir photos
python3 retrain.py --image_dir photos/
python3 --version
sudo apt search python3
pyenv
python3 retrain.py --image_dir photos/
mv retrain.py retrain-latest.py 
wget https://raw.githubusercontent.com/tensorflow/hub/r0.1/examples/image_retraining/retrain.py
python3 retrain.py --image_dir photos/
pip2 uninstall tensorflow
pip3 uninstall tensorflow
pip3 search tensorflow
pip3 install 'tensorflow==1.9.0'
python3 retrain.py --image_dir photos/
pip3 uninstall tensorflow
pip3 install 'tensorflow==1.15.0'
pip3 install 'tensorflow==2.0.0b1'
vim retrain.py 
python3 retrain.py --image_dir photos/
vim retrain.py 
diff -u retrain*
diff -u retrain.py retrain-latest.py 
mv retrain-latest.py retrain.py
python3 retrain.py --image_dir photos/
pip3 install quantize
python3 retrain.py --image_dir photos/
pip3 install quantize
python3 retrain.py --image_dir photos/
vim retrain.py
python3 retrain.py --image_dir photos/
vim retrain.py
pip3 uninstall quantize
vim retrain.py
python3 retrain.py --image_dir photos/
ls
cd ..
tf_upgrade_v2 --intree tftest --outtree tftest2 --reportfile report.txt
ls
less report.txt 
cd tftest2
python3 retrain.py --image_dir photos/
ls
du -h
python3
ls
cd ..
cd tftest
ls
tf_upgrade_v2 --infile retrain.py --outfile retrain2.py
ls
python3 retrain2.py --image_dir photos/
vim report.txt 
ls
rm re*
ls
cd ..
rm -r tftest2/
ls
rm report.txt 
cd tftest/
ls
wget https://raw.githubusercontent.com/tensorflow/hub/v0.11.0/examples/image_retraining/retrain.py
python3 retrain2.py --image_dir photos/
python3 retrain.py --image_dir photos/
pip3 uninstall tensorflow
pip3 install 'tensorflow==1.14'
python3 retrain.py --image_dir photos/
pip3 install tensorflow==
python3 retrain.py --image_dir photos/
which pyenv
which python3
ls -l /usr/bin/python3
ls -l /usr/bin/python3.5
pyenv
pyenv versions
conda
conda list
conda
conda update
conda update --prefix /home/dyama/miniconda3 anaconda
conda create python=3.7 -y
conda create --name v37 python=3.7 -y
conda activate v37
which python3
cd '/home/dyama/tensorflow/tftest' 
file graph
tensorboard --logdir /tmp/retrain_logs/
wget https://github.com/tensorflow/tensorflow/raw/master/tensorflow/examples/label_image/label_image.py
conda
conda list
conda 
conda env
conda 
conda env list
tail -f '/home/dyama/tensorflow/tftest/log.txt' 
lll
ls -l
tailf -f '/home/dyama/tensorflow/tftest/log.txt' 
tail -f '/home/dyama/tensorflow/tftest/log.txt' 
cd ..
vim bunrui.rb
ruby bunrui.rb
ruby bunrui.rb 2>/dev/null
echo 'tensorboard --logdir /tmp/retrain_logs/' >> note 
echo 'python3 retrain.py --image_dir photos/' >> note

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください