Comments (1)
Hello! π It looks like you're experiencing issues with generating the ROC curve because you're not using ground truth labels.
To properly calculate AUC for ROC, you will need the actual labels (ground truth) for each prediction to compare against. It seems you only have the detection confidence scores.
Hereβs a method to modify your script to include ground truth labels:
- Update the
y_true
list in your loop to include actual labels from your dataset. - Map your class labels to 0 or 1 based on the detection (presence or absence of your target class).
Modify this part of your script:
# Assume your actual labels column in CSV is the second column (index 1)
labels = data[1].tolist() # adjust index based on your data structure
...
y_true.extend(labels)
Ensure you're reading from the correct column index for labels and scores in your CSV. After this adjustment, the ROC calculation should function with accurate class labels.
Hope this helps you move forward! π
from yolov5.
Related Issues (20)
- Silicon Mac GPU Support for training HOT 1
- Split features map of data HOT 1
- incorrect detections for cars after fine-tuning yolov5l HOT 1
- tried to run yolov5 "detect.py" with pretrained model yolov8x.pt and xView.yaml HOT 1
- Low disk space causes memory leak HOT 3
- Error with fbgemm.dll file when using Torch! HOT 5
- Yolov5 inventing label on validation set HOT 3
- challenges faced in Xtream1 tool while creating class ID's HOT 1
- Facing issues while changing class ID values HOT 1
- background color of image and other causes? HOT 1
- ModuleNotFoundError: No module named 'models.yolo'. HOT 3
- RuntimeError: The size of tensor a (80) must match the size of tensor b (60) at non-singleton dimension 3 HOT 4
- Error During TensorFlow SavedModel and TFLite Export: TFDetect.__init__() got multiple values for argument 'w' and 'NoneType' object has no attribute 'outputs' HOT 1
- hyp.finetune.yaml missing HOT 3
- Regarding the application establishment of preprocessing functions HOT 1
- Custom model exported to tfjs only outputs 100 detections
- Export torchscript with NMS HOT 1
- AttributeError: 'str' object has no attribute 'shape' HOT 3
- yolov5-pip forced boto3 consumption invalidates py3.7-9 support HOT 1
- Report errors while continuing training HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolov5.