Spaces:
Configuration error
Configuration error
Update app
Browse files23 unmodified lines24252627282930313233114 unmodified lines14814915015115215315415515615715815916016116216316416516616716816917017117217317423 unmodified lines# Available model versionsMODEL_VERSIONS = {"v0.3": "yoso-normal-v0-3","v1.0": "yoso-normal-v1-0","v1.5": "yoso-normal-v1-5","v1.8.1": "yoso-normal-v1-8-1"}def load_predictor(version: str = "v1.8.1"):114 unmodified linesposition=0.25,)# Model version infowith gr.Row():gr.Markdown("""**Model Version Information:**- **v0.3**: Camera Ready Version- **v1.0**: Improve stability, but poor sharpness- **v1.5**: Enhanced performance and accuracy- **v1.8.1**: Latest version with best sharpness (default)*All models are precached and ready for instant switching.*""")# Examples sectionif os.path.exists(os.path.join("files", "object")):Examples(fn=lambda img, ver: process_object(img, ver),examples=sorted([[os.path.join("files", "object", name), "v1.8.1"]for name in os.listdir(os.path.join("files", "object"))]),inputs=[object_input, version_dropdown],outputs=[object_output_slider],cache_examples=False,directory_name="examples_object",23 unmodified lines24252627282930313233114 unmodified lines14814915015115215315415515615715815916016116223 unmodified lines# Available model versionsMODEL_VERSIONS = {"v0.3: Camera Ready Version": "yoso-normal-v0-3","v1.0: NormalAnything Version": "yoso-normal-v1-0","v1.5: Best Balance": "yoso-normal-v1-5","v1.8.1: Best Sharpness": "yoso-normal-v1-8-1"}def load_predictor(version: str = "v1.8.1"):114 unmodified linesposition=0.25,)# Examples sectionif os.path.exists(os.path.join("files", "object")):Examples(fn=lambda img, ver: process_object(img, ver),examples=sorted([os.path.join("files", "object", name)for name in os.listdir(os.path.join("files", "object"))]),inputs=[object_input],outputs=[object_output_slider],cache_examples=False,directory_name="examples_object",
app.py+6-18