TensorFlow 모델 최적화 시작하기
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
1. 작업에 가장 적합한 모델 선택하기
작업에 따라 모델 복잡성과 크기 간에 균형을 맞춰야 합니다. 작업에 높은 정확성이 필요한 경우, 크고 복잡한 모델이 필요할 수 있습니다. 정밀도가 낮은 작업의 경우, 디스크 공간과 메모리를 적게 사용할 뿐만 아니라 일반적으로 더 빠르고 에너지 효율적이기 때문에 더 작은 모델을 사용하는 것이 좋습니다.
2. 사전 최적화된 모델
기존 TensorFlow Lite 사전 최적화 모델이 애플리케이션에 필요한 효율성을 제공하는지 확인하세요.
3. 훈련 후 도구
애플리케이션에 사전 훈련된 모델을 사용할 수 없는 경우, TensorFlow Lite 변환 중에 TensorFlow Lite 훈련 후 양자화 도구를 사용해보세요. 이미 훈련된 TensorFlow 모델을 최적화할 수 있습니다.
자세한 내용은 훈련 후 양자화 튜토리얼을 참조하세요.
다음 단계: 훈련 시간 도구
위의 간단한 솔루션이 사용자의 요구를 충족하지 못하는 경우, 훈련 시간 최적화 기술을 포함해야 할 수 있습니다. 훈련 시간 도구를 사용하여 더 최적화하고 더 깊이 알아보세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2021-01-15(UTC)
[null,null,["최종 업데이트: 2021-01-15(UTC)"],[],[],null,["# Get started with TensorFlow model optimization\n\n\u003cbr /\u003e\n\n1. Choose the best model for the task\n-------------------------------------\n\nDepending on the task, you will need to make a tradeoff between model complexity\nand size. If your task requires high accuracy, then you may need a large and\ncomplex model. For tasks that require less precision, it is better to use a\nsmaller model because they not only use less disk space and memory, but they are\nalso generally faster and more energy efficient.\n\n2. Pre-optimized models\n-----------------------\n\nSee if any existing\n[TensorFlow Lite pre-optimized models](https://www.tensorflow.org/lite/models)\nprovide the efficiency required by your application.\n\n3. Post-training tooling\n------------------------\n\nIf you cannot use a pre-trained model for your application, try using\n[TensorFlow Lite post-training quantization tools](./quantization/post_training)\nduring [TensorFlow Lite conversion](https://www.tensorflow.org/lite/convert),\nwhich can optimize your already-trained TensorFlow model.\n\nSee the\n[post-training quantization tutorial](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/performance/post_training_quant.ipynb)\nto learn more.\n\nNext steps: Training-time tooling\n---------------------------------\n\nIf the above simple solutions don't satisfy your needs, you may need to involve\ntraining-time optimization techniques.\n[Optimize further](/model_optimization/guide/optimize_further) with our training-time tools and dig\ndeeper."]]