shkumar156 commited on
Commit
24e5919
·
verified ·
1 Parent(s): 09eb2f8

Update server.js

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