Closed JuneJulyAugust closed 1 year ago
The cvxpylayers version installed:
pip list | grep cvxpylayers
cvxpylayers 0.1.5
This is cvxpy version installed, I will try an older version.
pip list | grep cvxpy
cvxpy 1.3.0
I think I figured out a solution by myself. Now the training is running.
Here is my changes of requirements.txt. I used scipy and cvxpy release in the summer of 2021.
diff --git a/requirements.txt b/requirements.txt
index 41f9294..0ae4ddc 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,6 @@
# Standard
numpy
+scipy==1.7.0
matplotlib
seaborn
pandas
@@ -16,8 +17,8 @@ pytorch-lightning==1.3.4
torchmetrics==0.5.1
# Optimization
-cvxpy>=1.1.14
-cvxpylayers
+cvxpy==1.1.14
+cvxpylayers==0.1.4
gurobipy==9.1.2
osqp
ecos
Thanks for reporting this bug! I was able to reproduce it on my laptop and it does seem to be a version incompatibility with cvxpy 1.3. I'll fix the version at 1.2.2 (the last known working version) in an upcoming PR
This should be resolved as of PR #16, but please re-open if the issue persists and I'll be happy to help.
It works. Thanks for the fix.
Hi, I don't have a gurobi license, so I set disable_hurobi=True to run the training:
python -m neural_clbf.training.train_kinematic_car --gpus=1
But I got this error: