daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  Открываем терминал из папки venv
  2. .  bin/activate
  3. IMAGE_SIZE=224
  4. ARCHITECTURE="mobilenet_0.50_${IMAGE_SIZE}"
  5.  
  6.  \\Открываем новый терминал
  7.  
  8. . bin/activate
  9. tensorboard --logdir tf_files/training_summaries &   (NEW TERMINAL)
  10.  
  11.  \\Возвращаемся к первому терминалу
  12. cd ..
  13. cd tensorflow-for-poets-2
  14. \\Следующая команда для обчения
  15.  
  16. python -m scripts.retrain \
  17.   --bottleneck_dir=tf_files/bottlenecks \
  18.   --how_many_training_steps=500 \
  19.   --model_dir=tf_files/models/ \
  20.   --summaries_dir=tf_files/training_summaries/"${ARCHITECTURE}" \
  21.   --output_graph=tf_files/retrained_graph.pb \
  22.   --output_labels=tf_files/retrained_labels.txt \
  23.   --architecture="${ARCHITECTURE}" \
  24.   --image_dir=tf_files/flower_photos
  25.  
  26.  \\Проверка выбранного изображения
  27.  
  28. python -m scripts.label_image \
  29.     --graph=tf_files/retrained_graph.pb  \
  30.     --image=tf_files/flower_photos/daisy/21652746_cc379e0eea_m.jpg
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top