update train file nam
This commit is contained in:
@@ -44,7 +44,7 @@ DEFAULT_LABEL_MAPPING = {
|
||||
{
|
||||
"files": [
|
||||
{
|
||||
"filename": "ST_training data_updated_1130points_new.shp",
|
||||
"filename": "ST_training_data_updated_1130points_new.shp",
|
||||
"path": "train/...",
|
||||
"size_mb": 0.15,
|
||||
"point_count": 1130,
|
||||
@@ -110,7 +110,7 @@ DEFAULT_LABEL_MAPPING = {
|
||||
|
||||
Features:
|
||||
- Dropdown chọn shapefile từ thư mục `/train`
|
||||
- Tự động load default: `ST_training data_updated_1130points_new.shp`
|
||||
- Tự động load default: `ST_training_data_updated_1130points_new.shp`
|
||||
- Hiển thị thông tin: số điểm, label column, số lớp, bbox
|
||||
|
||||
#### ✅ Thêm phần hiển thị thông tin Shapefile:
|
||||
@@ -149,7 +149,7 @@ Features:
|
||||
|
||||
#### ✅ Cập nhật form submission:
|
||||
- Thêm `training_shapefile` vào config
|
||||
- Default: `train/ST_training data_updated_1130points_new.shp`
|
||||
- Default: `train/ST_training_data_updated_1130points_new.shp`
|
||||
|
||||
#### ✅ Event listeners:
|
||||
```javascript
|
||||
@@ -252,7 +252,7 @@ curl http://localhost:8000/api/training/files
|
||||
curl http://localhost:8000/api/training/labels
|
||||
|
||||
# Get shapefile labels
|
||||
curl "http://localhost:8000/api/training/shapefile/ST_training data_updated_1130points_new.shp/labels"
|
||||
curl "http://localhost:8000/api/training/shapefile/ST_training_data_updated_1130points_new.shp/labels"
|
||||
```
|
||||
|
||||
### Check Browser Console:
|
||||
@@ -265,8 +265,8 @@ curl "http://localhost:8000/api/training/shapefile/ST_training data_updated_1130
|
||||
## 📝 Notes
|
||||
|
||||
1. **Training shapefile path format**:
|
||||
- Frontend select value: `ST_training data_updated_1130points_new.shp`
|
||||
- Backend receives: `train/ST_training data_updated_1130points_new.shp`
|
||||
- Frontend select value: `ST_training_data_updated_1130points_new.shp`
|
||||
- Backend receives: `train/ST_training_data_updated_1130points_new.shp`
|
||||
- Auto-prepend `train/` prefix in form submission
|
||||
|
||||
2. **Label mapping**:
|
||||
|
||||
Reference in New Issue
Block a user