thuml / Transfer-Learning-Library

Transfer Learning Library for Domain Adaptation, Task Adaptation, and Domain Generalization
http://transfer.thuml.ai
MIT License
3.39k stars 553 forks source link

after install from github, it report indentation error when import tllib #190

Closed zhouyu5 closed 1 year ago

zhouyu5 commented 1 year ago

Describe the bug after install from github, it report indentation error when import tllib

To Reproduce Steps to reproduce the behavior:

  1. install from github
    git clone https://github.com/thuml/Transfer-Learning-Library.git /tmp/tllib && \
    cd /tmp/tllib/ && \
    pip install -r requirements.txt && \
    python setup.py install && \
    rm -rf /tmp/tllib
  2. then import tllib,
    import tllib
  3. then error occurs
    File /****/python3.9/site-packages/tllib-0.4-py3.9.egg/tllib/ranking/hscore.py:69
    f = features.astype('float64')
                                  ^
    IndentationError: unindent does not match any outer indentation level

Expected behavior No error occurs

Screenshots image

thucbx99 commented 1 year ago

We have fixed this bug