Open ashlaban opened 5 years ago
I almost forgot, there was an issue with the tensorboard output as well, so we had to disable that.
Thanks for bringing up the issues (and the patch)! We're working on moving the entire codebase up to PyTorch-1.1 and Python-3.7 currently and it should be out soon.
Great, looking forward to it then! Feel free to close the issue when the new version is out ;)
s for bringing up the issues (and the patch)! We're working on moving the entire codebase up to PyTorch-1.1 and Python-3.7 currently and it should be out soon.
is this available now?
Setting up diva on a new machine (without conda, but the problem should apply in the conda case as well since the torch version is not pinned and the latest conda version is torch@1.1) we ran into some issues:
1) In
util/data/get_a_dataset.py
the dataset properties changed fromto
. This should apply to all datasets loaded through the same mechanism.
2) It seems torch no longer supports accessing 0-dim elements through array indexing. As such this change was required:
loss.data[0]
->loss.data.item()
intemplate/runner/image_classification/evaluate.py
andtemplate/runner/image_classification/train.py
. Should be applicable also to apply_model etc.3) Something is fishy with the arrays returned from
_load_mean_std_from_file
, thetransforms.Normalize
cannot convert the input mean and std to float tensors, instead the input is considered ofdtype=np.object
. Checksetup_dataloader
intemplate/setup.py
.If I find the time I will also provide a proper PR for these problems. For now, please see attached patch.
PATCH