developmentseed / pearl-backend

PEARL (Planetary Computer Land Cover Mapping) Platform API and Infrastructure
MIT License
55 stars 6 forks source link

Message model#prediction doesn't include prediction image #67

Open vgeorge opened 1 year ago

vgeorge commented 1 year ago

On retrain, if the AOI is larger than a certain threshold, model#prediction won't include image parameter, which includes the prediction tile. This blocks displaying live predictions. AOIs under 30 km2 seems to be working fine.

cc @ingalls @geohacker @srmsoumya

geohacker commented 1 year ago

@vgeorge I'm able to see this on even on regular inference. Steps to reproduce:

  1. Draw an AOI of size ~10km2, see image tiles from the API
  2. Draw an AOI for size >30km2, no image tiles from the API

When I inspect the WS message, I see that the API thinks this AOI is not a live inference:

image

I suspect something is off in this line https://github.com/developmentseed/pearl-backend/blob/project-ts/services/gpu/lib/TimeFrame.py#LL50C26-L50C26

LanesGood commented 7 months ago

Is this still an active bug @geohacker @vgeorge?