Replies: 26 comments
-
I have added the following class to the model for YOLOX but i am getting a lot of False positive for sliced prediction. YOLOX is doing preprocessing and post processing that might have a issue. If the Megvii YOLOX support is added that will be great. Thanks class YoloXDetectionModel(DetectionModel):
|
Beta Was this translation helpful? Give feedback.
-
Can you share the results? @msaqib17 |
Beta Was this translation helpful? Give feedback.
-
Did you test the original model file? It may be related to the performance of your model. |
Beta Was this translation helpful? Give feedback.
-
If you see the top left side of the above image you will see original predictions. The original predictions are good. |
Beta Was this translation helpful? Give feedback.
-
Can you test this model? Orijinal Model File: Image File: I'm getting good results here. Mmdet-YOLOX: |
Beta Was this translation helpful? Give feedback.
-
ok thanks let me try. |
Beta Was this translation helpful? Give feedback.
-
For me your model is working. I am not sure why my model is not working i will train and try it again. Thanks for the support. |
Beta Was this translation helpful? Give feedback.
-
Your model is memorizing. You should pay attention to this while training. The better your model, the more successful SAHI will be. You can change SAHI parameters for better results. https://github.com/obss/sahi/blob/main/sahi/predict.py#L121-L124 My Works: https://github.com/kadirnar/yolov5-pytorch-sahi I wish you success in your work. |
Beta Was this translation helpful? Give feedback.
-
Thank you Kadir. keep up the amazing work. Yes you are right my model is overfitted. |
Beta Was this translation helpful? Give feedback.
-
Hello, I tested my weights on your 'model.py' script, but my yolox detection result is wrong. Why category result is wrong? This is yolox output result, sahi_yolox output result and terminal output. @msaqib17 |
Beta Was this translation helpful? Give feedback.
-
Hi @wgq18 Your category mappings are wrong. Just look closely at the output of the model. You have trained your model on ten classes with custom labels(as seen in the output), and you are assigning labels from different COCO classes. |
Beta Was this translation helpful? Give feedback.
-
You are right. I trained model on ten VOC classes:('pedestrian', 'people', 'bicycle', 'car', 'van', 'truck', 'tricycle', 'awning-tricycle', 'bus', 'motor'). But as you can see, when I use sahi prepocess and postprocess, I could only get 'pedestrian' class in detection result. Why this error happens? |
Beta Was this translation helpful? Give feedback.
-
@fcakyon Do you accept PR for Yolox-SAHI? |
Beta Was this translation helpful? Give feedback.
-
@msaqib17 Can you test model precision and speed with sahi-yolox? I am using 'python -m yolox.tools.eval -f exps/example/yolox_darknet53/yolox_voc_darknet53.py -n yolov3 -c my_weights/best_ckpt.pth -b 4 -d 0 --conf 0.001 --fp16 --fuse --tsize 640' to test yolox now. How to test sahi-yolox? Can you provide your code or command? Thank you. |
Beta Was this translation helpful? Give feedback.
-
Yes we are open. The class name can be |
Beta Was this translation helpful? Give feedback.
-
@wgq18 Sorry i don't have testing code for the evaluation. But you can use the following command to get Precision and Recall. For this you have to convert your dataset to coco json format and the result should also be in coco json format. sahi coco evaluate --dataset_json_path dataset.json --result_json_path result.json |
Beta Was this translation helpful? Give feedback.
-
Hi @msaqib17 , Do you want to add the Yolox model to the SAHI library? I can help.I can do that too. What do you think? |
Beta Was this translation helpful? Give feedback.
-
@kadirnar Lets do it in a separate repository because my local one is quite messed up. |
Beta Was this translation helpful? Give feedback.
-
Let's talk about this here. |
Beta Was this translation helpful? Give feedback.
-
I want to detect many pictures in a single script. But my code can only detect one picture at a time. So how to change my code?
|
Beta Was this translation helpful? Give feedback.
-
Hello @msaqib17 , You should use predict function.
but first you have to add the yolox library here. https://github.com/obss/sahi/blob/main/sahi/auto_model.py#L6 |
Beta Was this translation helpful? Give feedback.
-
Thank you. When I use command 'sahi coco evaluate --dataset_json_path dataset.json --result_json_path result.json', I only get classwise classes mAP, mAP50 and mAP75 metrics. But the metrics is 0.00. I don't know why this happened and how to fix this error. Please give me some guide. |
Beta Was this translation helpful? Give feedback.
-
@wgq18 lower the confidence and then try again. How much is confidence you are using for your experiment? May be your results and ground-truths are not in proper coco json format. First try it with only one image result and ground-truth and when you are confident then apply it to your whole test dataset. |
Beta Was this translation helpful? Give feedback.
-
This is the most probable reason 👍 |
Beta Was this translation helpful? Give feedback.
-
I am working on Megvii yolox to detect small objects, but I find it hard to add sahi to Megvii yolox. Can you update code to wrap sahi to Megvii yolox? I don't like Mmdetection library and their yolox version. Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions