zavolokas / InpaintingSite

Web app for inpainting
GNU Affero General Public License v3.0
5 stars 4 forks source link

Display realtime inpainting progress #4

Open zavolokas opened 4 years ago

zavolokas commented 4 years ago

Currently it takes some time until an image gets processed. It would be more user friendly if user could see how the area gets inpainted.

Most likely it would require to implement some streaming in the API. The inpainting library itself is capable of providing the intermediate results(see the library's code samples for that). So this intermediate results just need to be exposed to the user.

ferib commented 3 years ago

Do you want it to display a full image? Or are we looking for a video compression algorithm that uploads progress over a WebSocket?

I had a good read on this paper regarding compression algorithms, but not sure if we should reinvent the wheel or just use an existing library (most seems to use FFmpeg binaries).

zavolokas commented 3 years ago

@ferib

You can create a video once you have the result ready, at that point it doesn't make much sense to display the progress. Instead you can have an open web socket connection and send an intermediate result to the client once it is ready.

ferib commented 3 years ago

Alright, sending over the intermediate results and then using a CSS animation on the front end to smoothen the image transitioning (optional) sounds like a plan.