Spaces:
Sleeping
Sleeping
Commit
·
6190d9e
1
Parent(s):
4d7c840
Update app.py
Browse files
app.py
CHANGED
@@ -183,4 +183,19 @@ def detect_Custom(img,model):
|
|
183 |
return Image.fromarray(im0[:,:,::-1])
|
184 |
|
185 |
|
186 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
return Image.fromarray(im0[:,:,::-1])
|
184 |
|
185 |
|
186 |
+
|
187 |
+
description="Custom Training Performed on Kaggle <a href='https://www.kaggle.com/code/owaiskhan9654/training-yolov7-on-kaggle-on-custom-dataset/notebook' style='text-decoration: underline' target='_blank'>Link</a> <br> Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors <br> Also Please use <b>Images with .jpeg</b> because Yolo V7 Model is trained on GPU and while inferencing default CPU has been implemented"
|
188 |
+
|
189 |
+
text1 = (
|
190 |
+
"<center> Custom Model Trained by: Owais Ahmad Data Scientist at <b> Thoucentric </b> <a href=\"https://www.linkedin.com/in/owaiskhan9654/\">Visit Profile</a> <br></center>"
|
191 |
+
|
192 |
+
"<center> Model Trained Kaggle Kernel <a href=\"https://www.kaggle.com/code/owaiskhan9654/training-yolov7-on-kaggle-on-custom-dataset/notebook\">Link</a> <br></center>"
|
193 |
+
|
194 |
+
"<center> Kaggle Profile <a href=\"https://www.kaggle.com/owaiskhan9654\">Link</a> <br> </center>"
|
195 |
+
|
196 |
+
"<center> HuggingFace🤗 Model Deployed Repository <a href=\"https://huggingface.co/owaiskha9654/Yolov7_Custom_Object_Detection\">Link</a> <br></center>"
|
197 |
+
)
|
198 |
+
|
199 |
+
|
200 |
+
gr.Interface(detect_Custom,[gr.Image(type="pil"),gr.Dropdown(default="Yolo_v7_Custom_trained_By_Owais",\
|
201 |
+
choices=["best","yolov7","yolov7-e6"])], gr.Image(type="pil"),title="Yolov7 Custom Trained by <a href='https://www.linkedin.com/in/owaiskhan9654/' style='text-decoration: underline' target='_blank'>Owais Ahmad</a> ",examples=[["Image1.jpeg",\ "Yolo_v7_Custom_trained_By_Owais"],["Image2.jpeg", "Yolo_v7_Custom_trained_By_Owais"],["Image3.jpeg", "Yolo_v7_Custom_trained_By_Owais",],["Image4.jpeg", "Yolo_v7_Custom_trained_By_Owais"],["Image5.jpeg", "Yolo_v7_Custom_trained_By_Owais"],["Image6.jpeg", "Yolo_v7_Custom_trained_By_Owais"],["horses.jpeg", "yolov7"]],cache_examples=False).launch()
|