cmusatyalab / openrtist

Live video frames from the camera are stylized to look like famous paintings.
Apache License 2.0
25 stars 20 forks source link

Setting a fixed order of paintings #53

Open stefanronn opened 1 year ago

stefanronn commented 1 year ago

In some cases, we would like to have a predictable order of which paintings are used for the video processing, in order to compare different backends side by side (local edge vs cloud, for example). There is a setting in the config.py file to set the initial painting, but it does not seem to work. Any ideas of how to make the painting order predictable?

jaharkes commented 1 year ago

If you disable the automatic iteration in settings, you can select a specific style with a pull down menu and it will stay at that style, which makes it easier to do side-by-side comparisons.

stefanronn commented 1 year ago

Thanks. Will try that.

stefanronn commented 1 year ago

The config.py file (used for Ubuntu client, not Android) looks like this: PORT = 9099 STYLE_DISPLAY_INTERVAL = 300 # Number of frames CAM_FPS = 15 IMG_WIDTH = 640 IMG_HEIGHT = 480 START_STYLE_STRING = "udnie" SOURCE_NAME = "openrtist"

I suppose the STYLE_DISPLAY_INTERVAL could be set to some very large number, so the style does not change, but we still have the case where START_STYLE_STRING does not seem to fix the initial style used, so our 2 demo screens starts with different painting / styles. The "automatic iteration" setting seems to be for the Android client version.