sayedM commited on
Commit
610a0c1
·
1 Parent(s): 7cd9ea7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -11
app.py CHANGED
@@ -68,17 +68,40 @@ outputs = gr.Image(type="numpy", label="Output Image")
68
 
69
  # Define the text description within an HTML <div> element
70
  description_html = """
71
- <div class="footer">
72
- <p>Model by <a href="https://deci.ai" style="text-decoration: underline;" target="_blank">tuba.ai</a> - Gradio Demo by 🤗 Hugging Face
73
- </p>
74
- </div>
75
- <div class="acknowledgments">
76
- <p><h4>LICENSE</h4>
77
- The model is licensed with a <a href="" style="text-decoration: underline;" target="_blank">CreativeML Open RAIL-M</a> license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please <a href="https://huggingface.co/Deci/DeciDiffusion-v1-0/blob/main/LICENSE-WEIGHTS.md" target="_blank" style="text-decoration: underline;" target="_blank">read the license</a></p>
78
- <p><h4>Biases and content acknowledgment</h4>
79
- Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the <a href="https://laion.ai/blog/laion-5b/" style="text-decoration: underline;" target="_blank">LAION-5B dataset</a>, which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the <a href="https://huggingface.co/Deci/DeciDiffusion-v1-0" style="text-decoration: underline;" target="_blank">model card</a></p>
80
- </div>
81
- """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
 
83
  # Launch the Gradio interface with the description below it
84
  gr.Interface(
 
68
 
69
  # Define the text description within an HTML <div> element
70
  description_html = """
71
+ <html>
72
+ <head>
73
+ <style>
74
+ .description {
75
+ margin: 20px;
76
+ padding: 10px;
77
+ border: 1px solid #ccc;
78
+ }
79
+ </style>
80
+ </head>
81
+ <body>
82
+ <div class="description">
83
+ <p><strong>Description:</strong></p>
84
+ <p>We present a demo for performing object segmentation with training a Yolov8-seg on wheel Image dataset. The model was trained on 696 training images and validated on 199 images.</p>
85
+ <p><strong>Usage:</strong></p>
86
+ <p>You can upload wheel Image images, and the demo will provide you with your segmented image.</p>
87
+ <p><strong>Dataset:</strong></p>
88
+ <p>This dataset comprises a total of 994 images, which are divided into three distinct sets for various purposes:</p>
89
+ <ul>
90
+ <li><strong>Training Set:</strong> It includes 696 images and is intended for training the model.</li>
91
+ <li><strong>Validation Set:</strong> There are 199 images in the validation set, which is used for optimizing model parameters during development.</li>
92
+ <li><strong>Test Set:</strong> This set consists of 99 images and serves as a separate evaluation dataset to assess the performance of trained models.</li>
93
+ </ul>
94
+ <p><strong>License:</strong> This dataset is made available under the Creative Commons Attribution 4.0 International License (CC BY 4.0).</p>
95
+ <p>To access and download this dataset, please follow this link: <a href="https://universe.roboflow.com/project-wce7s/1000_seg_wheel" target="_blank">Dataset Download</a></p>
96
+ <p><strong>Download Dataset:</strong></p>
97
+ <p>To download the dataset we used, you can use the following command in colab:</p>
98
+ <pre>!wget https://universe.roboflow.com/ds/OPPOJjnJPs?key=5yzDMD610e</pre>
99
+ <p>Feel free to explore and use this repository for your object segmentation needs. If you have any questions or need assistance, please don't hesitate to reach out.</p>
100
+ </div>
101
+ </body>
102
+ </html>
103
+ """
104
+
105
 
106
  # Launch the Gradio interface with the description below it
107
  gr.Interface(