MCPcopy Index your code
hub / github.com/JinyuanLiu-CV/HoLoCo

github.com/JinyuanLiu-CV/HoLoCo @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
117 symbols 285 edges 20 files 0 documented · 0% updated 3y ago★ 332 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

HoLoCo

Official Code for: Jinyuan Liu, Guanyao Wu, Junsheng Luan, Zhiying Jiang, Risheng Liu, Xin Fan,“HoLoCo: Holistic and Local Contrastive Learning Network for Multi-exposure Image Fusion”*, Information Fusion[J], 2023.

Preview of HoLoCo


preview


Set Up on Your Own Machine

Virtual Environment

We strongly recommend that you use Conda as a package manager.

# create virtual environment
conda create -n holoco python=3.10
conda activate holoco
# select and install pytorch version yourself (Necessary & Important)
# install requirements package
pip install -r requirements.txt

Download Checkpoints

Before testing or training HoLoCo, we strongly recommend downloading the following pre-trained model and placing them in ./checkpoints folder.

Test / Train

This code natively supports the same naming for over-/under-exposed image pairs. An naming example can be found in ./datasets/SICE folder.

# Test: use given example and save fused color images to result/SICE
# If you want to test the custom data, please modify the file path in 'test.py'
python start_test.py

# Train: 
# Please prepare the custom data and change the modifiable options in 'start_train.py' (optional)
python start_train.py

Citation

If this work has been helpful to you, we would appreciate it if you could cite our paper!

@article{liu2023holoco,
  title={HoLoCo: Holistic and local contrastive learning network for multi-exposure image fusion},
  author={Liu, Jinyuan and Wu, Guanyao and Luan, Junsheng and Jiang, Zhiying and Liu, Risheng and Fan, Xin},
  journal={Information Fusion},
  year={2023},
  publisher={Elsevier}
}

Core symbols most depended-on inside this repo

forward
called by 13
models/networks.py
save_network
called by 10
models/base_model.py
compute_vgg_loss
called by 6
models/networks.py
save
called by 5
models/base_model.py
forward
called by 4
models/doubleNetG_model.py
load_network
called by 4
models/base_model.py
parse
called by 2
options/base_options.py
create_model
called by 2
models/models.py

Shape

Method 75
Function 25
Class 17

Languages

Python100%

Modules by API surface

models/networks.py27 symbols
models/separateNetG_model.py15 symbols
models/doubleNetG_model.py14 symbols
models/base_model.py13 symbols
data/custom_dataset_data_loader.py6 symbols
data/base_dataset.py6 symbols
MEFSSIM/lossfunction.py6 symbols
data/pair_dataset.py5 symbols
util/util.py4 symbols
options/base_options.py4 symbols
data/base_data_loader.py4 symbols
test.py3 symbols

For agents

$ claude mcp add HoLoCo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact