1adrianb / 1adrianb/face-alignment

Error in examples/demo.ipynb testing on a batch

Aperta Adatta ai principianti
#332 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
7.5k
Fork
1.4k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
jupyter-notebook, python, pytorch
Ambito
documentation
Tipo di issue
Bug
Difficoltà
1/5
Tempo stimato
Meno di un'ora
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
75/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.