-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Average Precision and Recall negative (-1.000) and No Prediction Results #413
Comments
I also have the problem. my result we can get that the loss is down to hundred(200) from a high value but when i test each validation or test image, i can get nearly correct prediction.like this what i have done under this repo?
i dont know how to solve this problem. please help me |
I believe the issue I'm having is related to the size of the training images. Due to the memory constraints of my GPU (CPU training just doesn't work on my machine), I was forced to train the model with an image size of My hypothesis is that by increasing the I hope that this helps someone. However, I have managed to solve the issues I was having regarding this task by simply using another repository. |
I like your sesame-paste. What's your command to train? |
what's the format of your dataset? |
I have two major issues.
area= Large
), I am unable to produce a single bounding box. This also applies to when I try to infer a bounding box on an image in the training set as well.These problems seems to be common as there are many related issues:
negative precision/recall
My input image sizes vary slightly but the vast majority of each image is of size
1920x1080
Below is an example of the validation output.
Note: I am using the same images for validation and training.
Below is the command I'm using to train. I have tried several learning rates. It has no effect on the small and medium recall.
The input for the bounding boxes is correct; Here is an example or my
train.txt
:In the
cfg.py
file I have changed the variables as folllows:Cfg.batch=4
Cfg.subdivisions=1
Cfg.width=416
Cfg.height=416
Cfg.max_batches=2000 # I'm only training a single new class
Cfg.steps=1600,1800
-
Cfg.boxes=1 # only one box per image
I modified the
yolov4-custom.cfg
file to match the cfg.py file as well as made the changes mentioned in THIS link.I changed the
image_size
variable in theYolo_loss
class to match the width and height (416
) in the cfg file.I created my own
get_image_id
function in thedataset.py
file to return an integer representing a particular image.Here is an example of my prediction output:
If I modify the thresholds in
demo.py
file in thedetect_cv2
funrtion from0.4
and0.6
to a negative number, I get bounding boxes, but here is a rough example of the results:[0.927, 0.927, 0.927, 0.927, 0, 0, 0]
I have absolutely no clue where I'm going wrong here. Am I missing something?
The text was updated successfully, but these errors were encountered: