HenriquesLab / HenriquesLab/ZeroCostDL4Mic

EmpedSeg: requested version for torch and torchvision not found, with different versions type error while training

Open
#306 2 comments 0 reactions 1 assignee View on GitHub

@esgomezm is already working on this.

Since Jan 17, 2024.

bug dependencies
Dominant language
Jupyter Notebook
Stars
652
Forks
144
PR merge metrics
No merged PRs in 30d

Description

In section 1.1. Install key dependencies the requested versions for torch (1.5.1) and torchvision (0.6.1) are not found, so I installed the packages without version requirement (ended up with torch 2.1.2 and torchvision 0.16.2).
In section 4.2. Start Training I got following error:
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
I guess it might be related to the different torch version...
Everything else was running as expected (skipped sections 3.2 and 3.3).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.