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

Upgrade torch to 1.8.1 and torchvision to 0.9.1 (feedback required) #145

Closed
wants to merge 6 commits into from

Conversation

ad-daniel
Copy link
Collaborator

@ad-daniel ad-daniel commented Oct 28, 2021

Notes:

  • I had to change the external repository for DCNv2 from https://github.com/MatthewHowe/DCNv2 to https://github.com/jinfagang/DCNv2_latest because it was breaking for 1.8. If your tool uses it, please doublecheck if everything works fine.

Tests that work:

  • engine
  • utils
  • perception/activity_recognition
  • perception/compressive_learning
  • perception/face_recognition
  • perception/heart_anomaly_detection
  • perception/multimodal_human_centric
  • perception/pose_estimation
  • perception/speech_recognition
  • perception/skeleton_based_action_recognition
  • perception/semantic_segmentation
  • control/mobile_manipulation
  • perception/object_detection_2d/
  • simulation/human_model_generation
  • perception/facial_expression_recognition/landmark_based_facial_expression_recognition
  • perception/object_tracking_2d/deep_sort

Tests that fail:

  • perception/object_tracking_2d/fair_mot. I'm getting:
from DCN import DCN
ModuleNotFoundError: No module named 'DCN'

is it supposed to be dcn module ? (lowercase)

  • perception/object_detection_3d. I'm getting:
numba.cuda.cudadrv.error.NvvmError: Failed to compile

<unnamed> (54, 23): parse expected comma after load's type
NVVM_ERROR_COMPILATION

could be a local issue, can somebody else double check if it fails for you as well?

  • perception/object_tracking_3d
    • This test was already deactivated. Still needs to be fixed.
    • The error is:
numba.cuda.cudadrv.error.NvvmError: Failed to compile

<unnamed> (54, 23): parse expected comma after load's type
NVVM_ERROR_COMPILATION

Missing test :

  • perception/panoptic_segmentation/efficient_ps
    • the test doesn't appear to be in the list although a test is available
    • since it's added as a submodule, the change of the version has to occur on the original repo side. @vniclas if it's not a good idea to change the dependency on that end, is it possible at least to modify the current dependency from
python-dependencies=torch==1.7.1
python=torchvision==0.8.2

to

python-dependencies=torch>=1.7.1
python=torchvision>=0.8.2

?

@ad-daniel ad-daniel added enhancement New feature or request test sources Run style checks test tools Test the toolkit methods labels Oct 28, 2021
@ad-daniel ad-daniel changed the title Upgrade torch to 1.8.1 and torchvision to 0.9.1 Upgrade torch to 1.8.1 and torchvision to 0.9.1 (feedback required) Oct 29, 2021
@vniclas
Copy link
Collaborator

vniclas commented Oct 29, 2021

@ad-daniel We cannot run the tests for perception/panoptic_segmentation/efficient_ps in the GitHub actions since it requires a GPU, please see the discussion in PR #96. Hence, we (approved by @stefaniapedrazzi) decided to skip it in the workflow file. Generally, it is better to run all tests also locally when suggesting a global update to the toolkit.

Upgrading to PyTorch 1.8.1 is not possible for perception/panoptic_segmentation/efficient_ps as the base repo modifies code from an earlier release of mmdetection, supporting neither a CPU-only installation nor torch==1.8.1 .

@vniclas vniclas added the help wanted Extra attention is needed label Oct 29, 2021
@ad-daniel
Copy link
Collaborator Author

ad-daniel commented Oct 29, 2021

I see, that'd be a problem. It seems that the doc showed on monday wasn't complete, detectron2 is available for torch 1.7 here (expand "read more") so we might not need to do the upgrade after all. I'm waiting for Amir's response.

@ad-daniel
Copy link
Collaborator Author

It doesn't appear that it's required to upgrade to 1.8 just yet, so for now I'm closing the PR.

@ad-daniel ad-daniel closed this Nov 15, 2021
@ad-daniel ad-daniel deleted the upgrade-torch-to-1.8 branch December 17, 2021 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed test sources Run style checks test tools Test the toolkit methods
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants