Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Conversation

@tkornuta-ibm
Copy link
Contributor

No description provided.

@aasseman aasseman self-requested a review April 26, 2019 22:37
Copy link
Contributor

@aasseman aasseman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still got an error:

[2019-04-26 15:36:02] - INFO - validation >>> Problem for 'validation' loaded (size: 500)
Traceback (most recent call last):
  File "/home/alexis/miniconda3/bin/ptp-online-trainer", line 11, in <module>
    load_entry_point('ptp', 'console_scripts', 'ptp-online-trainer')()
  File "/home/alexis/pytorchpipe/ptp/workers/online_trainer.py", line 346, in main
    trainer.setup_experiment()
  File "/home/alexis/pytorchpipe/ptp/workers/online_trainer.py", line 63, in setup_experiment
    super(OnlineTrainer, self).setup_experiment()
  File "/home/alexis/pytorchpipe/ptp/workers/trainer.py", line 252, in setup_experiment
    self.validation_dict = next(iter(self.validation.dataloader))
  File "/home/alexis/miniconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 637, in __next__
    return self._process_next_batch(batch)
  File "/home/alexis/miniconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 658, in _process_next_batch
    raise batch.exc_type(batch.exc_msg)
UnboundLocalError: Traceback (most recent call last):
  File "/home/alexis/miniconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 138, in _worker_loop
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/home/alexis/miniconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 138, in <listcomp>
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/home/alexis/pytorchpipe/ptp/components/problems/image_text_to_class/vqa_med_2019.py", line 499, in __getitem__
    if self.predict_yes_no(item[self.key_answers]):
  File "/home/alexis/pytorchpipe/ptp/components/problems/image_text_to_class/vqa_med_2019.py", line 516, in predict_yes_no
    first_token = tokens[0]
UnboundLocalError: local variable 'tokens' referenced before assignment

@aasseman aasseman added the bug Something isn't working label Apr 26, 2019
Copy link
Contributor Author

@tkornuta-ibm tkornuta-ibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah... this happens when you have 2 minutes to next meeting and make fixes without testing :] not professional. Thanks! 👍

@tkornuta-ibm tkornuta-ibm merged commit 9a8004a into develop Apr 27, 2019
@aasseman aasseman deleted the vqa_med_yn_fix branch April 27, 2019 01:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants