SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2201.02593 · CVPR · 2022

Equalized Focal Loss for Dense Long-Tailed Object Detection

Bo Li, Fengwei Yu, Gang Zhang, Yongqiang Yao, Jingru Tan, Jianwei Lu, Ye Luo

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2201.02593.json · badge: /api/ran/2201.02593.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ModelTC/EOD canonical (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
FunctionStatusWhere it lives
revise_cls Ran
ran on a synthesized input
ModelTC/EOD/configs/convert.py
code served (permissive licence) · get_code("56accaab9249dc45")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'data': {
        'dataset': {
            'train': {
                'dataset': {
                    'kwargs': {
                        'meta_file': 'original_train_meta.txt',
                        'image_reader': {
                            'type': 'pillow',
                            'kwargs': {
                                'image_dir': 'original_train_dir',
                                'memcached': True
                            }
                        }
                    }
                }
            },
            'test': {
                'dataset': {
                    'kwargs': {
                        'meta_file': 'original_test_meta.txt',
                        'image_reader': {
                            'type': 'pillow',
                            'kwargs': {
                                'image_dir': 'original_test_dir',
                                'memcached': True
                            }
                        }
                    }
                }
            }
        },
        'saver': {
            'pretrain_model': 'original_pretrain_path'
        },
        'mimic': {
            'teacher': {
                'teacher_weight': 'original_teacher.pth.tar'
            }
        }
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
revise_det Ran
ran on a synthesized input
ModelTC/EOD/configs/convert.py
code served (permissive licence) · get_code("13fea2bae65c1b3e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'data': {
        'dataset': {
            'train': {
                'dataset': {
                    'type': 'coco',
                    'kwargs': {
                        'meta_file': 'old_train_meta.json',
                        'image_reader': {
                            'type': 'ceph_opencv',
                            'kwargs': {
                                'image_dir': 'old_train_dir'
                            }
                        },
                        'cache': {
                            'cache_dir': 'old_cache_dir',
                            'cache_name': 'old_cache.pkl'
                        }
                    }
                }
            },
            'test': {
                'dataset': {
                    'type': 'coco',
                    'kwargs': {
                        'meta_file': 'old_test_meta.json',
                        'image_reader': {
                            'type': 'ceph_opencv',
                            'kwargs': {
                                'image_dir': 'old_test_dir'
                            }
                        },
                        'cache': {
                            'cache_dir': 'old_cache_dir',
                            'cache_name': 'old_cache.pkl'
                        },
                        'evaluator': {
                            'kwargs': {
                                'gt_file': 'old_gt.json'
                            }
                        }
                    }
                }
            }
        },
        'saver': {
            'pretrain_model': 'old_pretrain.pth',
            'resume_model': 'old_resume.pth'
        },
        'mimic': {
            'teacher': {
                'teacher_weight': 'old_teacher.pth.tar'
            }
        }
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
revise_ssl Ran
ran on a synthesized input
ModelTC/EOD/configs/convert.py
code served (permissive licence) · get_code("8b707972d22a5595")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'data': {
        'dataset': {
            'train': {
                'dataset': {
                    'kwargs': {
                        'meta_file': 'original_meta.txt',
                        'image_reader': {
                            'type': 'original_type',
                            'kwargs': {
                                'image_dir': 'original_dir'
                            }
                        }
                    }
                }
            },
            'test': {
                'dataset': {
                    'kwargs': {
                        'meta_file': 'original_test_meta.txt',
                        'image_reader': {
                            'type': 'original_test_type',
                            'kwargs': {
                                'image_dir': 'original_test_dir'
                            }
                        }
                    }
                }
            }
        },
        'saver': {
            'pretrain_model': 'original_pretrain_path',
            'other_key': 'other_value'
        }
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
revise_cls 1 other paper
1 later
2208.08630 (2022-08)
Unifying Visual Perception by Dispersible Points Learning
revise_det 1 other paper
1 later
2208.08630 (2022-08)
Unifying Visual Perception by Dispersible Points Learning
revise_ssl 1 other paper
1 later
2208.08630 (2022-08)
Unifying Visual Perception by Dispersible Points Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Despite the recent success of long-tailed object detection, almost all long-tailed object detectors are developed based on the two-stage paradigm. In practice, one-stage detectors are more prevalent in the industry because they have a simple and fast pipeline that is easy to deploy. However, in the long-tailed scenario, this line of work has not been explored so far. In this paper, we investigate whether one-stage detectors can perform well in this case. We discover the primary obstacle that prevents one-stage detectors from achieving excellent performance is: categories suffer from different degrees of positive-negative imbalance problems under the long-tailed data distribution. The conventional focal loss balances the training process with the same modulating factor for all categories, thus failing to handle the long-tailed problem. To address this issue, we propose the Equalized Focal Loss (EFL) that rebalances the loss contribution of positive and negative samples of different categories independently according to their imbalance degrees. Specifically, EFL adopts a category-relevant modulating factor which can be adjusted dynamically by the training status of different categories. Extensive experiments conducted on the challenging LVIS v1 benchmark demonstrate the effectiveness of our proposed method. With an end-to-end training pipeline, EFL achieves 29.2% in terms of overall AP and obtains significant performance improvements on rare categories, surpassing all existing state-of-the-art methods. The code is available at https: //github.com/ModelTC/EOD. * Equal Contribution. † Corresponding Author. backbone Two-stage Pipeline One-stage Pipeline foreground background backbone RPN ROIAlign two-stage det-head rare common frequent background rare common frequent background one-stage det-head

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2201.02593")
get_code_for_paper("2201.02593")
have("2201.02593")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2201.02593.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2201.02593.svg)](https://syntology.ai/paper/2201.02593)

Connect an agent — have() is free.