pharmapsychotic / clip-interrogator

Image to prompt with BLIP and CLIP
MIT License
2.71k stars 431 forks source link

timing interrogation #111

Open simonmcnair opened 8 months ago

simonmcnair commented 8 months ago

Hiya, I'm trying to time how long each interrogation takes but I'm a bit stumped by the fact that the first interrogation sometimes loads flavour chains AFTER the initial model load.

Is there a way to preload everything as part of the load so that the interrogation times are not skewed pls ?

third field is model load time, then interrogation is fourth field. You can see that the first interrogation takes much longer as it loads other stuff (flavour chain ?), after the initial model load.

I don't know why but negative seems to end up in other stuff being loaded too (loads negative chain)

Cheers

example as below:

/srv/dev-disk-by-uuid-e83913b3-e590-4dc8-9b63-ce0bdbe56ee9/Stable/MonaLisaResize,RN50/openai,best,2.987572606652975,14.26951751112938,mona monaolo, by leonardo leonardora, c 1480 - 1520, da vinci and pixar, style of ivan aivazovsky, homer simpson as mona lisa, a full-color airbrushed, inspired by Théodore Géricault, large pastel, side profile centered portrait, inspired by Parmigianino
/srv/dev-disk-by-uuid-e83913b3-e590-4dc8-9b63-ce0bdbe56ee9/Stable/MonaLisaResize,RN50/openai,caption,2.987572606652975,0.2938699349761009,mona monaolo, by leonardo leonardora, c 1480 - 1520
/srv/dev-disk-by-uuid-e83913b3-e590-4dc8-9b63-ce0bdbe56ee9/Stable/MonaLisaResize,RN50/openai,classic,2.987572606652975,0.3081440981477499,mona monaolo, by leonardo leonardora, c 1480 - 1520, a painting by Leonardo da Vinci, cgsociety, pre-raphaelitism, leonardo da vinci painting, mona lisa, monalisa
/srv/dev-disk-by-uuid-e83913b3-e590-4dc8-9b63-ce0bdbe56ee9/Stable/MonaLisaResize,RN50/openai,fast,2.987572606652975,0.16807029210031033,mona monaolo, by leonardo leonardora, c 1480 - 1520, leonardo da vinci painting, mona lisa, monalisa, by Leonardo da Vinci, da vinci, da vinci painting, leonardo da vinci style, emma watson as mona lisa, ( leonardo da vinci ), mona lisa painting, painting of mona lisa, the mona lisa
/srv/dev-disk-by-uuid-e83913b3-e590-4dc8-9b63-ce0bdbe56ee9/Stable/MonaLisaResize,RN50/openai,negative,2.987572606652975,18.739025896415114,steampunk aztec owl pocketwatch, glowing street signs, monolithic granite spikes, isometric game asset, spiderman biting pizza, snowy trees, duel between two cowboys, detailed sharp robot dragon feet, cardboard tunnels, illustration, 1 9 5 0 s scrambler, lantern fly
/srv/dev-disk-by-uuid-e83913b3-e590-4dc8-9b63-ce0bdbe56ee9/Stable/MonaLisaResize,RN50/yfcc15m,best,1.3397590015083551,13.192872378975153,mona monaolo, by leonardo leonardora, c 1480 - 1520, inspired by Honoré Daumier, soft airbrushed artwork, 1 9 2 0 s hair, early 1 9 0 0's, victorian britain 1 8 3 6, inspired by Thomas Rowlandson, the dreaming, 1 9 0 2
/srv/dev-disk-by-uuid-e83913b3-e590-4dc8-9b63-ce0bdbe56ee9/Stable/MonaLisaResize,RN50/yfcc15m,caption,1.3397590015083551,1.0021030902862549e-06,mona monaolo, by leonardo leonardora, c 1480 - 1520
/srv/dev-disk-by-uuid-e83913b3-e590-4dc8-9b63-ce0bdbe56ee9/Stable/MonaLisaResize,RN50/yfcc15m,classic,1.3397590015083551,0.17125888727605343,mona monaolo, by leonardo leonardora, c 1480 - 1520, a portrait by William-Adolphe Bouguereau, Artstation contest winner, modern european ink painting, classical portrait, 1775 oil painting, pierre - auguste renoir
/srv/dev-disk-by-uuid-e83913b3-e590-4dc8-9b63-ce0bdbe56ee9/Stable/MonaLisaResize,RN50/yfcc15m,fast,1.3397590015083551,0.1654271688312292,mona monaolo, by leonardo leonardora, c 1480 - 1520, classical portrait, by William-Adolphe Bouguereau, 1775 oil painting, pierre - auguste renoir, by Alfred Thompson Bricher, by Pierre Auguste Cot, by Pierre-Auguste Renoir, by Sir William Russell Flint
/srv/dev-disk-by-uuid-e83913b3-e590-4dc8-9b63-ce0bdbe56ee9/Stable/MonaLisaResize,RN50/yfcc15m,negative,1.3397590015083551,19.333050101995468,ultra minimalistic, brutalism buildings, absurdism, attack vector, clones, devastated, danny devito as the terminator, old, wearing many medallions, surreal, stippled walls, eminem as an m & m, chris evans as a powerlifter