o ¶ñyfYã@s\ddlmZddlmZddlZe d¡Ze d¡Ze d¡Ze d¡Z dd „Z d d „Z dS) é)Úshared)ÚversionNz1.6.0z v1.7.0-225z1.8.0z 1.8.0-139cCsH|durdSt d|¡}|r| d¡}zt |¡WSty#YdSw)Nz([^-]+-[^-]+)-.*é)ÚreÚmatchÚgrouprÚparseÚ Exception)ÚtextÚm©r újC:\Users\Luke\Documents\Stable diffusion\Automatic1111\stable-diffusion-webui\modules\infotext_versions.pyÚ parse_version s    ÿrcCsœtjjsdSt| d¡ƒ}|durdS|tkr#d| dd¡vr#d|d<|tkr3| dd¡d vr3d|d <|tkr;d|d <|tkrJ| d ¡rLd|d <dSdSdS)z[Checks infotext Version field, and enables backwards compatibility options according to it.NÚVersionú[ÚPromptÚTzOld prompt editing timelinesÚSampler)ÚDDIMÚPLMSz Pad conds v0zDowncast alphas_cumprodÚRefinerz Refiner switch by sampling steps)rÚoptsÚauto_backcompatrÚgetÚv160Ú v170_tsnrÚv180)ÚdÚverr r r Ú backcompats ÿr) ÚmodulesrÚ packagingrrrrrrÚv180_hr_stylesrrr r r r Ús