1adrianb / 1adrianb/face-alignment

Parallelizing on the CPU

Aperta
#266 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

Is it possible or has anyone tried to parallelize face-alignment on the CPU? I tried to do so with `from multiprocessing import Pool`, but I ran into [this pytorch issue](https://github.com/pytorch/pytorch/issues/18106).

I'm assuming the thing to do is to just run on a GPU, but I thought I would put it out there in case someone already knows a way to make multiprocessing work.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Look at the face-alignment library's inference code to understand the model loading and prediction flow. Investigate the PyTorch multiprocessing issue linked, and explore alternatives like threading, joblib, or using PyTorch's own DataLoader with num_workers. Check if there are existing examples of CPU parallelization in similar PyTorch-based vision libraries.

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

Valutazione

Stack tecnologico
python, pytorch
Ambito
performance
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.