cache
Browse files- runner/inference.py +6 -7
runner/inference.py
CHANGED
@@ -206,13 +206,12 @@ def download_infercence_cache(configs: Any, model_version: str = "v0.2.0") -> No
|
|
206 |
|
207 |
data_cache_dir = os.path.join(code_directory, "release_data/ccd_cache")
|
208 |
os.makedirs(data_cache_dir, exist_ok=True)
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
urllib.request.urlretrieve(tos_url, cache_path)
|
216 |
|
217 |
if not os.path.exists('./release_data/ccd_cache/components.v20240608.cif.rdkit_mol.pkl'):
|
218 |
file_id = '1R9d678aBfQwTd0Rh15doRmW-fETNdeWf'
|
|
|
206 |
|
207 |
data_cache_dir = os.path.join(code_directory, "release_data/ccd_cache")
|
208 |
os.makedirs(data_cache_dir, exist_ok=True)
|
209 |
+
|
210 |
+
if not os.path.exists('./release_data/ccd_cache/components.v20240608.cif'):
|
211 |
+
file_id = '1e8wxpuEB-0xL_3dlMfZCFo6cL5oSHSUK'
|
212 |
+
download_url = f'https://drive.google.com/uc?id={file_id}'
|
213 |
+
output_file = './release_data/ccd_cache/components.v20240608.cif'
|
214 |
+
gdown.download(download_url, output_file, quiet=False)
|
|
|
215 |
|
216 |
if not os.path.exists('./release_data/ccd_cache/components.v20240608.cif.rdkit_mol.pkl'):
|
217 |
file_id = '1R9d678aBfQwTd0Rh15doRmW-fETNdeWf'
|