Skip to content

Commit 53445b2

Browse files
committed
update on model weight link
1 parent d340486 commit 53445b2

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,21 @@ conda deactivate
9494

9595
### 4. Download the trained HiCFoundation model
9696
You can download our pre-trained and fine-tuned model to ``hicfoundation_model`` for inference, embedding generation and fine-tuning purposes. <br>
97-
HiCFoundation model weights: [hicfoundation_model]() <br>
97+
HiCFoundation model weights: [hicfoundation_model](https://huggingface.co/wang3702/hicfoundation_models/) <br>
9898

99-
You can also use command line to do this
99+
You can also run the following command line to do this
100100
```commandline
101101
cd hicfoundation_model
102-
wget
102+
wget https://huggingface.co/wang3702/hicfoundation_models/blob/main/hicfoundation_pretrain.pth.tar
103+
wget https://huggingface.co/wang3702/hicfoundation_models/blob/main/hicfoundation_reproducibility.pth.tar
104+
wget https://huggingface.co/wang3702/hicfoundation_models/blob/main/hicfoundation_loop.pth.tar
105+
wget https://huggingface.co/wang3702/hicfoundation_models/blob/main/hicfoundation_loop_lc.pth.tar
106+
wget https://huggingface.co/wang3702/hicfoundation_models/blob/main/hicfoundation_resolution.pth.tar
107+
wget https://huggingface.co/wang3702/hicfoundation_models/blob/main/hicfoundation_epigenomic.pth.tar
108+
wget https://huggingface.co/wang3702/hicfoundation_models/blob/main/hicfoundation_schic.pth.tar
103109
cd ..
104110
```
105111

106-
If the link failed, you can also download our model files via our [lab server]() to ``hicfoundation_model`` directory.
107112

108113
### 5. (Optional) Visualization software
109114
Juicebox: https://aidenlab.org/juicebox/
@@ -280,7 +285,7 @@ python3 inference.py --input [input_file] --batch_size [infer_batch_size] --reso
280285
- input_submatrix_width: input submatrix column size, default: 224 (covers 224 MB region to predict 224 MB region).
281286
- stride: scanning stride for the input Hi-C matrix, default: 20.
282287
- scan_boundary: off-diagonal bound for the scanning, recommended: 250..
283-
- trained_model_path: load fine-tuned model for inference. Here the model should be [hicfoundation_sc.pth.tar](hicfoundation_model/hicfoundation_sc.pth.tar). Make sure you follow the installment instructions to download it before you run.
288+
- trained_model_path: load fine-tuned model for inference. Here the model should be [hicfoundation_schic.pth.tar](hicfoundation_model/hicfoundation_schic.pth.tar). Make sure you follow the installment instructions to download it before you run.
284289
- output_dir: output directory to save the results, default: hicfoundation_inference.
285290
- gpu: which gpu to use, default: None (will use all GPU). You can specify --gpu="0" to only use GPU 0, you can also specify --gpu="0,1" to use GPU0 and GPU1.
286291

@@ -291,7 +296,7 @@ The output is saved in the ``output_dir``, where the enhanced single-cell HiC ma
291296
##### Example command:
292297

293298
```
294-
python3 inference.py --input example/GSM7006609_ValbB8w1081.pairs --batch_size 4 --resolution 1000000 --task 5 --input_row_size 224 --input_col_size 224 --stride 20 --bound 250 --model_path hicfoundation_model/hicfoundation_sc.pth.tar --output hicfoundation_inference/sc_hic_enhancement --gpu "0"
299+
python3 inference.py --input example/GSM7006609_ValbB8w1081.pairs --batch_size 4 --resolution 1000000 --task 5 --input_row_size 224 --input_col_size 224 --stride 20 --bound 250 --model_path hicfoundation_model/hicfoundation_schic.pth.tar --output hicfoundation_inference/sc_hic_enhancement --gpu "0"
295300
```
296301

297302
This uses the given example ``GSM7006609_ValbB8w1081.pairs`` to run the inference. <br>

0 commit comments

Comments
 (0)