ProgressBar attribute error

Abierto
#823 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
python, pytorch

Línea de trabajo

Start with graphnet/training/callbacks.py, especially on_train_epoch_start around the call to self.train_progress_bar.set_description; the traceback shows this attribute is missing at runtime. Check how the installed PyTorch Lightning version exposes progress bars and review the project’s dependency constraints. Reproduce by running the reported training example, then confirm it proceeds past epoch start without the attribute error.

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

Descripción

bug

I was trying to run an example after installing the package. But it showed me the following error:

[rank0]: Traceback (most recent call last): [rank0]: File "/projects/hep/fs10/shared/nnbar/billy/graphnet/graphnet/examples/04_training/01_train_dynedge.py", line 250, in <module> [rank0]: main( [rank0]: File "/projects/hep/fs10/shared/nnbar/billy/graphnet/graphnet/examples/04_training/01_train_dynedge.py", line 165, in main [rank0]: model.fit( [rank0]: File "/projects/hep/fs10/shared/nnbar/billy/graphnet/graphnet/src/graphnet/models/easy_model.py", line 169, in fit [rank0]: trainer.fit( [rank0]: File "/home/scyiu/.conda/envs/graphnet_env/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 608, in fit [rank0]: call._call_and_handle_interrupt( [rank0]: File "/home/scyiu/.conda/envs/graphnet_env/lib/python3.10/site-packages/pytorch_lightning/trainer/call.py", line 36, in _call_and_handle_interrupt [rank0]: return trainer.strategy.launcher.launch(trainer_fn, *args, trainer=trainer, **kwargs) [rank0]: File "/home/scyiu/.conda/envs/graphnet_env/lib/python3.10/site-packages/pytorch_lightning/strategies/launchers/subprocess_script.py", line 88, in launch [rank0]: return function(*args, **kwargs) [rank0]: File "/home/scyiu/.conda/envs/graphnet_env/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 650, in _fit_impl [rank0]: self._run(model, ckpt_path=self.ckpt_path) [rank0]: File "/home/scyiu/.conda/envs/graphnet_env/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 1112, in _run [rank0]: results = self._run_stage() [rank0]: File "/home/scyiu/.conda/envs/graphnet_env/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 1191, in _run_stage [rank0]: self._run_train() [rank0]: File "/home/scyiu/.conda/envs/graphnet_env/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 1214, in _run_train [rank0]: self.fit_loop.run() [rank0]: File "/home/scyiu/.conda/envs/graphnet_env/lib/python3.10/site-packages/pytorch_lightning/loops/loop.py", line 198, in run [rank0]: self.on_advance_start(*args, **kwargs) [rank0]: File "/home/scyiu/.conda/envs/graphnet_env/lib/python3.10/site-packages/pytorch_lightning/loops/fit_loop.py", line 248, in on_advance_start [rank0]: self.trainer._call_callback_hooks("on_train_epoch_start") [rank0]: File "/home/scyiu/.conda/envs/graphnet_env/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 1394, in _call_callback_hooks [rank0]: fn(self, self.lightning_module, *args, **kwargs) [rank0]: File "/projects/hep/fs10/shared/nnbar/billy/graphnet/graphnet/src/graphnet/training/callbacks.py", line 136, in on_train_epoch_start [rank0]: self.train_progress_bar.set_description( [rank0]: AttributeError: 'ProgressBar' object has no attribute 'train_progress_bar'. Did you mean: '_main_progress_bar'? Epoch 0: 0%| | 0/4 [00:00<?, ? batch(es)/s]

Lenguaje dominante
Python
Estrellas
117
Forks
115
Merge medio
2 d 21 h
PR fusionados (30 d)
1

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de graphnet-team/graphnet

Todos los issues de graphnet-team/graphnet

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.