File size: 478 Bytes
e15dae8
17bb1f6
 
 
e15dae8
62635cf
17bb1f6
62635cf
7c364f1
62635cf
331078a
62635cf
84969fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import streamlit as st
from PIL import Image
import glob
import json

prefix = 'https://raw.githubusercontent.com/BennoKrojer/imagecode-val-set/main/image-sets-val/'
set2ids = json.load(open('set2ids.json', 'r'))

images = set2ids['MSR-VTT-videoTestVideo_video7016-shot1_2']

index= int(st.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=len(images)-1))

st.image(prefix+'/MSR-VTT-videoTestVideo_video7016-shot1_2/'+images[index], use_column_width=True)