Skip to content

Commit

Permalink
Fixed wrong comments
Browse files Browse the repository at this point in the history
  • Loading branch information
honeytung committed Dec 3, 2024
1 parent 2b96842 commit b5e685a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Optionally, set the `--delay` argument to prevent going over the throttling limi

### Evaluate the Detector

To evaluate the ML model performance for a detector, simply run the script `evaluate-accuracy.py` with the following arguments:
To evaluate the ML model performance for a detector, simply run the script `evaluate.py` with the following arguments:

```bash
poetry run python evaluate.py --detector-id YOUR_DETECTOR_ID --dataset PATH_TO_DATASET_TEST_FOLDER
Expand Down
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def upload_image(gl: Groundlight, detector: Detector, image: PIL, label: str) ->
if label not in ["YES", "NO"]:
raise ValueError(f"Invalid label: {label}, must be 'YES' or 'NO'.")

# Use ask_ml to upload the image and then add the label to the image query
# Use ask_async to upload the image and then add the label to the image query
iq = gl.ask_async(detector=detector, image=image)
gl.add_label(image_query=iq, label=label)

Expand Down

0 comments on commit b5e685a

Please sign in to comment.