mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
[Bug Fix] fix import error in python3.6 (#608)
fix import error in python3.6
This commit is contained in:
@@ -12,12 +12,12 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
import fastdeploy as fd
|
import fastdeploy as fd
|
||||||
import fastdeploy.utils.hub_env as hubenv
|
from . import hub_env
|
||||||
|
|
||||||
|
|
||||||
def get_detection_test_image(path=None):
|
def get_detection_test_image(path=None):
|
||||||
if path is None:
|
if path is None:
|
||||||
path = hubenv.RESOURCE_HOME
|
path = hub_env.RESOURCE_HOME
|
||||||
fullpath = fd.download(
|
fullpath = fd.download(
|
||||||
url='https://bj.bcebos.com/paddlehub/fastdeploy/example/detection_test_image.jpg',
|
url='https://bj.bcebos.com/paddlehub/fastdeploy/example/detection_test_image.jpg',
|
||||||
path=path)
|
path=path)
|
||||||
|
Reference in New Issue
Block a user