models icon indicating copy to clipboard operation
models copied to clipboard

Yolov5 V6 The exported TFJS model is not available because img SIez cannot be set to 300

Open gamefake588 opened this issue 4 years ago • 4 comments
trafficstars

// Yolov5 python export.py --weights runs/train/exp9/weights/best.pt --include tfjs --img 300 WARNING: --img-size 300 must be multiple of max stride 32, updating to 320

// coco-ssd js Error: The shape of dict['x'] provided in model.execute(dict) must be [1,320,320,3], but was [1,300,300,3]

gamefake588 avatar Nov 02 '21 06:11 gamefake588

@gamefake588 Could you please have a look on the link1, link2 and let us know if it helps? Thanks!

kumariko avatar Nov 02 '21 13:11 kumariko

@kumariko This does not help, as it is possible to convert directly to TFJS in yolov5 v6.0,[1,300,300,3] cannot be converted when using cocossd

gamefake588 avatar Nov 03 '21 01:11 gamefake588

@kumariko This does not help, as it is possible to convert directly to TFJS in yolov5 v6.0,[1,300,300,3] cannot be converted when using cocossd

how did you solved it

WeiFree avatar Apr 14 '22 08:04 WeiFree

Hi @luotigerlsx @fyangf,

Can you look at this issue in your free time.

Thanks.

laxmareddyp avatar Feb 21 '23 19:02 laxmareddyp

Hi @gamefake588 ,

Is this issue still reproducible?

Thanks.

laxmareddyp avatar Apr 11 '23 21:04 laxmareddyp

We don't support YoloV5 in official models.

fyangf avatar Apr 11 '23 21:04 fyangf

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Apr 11 '23 21:04 google-ml-butler[bot]

@kumariko This does not help, as it is possible to convert directly to TFJS in yolov5 v6.0,[1,300,300,3] cannot be converted when using cocossd

how did you solved it

Sorry, it's been too long, I can't remember clearly, I may have used other libraries for conversion at the time

gamefake588 avatar Apr 12 '23 08:04 gamefake588

Hi @gamefake588 ,

Is this issue still reproducible?

Thanks.

Sorry, it's been too long, I can't remember clearly, I may have used other libraries for conversion at the time

gamefake588 avatar Apr 12 '23 08:04 gamefake588