Skip to content

Commit

Permalink
import re (#9535)
Browse files Browse the repository at this point in the history
* import re

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
glenn-jocher and pre-commit-ci[bot] committed Sep 21, 2022
1 parent 6f02847 commit 999482b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions export.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import json
import os
import platform
import re
import subprocess
import sys
import time
Expand Down Expand Up @@ -427,8 +428,6 @@ def export_edgetpu(file, prefix=colorstr('Edge TPU:')):
def export_tfjs(file, prefix=colorstr('TensorFlow.js:')):
# YOLOv5 TensorFlow.js export
check_requirements('tensorflowjs')
import re

import tensorflowjs as tfjs

LOGGER.info(f'\n{prefix} starting export with tensorflowjs {tfjs.__version__}...')
Expand Down

0 comments on commit 999482b

Please sign in to comment.