1adrianb / 1adrianb/face-alignment
Error in examples/demo.ipynb testing on a batch
- Lenguaje dominante
- Python
- Estrellas
- 7.5k
- Forks
- 1.4k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
In "Testing on a batch":
```python
fig = plt.figure(figsize=(10, 5))
for i, pred in enumerate(preds):
plt.subplot(1, 2, i + 1)
plt.imshow(frames[1])
plt.title(f'frame[{i}]')
for detection in pred:
plt.scatter(detection[:,0], detection[:,1], 2)
```
the 2nd loop is redundant, need to plot `pred[:, 0], pred[:, 1]` only.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Open examples/demo.ipynb, locate the 'Testing on a batch' section. The issue points to a redundant loop: instead of iterating over detections, plot pred[:,0] and pred[:,1] directly. Check the surrounding code to understand the data shape, then correct the plotting. Run the notebook cell to verify the fix produces the expected visualization.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- jupyter-notebook, python, pytorch
- Área
- documentation
- Tipo de issue
- Error
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 75/100