Add TensorFlow formats to `export.py` (#4479)
* Initial commit
* Remove unused export_torchscript return
* ROOT variable
* Add prefix to fcn arg
* fix ROOT
* check_yaml into run()
* interim fixes
* imgsz=(320, 320)
* Hardcode tf_raw_resize False
* Finish opt elimination
* Update representative_dataset_gen()
* Update export.py with TF methods
* SiLU and GraphDef fixes
* file_size() directory handling feature
* export fixes
* add lambda: to representative_dataset
* Detect training False default
* Fuse false for TF models
* Embed agnostic NMS arguments
* Remove lambda
* TensorFlow.js export success
* Add pb to Usage
* Add *_tfjs_model/ to ignore files
* prepend YOLOv5 to function headers
* Remove end --- comments
* parameterize tfjs export pb file
* update run() data default /ROOT
* update --include help
* update imports
* return ct_model
* Consolidate TFLite export
* pb prerequisite to tfjs
* TF modules CamelCase
* Remove exports from tf.py and cleanup
* pass agnostic NMS arguments
* CI
* CI
* ignore *_web_model/
* Add tensorflow to CI dependencies
* CI tensorflow-cpu
* Update requirements.txt
* Remove tensorflow check_requirement
* CI coreml tfjs
* export only onnx torchscript
* reorder exports torchscript first
正在显示
差异被折叠。
差异被折叠。
| # pip install -r requirements.txt | ||
| # base ---------------------------------------- | ||
| # Base ---------------------------------------- | ||
| matplotlib>=3.2.2 | ||
| numpy>=1.18.5 | ||
| opencv-python>=4.1.2 | ||
| ... | ... | @@ -11,21 +11,23 @@ torch>=1.7.0 |
| torchvision>=0.8.1 | ||
| tqdm>=4.41.0 | ||
| # logging ------------------------------------- | ||
| # Logging ------------------------------------- | ||
| tensorboard>=2.4.1 | ||
| # wandb | ||
| # plotting ------------------------------------ | ||
| # Plotting ------------------------------------ | ||
| seaborn>=0.11.0 | ||
| pandas | ||
| # export -------------------------------------- | ||
| # coremltools>=4.1 | ||
| # onnx>=1.9.0 | ||
| # scikit-learn==0.19.2 # for coreml quantization | ||
| # tensorflow==2.4.1 # for TFLite export | ||
| # Export -------------------------------------- | ||
| # coremltools>=4.1 # CoreML export | ||
| # onnx>=1.9.0 # ONNX export | ||
| # onnx-simplifier>=0.3.6 # ONNX simplifier | ||
| # scikit-learn==0.19.2 # CoreML quantization | ||
| # tensorflow>=2.4.1 # TFLite export | ||
| # tensorflowjs>=3.9.0 # TF.js export | ||
| # extras -------------------------------------- | ||
| # Extras -------------------------------------- | ||
| # Cython # for pycocotools https://github.com/cocodataset/cocoapi/issues/172 | ||
| # pycocotools>=2.0 # COCO mAP | ||
| # albumentations>=1.0.3 | ||
| ... | ... |
请
注册
或者
登录
后发表评论