Promptvision
Promptvision copied to clipboard
render_image in Image viewer doesn't get all metadata when browsing root directory
Describe the bug When browsing the root directory of a large folder with many subfolders and thousands of images there seems to be an issue pulling the metadata. Might have something to do with the lookup if it.
To Reproduce Steps to reproduce the behavior:
- Go to image viewer.py
- view images
- See error that prompts are not filled out etc
Expected behavior Expected to see all metadata. Can see metadata if I pull the folder and set that subfolder as the main folder.
def render_image(container):
helper.store_metadata_in_session(st.session_state.my_index)
# Get the selected image and its metadata from the session_state
filename = st.session_state.filename
positive_prompt = st.session_state.positive_prompt
negative_prompt = st.session_state.negative_prompt
metadata = st.session_state.metadata
score = st.session_state.score
Expect issue to be around here in the image viewer.py or in the helper for store_metadata