CSAILVision / CSAILVision/NetDissect

ZeroDivisionError: centered_arange step size is 0

Abierto
#4 5 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
455
Forks
114
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

In `upsample.py` line 352, the step size (3rd param) passed to `np.arange` is 0, yielding a `ZeroDivisionError`. This is caused by `t` having value 1, and `reduction` having value 2: `1 // 2 = 0`. The fieldmap is `((0,0), (4,4), (1,1))`.

The conv layer that is being analyzed has a 4x4 kernel, 4 output channels, and a stride of 1. Its input size is 3x120x120, the output size is 4x117x117.

I am going to debug this further but just wanted to share this already.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start in upsample.py at line 352 and trace centered_arange with the reported fieldmap, kernel, stride, and input/output sizes. Reproduce the t=1 and reduction=2 case, then determine the expected behavior when the computed np.arange step is zero. Done means the case no longer raises ZeroDivisionError and the relevant behavior is covered by an appropriate test.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
numpy, python
Área
computer-vision, machine-learning
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.