owaiskha9654 commited on
Commit
6190d9e
·
1 Parent(s): 4d7c840

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -183,4 +183,19 @@ def detect_Custom(img,model):
183
  return Image.fromarray(im0[:,:,::-1])
184
 
185
 
186
- gr.Interface(detect_Custom,[gr.Image(type="pil"),gr.Dropdown(default="best",choices=["best","yolov7","yolov7-e6"])], gr.Image(type="pil"),title="Yolov7",examples=[["Image1.jpg", "Yolo_v7_Custom_trained_By_Owais"],["Image2.jpg", "Yolo_v7_Custom_trained_By_Owais"],["Image3.jpg", "Yolo_v7_Custom_trained_By_Owais",],["Image4.jpg", "Yolo_v7_Custom_trained_By_Owais"],["Image5.jpg", "Yolo_v7_Custom_trained_By_Owais"],["Image6.jpg", "Yolo_v7_Custom_trained_By_Owais"],["horses.jpeg", "yolov7"]],description="Custom Training Performed on Kaggle Kernel<a href='https://www.kaggle.com/code/owaiskhan9654/training-yolov7-on-kaggle-on-custom-dataset/notebook' style='text-decoration: underline' target='_blank'>Link</a> \n Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors",cache_examples=False).launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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()