issues with cropping
@deruyter92 ya está trabajando en esto.
Desde el 2/4/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Is there an existing issue for this?
- I have searched the existing issues
Operating System
Windows 11
DeepLabCut version
DLC 3.0.0rc13
What engine are you using?
pytorch
DeepLabCut mode
single animal
Device type
GeForce 5060 RTX
Bug description 🐛
There are several issues with how the code handles video cropping.
First, the handling of crop coordinates is fragmented:
extract_framespulls video-specific coordinates fromvideo_setsinconfig.yaml, ignoring thecropping: true/falseglobal flag.analyze_videos(viacheckcroppinginpredict_videos.py) ignoresvideo_setsand enforces the globalx1, x2, y1, y2coordinates beneath the global flag.extract_outlier_framesattempts to use video_sets, but only if the global cropping boolean is set totrue.
Second, the global flag and the global coordinates are misleading because they make it seem like this cropping flag itself is for a single coordinate cropping option used for all videos.
Third, there is no standalone way in the GUI to define crop coordinates for a new video added to an existing project. The select_cropping_area widget is only used for the "Extract Frames" tab. If a user just wants to analyze a new video and extract outliers, they cannot visually crop it without unnecessarily extracting frames first.
Fourth, because the "Extract Outlier Frames" GUI tab has no cropping toggle, the global flag is used. If it's false, extract_outlier_frames.py assigns coords=None and passes it to attempt_to_add_video(). This wrapper calls add_new_videos(), which grabs full-frame dimensions and updates the cfg["video_sets"] dictionary. This erases any video-specific cropping coordinates the user had previously saved and used to extract frames, etc.
Steps To Reproduce
No response
Relevant log output
Anything else?
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
- Lenguaje dominante
- Python
- Estrellas
- 5.8k
- Forks
- 1.8k
- Merge medio
- 3 d 18 h
- PR fusionados (30 d)
- 29
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DeepLabCut/DeepLabCut
-
napari-dlc
DeepLabCut/DeepLabCut#3524 · 1 comentario · 1 asignado ·
-
Metric path consistency for top-down, and safer snapshot selection when a metric is undefined Abiertoconfig enhancement metrics pytorch
DeepLabCut/DeepLabCut#3521 · 2 asignados ·
-
bug metrics pytorch
DeepLabCut/DeepLabCut#3518 · 1 comentario · 1 asignado ·
-
[Task] Improve CI workflows AbiertoCI enhancement
DeepLabCut/DeepLabCut#3517 · 1 comentario · 2 asignados ·
-
DeepLabCut/DeepLabCut#3493 · 1 asignado ·
Todos los issues de DeepLabCut/DeepLabCut
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
anthropics/skills#1811 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
speaches-ai/speaches#678 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
datalayer/mcp-compose#42 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
conda-forge/spacy-feedstock#177 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
UKGovernmentBEIS/inspect_evals#2523 ·