Skip to content

Commit

Permalink
downgrade pytorch (#220)
Browse files Browse the repository at this point in the history
* downgrade pytorch

PyTorch 2.2.0 causes some problems with CI. This should temporarily solve the issue until we find a proper fix

* pin torchvision version to match torch
  • Loading branch information
dkupnicki authored Feb 6, 2024
1 parent a4f1b0d commit 522f0bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/setup/install_frameworks.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
try:
import torch
except ModuleNotFoundError:
subprocess.check_call([sys.executable, "-m", "pip", "install", f"torch"])
subprocess.check_call([sys.executable, "-m", "pip", "install", f"torch<2.2"])
native_frameworks.append("PyTorch")
try:
import torchvision
except ModuleNotFoundError:
subprocess.check_call([sys.executable, "-m", "pip", "install", f"torchvision"])
subprocess.check_call([sys.executable, "-m", "pip", "install", f"torchvision==0.16.2"])


# summary
Expand Down

0 comments on commit 522f0bf

Please sign in to comment.