Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue at test phase #15

Open
bobvo23 opened this issue Jun 12, 2021 · 1 comment
Open

Issue at test phase #15

bobvo23 opened this issue Jun 12, 2021 · 1 comment

Comments

@bobvo23
Copy link

bobvo23 commented Jun 12, 2021

I tried to run the code. The training loop ran smoothly. However, it seems that there is a bug at the test phase

Reproduce

Clone the repository and ran the main python file

python main.py
20 sparse dataset loaded.
test ...
Traceback (most recent call last):
  File "main.py", line 47, in <module>
    runner.run(MyTrainer, MyDataset)
  File "/usr/local/lib/python3.7/dist-packages/easytorch/easytorch.py", line 286, in run
    self._run(trainer_cls, dataset_cls, data_handle_cls)
  File "/usr/local/lib/python3.7/dist-packages/easytorch/easytorch.py", line 328, in _run
    test_accum.append(self._test(split_file, trainer, test_dataset))
  File "/usr/local/lib/python3.7/dist-packages/easytorch/easytorch.py", line 270, in _test
    test_out = trainer.evaluation(mode='test', save_pred=True, distributed=False, dataset=test_dataset)
  File "/usr/local/lib/python3.7/dist-packages/easytorch/trainer.py", line 287, in evaluation
    update_scores(self.save_predictions(loader.dataset, its), its, avg, metrics)
  File "/content/unet-vessel-segmentation-easytorch/classification.py", line 118, in save_predictions
    patches = its['output']()[:, 1, :, :].cpu().numpy() * 255
TypeError: 'Tensor' object is not callable
@sraashis
Copy link
Owner

Could you try updating eeverything(easytoch and this repo) to latest and try again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants