1adrianb / 1adrianb/face-alignment

Error in examples/demo.ipynb testing on a batch

Ouverte Adaptée aux débutants
#332 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
7.5k
Forks
1.4k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
jupyter-notebook, python, pytorch
Domaine
documentation
Type d'issue
Bug
Difficulté
1/5
Temps estimé
Moins d'une heure
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
75/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.