Spaces:
Sleeping
Sleeping
Update server.js
Browse files
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, '
|
| 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 |
|