TEXTOIR icon indicating copy to clipboard operation
TEXTOIR copied to clipboard

intent detection: methods/ADB/pretrain.py cannot import name 'sigmoid_rampup', 'linear_rampup'

Open Ancrilin opened this issue 1 year ago • 1 comments

Hi~ Thank you so much for your open-source platform. I want to run MSP method in intent detection. I run this commonds sh examples/run_ADB.sh and sh examples/run_MAP.sh. The platform would first run methods/__init__.py, but in methods/ADB/pretrain.py that cannot import name 'sigmoid_rampup' and 'linear_rampup'. I found that 'sigmoid_rampup' and 'linear_rampup' not in utils/functions.py. What should I do to run the method (MSP, ADB, etc.) in the examples ?

Ancrilin avatar Oct 21 '22 14:10 Ancrilin

And I can not install all the dependencies by running pip install -r requirements.txt. The differences are:

  1. mkl_random==1.2.2
  2. torch==1.7.1+cu110
  3. Pillow==8.4.0
  4. transformers==4.23.1 In order to be more user-friendly, please clean and update the reqiurements.txt

Ancrilin avatar Oct 21 '22 14:10 Ancrilin

Hi~ Thank you so much for your open-source platform. I want to run MSP method in intent detection. I run this commonds sh examples/run_ADB.sh and sh examples/run_MAP.sh. The platform would first run methods/init.py, but in methods/ADB/pretrain.py that cannot import name 'sigmoid_rampup' and 'linear_rampup'. I found that 'sigmoid_rampup' and 'linear_rampup' not in utils/functions.py. What should I do to run the method (MSP, ADB, etc.) in the examples ?

We don't use the two functions and have deleted them in methods/ADB/pretrain.py. It should work now. Thanks for your mentioning.

HanleiZhang avatar Oct 23 '22 03:10 HanleiZhang

And I can not install all the dependencies by running pip install -r requirements.txt. The differences are:

  1. mkl_random==1.2.2
  2. torch==1.7.1+cu110
  3. Pillow==8.4.0
  4. transformers==4.23.1 In order to be more user-friendly, please clean and update the reqiurements.txt

We have updated the requirements.txt and you can download the newest version and try again.

HanleiZhang avatar Oct 23 '22 03:10 HanleiZhang