[Bug Fix] fix import download module error in python3.6 (#591)

fix import download module error in python3.6
This commit is contained in:
chenjian
2022-11-15 13:19:32 +08:00
committed by GitHub
parent a24004ac8d
commit 0e0838dec5

View File

@@ -11,14 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# 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.download as download import fastdeploy as fd
import fastdeploy.utils.hub_env as hubenv import fastdeploy.utils.hub_env as hubenv
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 = hubenv.RESOURCE_HOME
fullpath = download.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)
return fullpath return fullpath