File size: 396 Bytes
1046772
1ae2bef
 
 
1f029d6
 
 
 
 
51718fb
1f029d6
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import utils
import streamlit as st
import tensorflow as tf

image_url = st.text_input(
	label="URL of image",
	value="https://dl.fbaipublicfiles.com/dino/img.png",
	placeholder="https://your-favourite-image.png"
)

# Preprocess the same image but with normlization.
image, preprocessed_image = utils.load_image_from_url(
	image_url,
	model_type="dino"
)
st.image(image, caption="Original Image")