Spaces:
Runtime error
Runtime error
Commit ·
bd4ccf4
1
Parent(s): 6a46ded
docs
Browse files292 unmodified lines29329429529629729814 unmodified lines313314315316317318319320321292 unmodified lines"so the user can keep elements of their room and change specific parts of the image.""")st.write("### Testing images")st.write("If you don't have any pictures close, you can use one of these images to test the model:")14 unmodified linesst.write("## Generated examples")col_ex_0, col_ex_1 = st.columns(2)with col_ex_0:st.image(Image.open("content/output_1.png"), caption="Generated example 1, regenerating certain objects in the room", use_column_width=True)with col_ex_1:st.image(Image.open("content/output_0.png"), caption="Generated example 1, regenerating certain objects in the room", use_column_width=True)else:make_prompt_row()292 unmodified lines29329429529629729829930030130230330430530630730830914 unmodified lines324325326327328329330331332333292 unmodified lines"so the user can keep elements of their room and change specific parts of the image.""")st.write("### Trivia")st.write("The first time someone uses the demo after startup, the models still need to be loaded into memory. ""After this initial load, the model is cached as a resource and can be used for all the users. ""To avoid simultaneous requests, we have implemented a queueing mechanism that ensures that only one ""user accesses the model at a time (similar to the Gradio framework).\n")st.write("To enable the features in the demo, we calculate the underlying segmentation maps and categories that ""are present in the image. This allows us to hide some of the manual work for the user, and ""by doing this, the users don't need to make a segmentation map in an external tool. Everything needed can be done within this demo.")st.write("### Testing images")st.write("If you don't have any pictures close, you can use one of these images to test the model:")14 unmodified linesst.write("## Generated examples")col_ex_0, col_ex_1 = st.columns(2)with col_ex_0:st.image(Image.open("content/output_1.png"), caption="Generated example, regenerating certain objects in the room", use_column_width=True)st.image(Image.open("content/regen_example.png"), caption="Generated example, regenerating certain objects in the room", use_column_width=True)with col_ex_1:st.image(Image.open("content/output_0.png"), caption="Generated example, regenerating certain objects in the room", use_column_width=True)else:make_prompt_row()
app.py+14-2