1adrianb / 1adrianb/face-alignment
Parallelizing on the CPU
- Lenguaje dominante
- Python
- Estrellas
- 7.5k
- Forks
- 1.4k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python, pytorch
- Área
- performance
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100