🦋
Gunlukler
  • Gunlukler
  • 📅21 Jan
  • 📅22 Jan
  • 📅7 Feb
    • 🔗Linking App to MLKit
  • 📅20 Feb
  • 📅1 Mar
  • 📅22 Mar
  • 📅19 Apr
  • 📅20 Apr
    • 🔒BAG sunumu
  • 🌸Bahar
  • 💬NLP
    • 🙌🏻 Handling texts
  • 📚Coursera
Powered by GitBook
On this page
  • 📝 Hızlı Notlar
  • 🥦 Conda işlemleri
  • 🔽 Models reposunu indirmek
  • 📦 Paketleri Kurmak
  • 👩‍🔬 Kurulum Testi
  • ▶️
  • 👮‍♀️ Evaluation
  • 🚀 Export
  • 🔃 Dönüştür
  • 🐞 Hata

Was this helpful?

22 Mar

Previous1 MarNext19 Apr

Last updated 5 years ago

Was this helpful?

📝 Hızlı Notlar

  • Object Detection API daha TF 2'ye çevrilmediğinden dolayı TF 1 kullanacağız gibi 🙄

  • TF, Python 3.8 ile çalışmıyor 🙄

🥦 Conda işlemleri

conda create -n tf1 python=3.7
conda activate tf1
conda install tensorflow-gpu=1.15 pillow Cython lxml jupyter matplotlib
conda install -c anaconda protobuf

🔽 Models reposunu indirmek

git clone https://github.com/tensorflow/models.git
cd models
(tf1) E:\models\research>for /f %i in ('dir /b object_detection\protos\*.proto') ^do protoc object_detection\protos\%i --python_out=.

📦 Paketleri Kurmak

(tf1) E:\models\research>python setup.py build
(tf1) E:\models\research>python setup.py install
(tf1) E:\models\research>set PYTHONPATH=%PYTHONPATH%;%TENSORFLOW%\models\research;^%TENSORFLOW%\models\research\slim;^%TENSORFLOW%\models\research\object_detection

👩‍🔬 Kurulum Testi

(tf1) E:\models\research>python object_detection/builders/model_builder_test.py

🎉

Ran 17 tests in 0.833s

OK (skipped=1)

▶️

python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_coco.config

👮‍♀️ Evaluation

python E:\models\research\object_detection\legacy\eval.py --logtostderr --pipeline_config_path=E:\training_demo\training\ssd_mobilenet_v1_coco.config --checkpoint_dir=E:\training_demo\training --eval_dir=eval
python E:\models\research\object_detection\model_main.py --alsologtostderr --run_once --checkpoint_dir=E:\training_demo\training --model_dir=eval --pipeline_config_path=E:\training_demo\training\ssd_mobilenet_v1_coco.config

🚀 Export

python export_inference_graph.py --input_type image_tensor --pipeline_config_path E:/training_demo/training/ssd_mobilenet_v1_coco.config --trained_checkpoint_prefix E:/training_demo/training/model.ckpt-16438 --output_directory E:/training_demo/inference/output_inference_graph_v1.pb

🔃 Dönüştür

saved_model_cli show --dir E:\training_demo\inference\output_inference_graph_v1.pb\saved_model  --tag_set serve --signature_def serving_default

🐞 Hata

ModuleNotFoundError: No module named 'nets'
(tf1) E:\models\research>set PYTHONPATH=E:\models\research;E:\models\research\slim

: batch_size'ı azalt 🚀

📅
Benzer issue 👀
LossTensor is inf or nan. : Tensor had NaN values
Lite modül hatası
The following classes have no ground truth examples