Pin "paddlepaddle<3.0.0" to resolve export bug (#13550)
parent
ad450f09c6
commit
6993b75af2
|
@ -646,7 +646,7 @@ class DetectMultiBackend(nn.Module):
|
||||||
raise NotImplementedError("ERROR: YOLOv5 TF.js inference is not supported")
|
raise NotImplementedError("ERROR: YOLOv5 TF.js inference is not supported")
|
||||||
elif paddle: # PaddlePaddle
|
elif paddle: # PaddlePaddle
|
||||||
LOGGER.info(f"Loading {w} for PaddlePaddle inference...")
|
LOGGER.info(f"Loading {w} for PaddlePaddle inference...")
|
||||||
check_requirements("paddlepaddle-gpu" if cuda else "paddlepaddle")
|
check_requirements("paddlepaddle-gpu" if cuda else "paddlepaddle<3.0.0")
|
||||||
import paddle.inference as pdi
|
import paddle.inference as pdi
|
||||||
|
|
||||||
if not Path(w).is_file(): # if not *.pdmodel
|
if not Path(w).is_file(): # if not *.pdmodel
|
||||||
|
|
Loading…
Reference in New Issue