shkumar156 commited on
Commit
1f16647
·
verified ·
1 Parent(s): 0c3c853

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -194,7 +194,7 @@ app.post('/upload', upload.single('image'), async (req, res) => {
194
  async function runYOLOv5Detection(imagePath) {
195
  return new Promise((resolve) => {
196
  const yolov5Path = path.join(__dirname, 'yolo_detect.py');
197
- const weightsPath = path.join(__dirname, 'yolov5su.pt'); // Use the 'u' model
198
 
199
  console.log('Calling yolo_detect.py with weights:', weightsPath, 'and image:', imagePath);
200
 
 
194
  async function runYOLOv5Detection(imagePath) {
195
  return new Promise((resolve) => {
196
  const yolov5Path = path.join(__dirname, 'yolo_detect.py');
197
+ const weightsPath = path.join(__dirname, 'yolov8s.pt');
198
 
199
  console.log('Calling yolo_detect.py with weights:', weightsPath, 'and image:', imagePath);
200