提交 511669a4 编写于 作者: D dongshuilong

fix bcolz install bug

上级 2a0ae609
import os import os
import json import json
import bcolz
import numpy as np import numpy as np
from PIL import Image from PIL import Image
import cv2 import cv2
...@@ -215,6 +214,8 @@ def read_memmap(mem_file_name): ...@@ -215,6 +214,8 @@ def read_memmap(mem_file_name):
def get_val_pair(path, name, use_memfile=True): def get_val_pair(path, name, use_memfile=True):
# installing bcolz should set proxy to access internet
import bcolz
if use_memfile: if use_memfile:
mem_file_dir = os.path.join(path, name, 'memfile') mem_file_dir = os.path.join(path, name, 'memfile')
mem_file_name = os.path.join(mem_file_dir, 'mem_file.dat') mem_file_name = os.path.join(mem_file_dir, 'mem_file.dat')
......
...@@ -9,5 +9,4 @@ scipy ...@@ -9,5 +9,4 @@ scipy
scikit-learn==0.23.2 scikit-learn==0.23.2
gast==0.3.3 gast==0.3.3
faiss-cpu==1.7.1.post2 faiss-cpu==1.7.1.post2
bcolz==1.2.1
scikit-learn==0.23.2 scikit-learn==0.23.2
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册