Update README.md
Browse files
README.md
CHANGED
|
@@ -220,22 +220,6 @@ for i, (obj_pred, obj_conf, mat_pred, mat_conf) in enumerate(zip(preds_obj, conf
|
|
| 220 |
print(f" Material: {mat_name} ({mat_conf:.3f})")
|
| 221 |
```
|
| 222 |
|
| 223 |
-
### Custom Dataset Evaluation
|
| 224 |
-
|
| 225 |
-
```python
|
| 226 |
-
from datasets import load_dataset
|
| 227 |
-
from main import load_model
|
| 228 |
-
import json
|
| 229 |
-
|
| 230 |
-
# Load your custom dataset
|
| 231 |
-
dataset = load_dataset("your-dataset", split="test")
|
| 232 |
-
|
| 233 |
-
# Load model
|
| 234 |
-
model, label_mappings = load_model("model/v2/best_model.pth")
|
| 235 |
-
|
| 236 |
-
# Run evaluation (modify main.py evaluation logic as needed)
|
| 237 |
-
# ... evaluation code ...
|
| 238 |
-
```
|
| 239 |
|
| 240 |
## Troubleshooting
|
| 241 |
|
|
@@ -261,7 +245,6 @@ model, label_mappings = load_model("model/v2/best_model.pth")
|
|
| 261 |
|
| 262 |
- Use GPU for faster inference
|
| 263 |
- Process images in batches for efficiency
|
| 264 |
-
- Use the best_model.pth for production use
|
| 265 |
- Consider model quantization for deployment
|
| 266 |
|
| 267 |
## Model Limitations
|
|
@@ -270,15 +253,3 @@ model, label_mappings = load_model("model/v2/best_model.pth")
|
|
| 270 |
- May not generalize well to artifacts from other cultures/regions
|
| 271 |
- Performance depends on image quality and lighting
|
| 272 |
- Multi-output nature may have trade-offs between object and material accuracy
|
| 273 |
-
|
| 274 |
-
## Contributing
|
| 275 |
-
|
| 276 |
-
To improve the model:
|
| 277 |
-
1. Use the training script with different hyperparameters
|
| 278 |
-
2. Experiment with different backbones
|
| 279 |
-
3. Add more advanced augmentations
|
| 280 |
-
4. Fine-tune on additional datasets
|
| 281 |
-
|
| 282 |
-
## License
|
| 283 |
-
|
| 284 |
-
This model is part of the artifact identification project. Check the main project license for usage terms.
|
|
|
|
| 220 |
print(f" Material: {mat_name} ({mat_conf:.3f})")
|
| 221 |
```
|
| 222 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 223 |
|
| 224 |
## Troubleshooting
|
| 225 |
|
|
|
|
| 245 |
|
| 246 |
- Use GPU for faster inference
|
| 247 |
- Process images in batches for efficiency
|
|
|
|
| 248 |
- Consider model quantization for deployment
|
| 249 |
|
| 250 |
## Model Limitations
|
|
|
|
| 253 |
- May not generalize well to artifacts from other cultures/regions
|
| 254 |
- Performance depends on image quality and lighting
|
| 255 |
- Multi-output nature may have trade-offs between object and material accuracy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|