How chunminghe/feder works
FEDER is a camouflaged-object detection research model. Its main workflow loads images and masks, trains the network with segmentation and auxiliary edge-reconstruction losses, then runs inference to produce prediction maps for evaluation. The README also describes feature decomposition, frequency attention, guided feature aggregation, and edge reconstruction; these model branches are shown at the documented capability level. Some implementation details and Test.py were not sampled, so those relationships rely on README statements rather than inspected call sites.
Main entry points: Network.py FEDER network · Train.py Training loop · Test.py Inference runner · data_val.py Test data loader
Components 16
Train and inference
- Training loop
Train.py - Inference runner
Test.py - Training utilities
utils/utils.py
FEDER model
- FEDER network
lib/Network.py - Feature decomposition
lib/Modules.py - Frequency attention
lib/Modules.py - Guided aggregation
lib/Modules.py - Edge reconstruction
lib/Modules.py - Gated convolution
lib/GatedConv.py
Data handling
- Training data loader
utils/data_val.py - Test data loader
utils/data_val.py - Image-mask loader
utils/dataloader.py
Other components
- Researcher
- COD datasets
- Prediction maps
- Evaluation tools
Connections 17
- Researcher → Training loop: starts training
README.md - Researcher → Inference runner: runs inference
README.md - COD datasets → Training data loader: provides samples
README.md - COD datasets → Test data loader: provides samples
README.md - Training loop → Training data loader: loads batches
Train.py - Training loop → FEDER network: trains
Train.py - Training loop → Training utilities: uses helpers
Train.py - Inference runner → Test data loader: loads images
README.md - Inference runner → FEDER network: runs model
README.md - Inference runner → Prediction maps: writes maps
README.md - Prediction maps → Evaluation tools: evaluated by
README.md - FEDER network → Feature decomposition: decomposes features
lib/Network.py - FEDER network → Frequency attention: attends bands
README.md - FEDER network → Guided aggregation: aggregates features
lib/Network.py - FEDER network → Edge reconstruction: reconstructs edges
lib/Network.py - Feature decomposition → Gated convolution: uses layer
lib/Modules.py - Image-mask loader → Test data loader: supports visualization