Skip to content

Commit

Permalink
fix: fix bug of clip install
Browse files Browse the repository at this point in the history
  • Loading branch information
chaofengc committed Jan 30, 2023
1 parent d59ca6a commit 53d176f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ tqdm
yapf
einops
imgaug
git+https://github.com/openai/CLIP.git
clip @ git+https://github.com/openai/CLIP.git
8 changes: 1 addition & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,7 @@ def get_version():
def get_requirements(filename='requirements.txt'):
here = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(here, filename), 'r') as f:
requires = []
for line in f.readlines():
line = line.replace('\n', '')
if 'http' in line and 'CLIP' in line:
requires.append(f'clip @ {line}')
else:
requires.append(line)
requires = [line.replace('\n', '') for line in f.readlines()]
return requires


Expand Down

0 comments on commit 53d176f

Please sign in to comment.