Slackbot
04/12/2023, 4:05 PMChaoyu
04/12/2023, 10:25 PMChaoyu
04/12/2023, 10:26 PMSylvain LeBeux
04/19/2023, 3:22 PMbentofile.yaml
and service.py
I am using for this
The error I am getting is the server disconnect after a few seconds into the request. Nothing more in --debug
mode, it just fails silently and server restarts.
ah, and also two rather annoying hacks I had to put in place for it to work.
• My image shape is (550, 512, 3) (W, H, C) it works fine with pytorch but I have to setup max_batch_size
to 1000 because bentoml thinks the first dim is the batch dim (àla tensorflow)
• The return value of SAM is a list of dict containing all info about the objects masks found in the image, and nested in there are numpy array for the segmentation values. This list is thus not JSON serializable, hence my conversion .., but I have to do it back again on the receiving side. There is obviously a better version I am not aware of as of now.
Thanks for readingSylvain LeBeux
04/19/2023, 3:22 PMSylvain LeBeux
04/19/2023, 3:23 PMSylvain LeBeux
04/19/2023, 3:23 PMSylvain LeBeux
04/19/2023, 3:29 PMSylvain LeBeux
04/19/2023, 3:50 PMChaoyu
04/19/2023, 10:37 PMSylvain LeBeux
04/20/2023, 1:28 PMTim Liu
04/20/2023, 7:59 PMChaoyu
04/21/2023, 10:33 PMSylvain LeBeux
05/01/2023, 12:45 PMTim Liu
05/01/2023, 6:57 PMSylvain LeBeux
05/01/2023, 7:12 PMTim Liu
05/01/2023, 7:18 PMSylvain LeBeux
05/01/2023, 7:19 PMSylvain LeBeux
05/01/2023, 7:25 PMSylvain LeBeux
05/01/2023, 7:55 PM