UI modification and include readme text in header
Browse files
app.py
CHANGED
@@ -47,15 +47,23 @@ def init_model():
|
|
47 |
|
48 |
def main():
|
49 |
|
50 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
processor, model = init_model()
|
53 |
|
54 |
#Select few sample images for the catagory of cloths
|
55 |
st.text("Select image:")
|
56 |
option = st.selectbox('From sample', ('None', 'dress', 'earrings', 'sweater', 'sunglasses', 'shoe', 'hat', 'heels', 'socks', 'tee', 'bracelet'), index = 0)
|
57 |
-
st.text("
|
58 |
-
file_name = st.file_uploader("Upload an image")
|
59 |
|
60 |
image = None
|
61 |
if file_name is not None:
|
|
|
47 |
|
48 |
def main():
|
49 |
|
50 |
+
st.header("Automate Fashion Image Captioning using BLIP-2")
|
51 |
+
st.caption("The fashion industry is worth trillions of dollars. The goal of any company/seller is to help customer tofind the right product from a huge corpus of products that they are searching for.")
|
52 |
+
st.caption("So, when customer find the right product they are mostly going to add the item to their cart and which help in company revenue.")
|
53 |
+
st.caption("Accurate and enchanting descriptions of clothes on shopping websites can help customers without fashion knowledge to better understand the features (attributes, style, functionality, etc.) of the items and increase online sales by enticing more customers.")
|
54 |
+
st.caption("Also, most of the time when any customer visits shopping websites, they are looking for a certain style or type of clothes that wish to purchase, they search for the item by providing a description of the item and the system finds the relevant items that match the search query by computing the similarity score between the query and the item caption.")
|
55 |
+
st.caption("Given the clothes image provide a short caption that describes the item. In general, in image captioning datasets (e.g., COCO, Fliker), the descriptions of fashion items have three unique features, which makes the automatic generation of captions a challenging task. First, fashion captioning needs to describe the attributes of an item, while image captioning generally narrates the objects and their relations in the image.")
|
56 |
+
st.caption("Solution: Used Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models (BLIP-2)")
|
57 |
+
st.write("Github: [link](https://github.com/SmithaUpadhyaya/fashion_image_caption)")
|
58 |
+
|
59 |
|
60 |
processor, model = init_model()
|
61 |
|
62 |
#Select few sample images for the catagory of cloths
|
63 |
st.text("Select image:")
|
64 |
option = st.selectbox('From sample', ('None', 'dress', 'earrings', 'sweater', 'sunglasses', 'shoe', 'hat', 'heels', 'socks', 'tee', 'bracelet'), index = 0)
|
65 |
+
st.text("Or")
|
66 |
+
file_name = st.file_uploader(label = "Upload an image", accept_multiple_files = False)
|
67 |
|
68 |
image = None
|
69 |
if file_name is not None:
|