class-balanced-loss icon indicating copy to clipboard operation
class-balanced-loss copied to clipboard

Class-Balanced Loss Based on Effective Number of Samples. CVPR 2019

Results 18 class-balanced-loss issues
Sort by recently updated
recently updated
newest added

Hi, I am using your implementation of focal loss, and sometimes the value calculated is nan. I realized that it is due to the normalization in terms of positive samples...

Hello! I've found a performance issue in tpu/models/: `batch()` should be called before `map()`, which could make your program more efficient. Here is [the tensorflow document](https://tensorflow.google.cn/guide/data_performance?hl=zh_cn#vectorized_mapping) to support it. Detailed...

Hi Yin Thanks for sharing the code! I wanted to run your code on my own or some new dataset and get the corresponding evaluation metrics. Can you help me...

Hello,[this issue](https://github.com/richardaecn/class-balanced-loss/issues/20) shows the reason that I commit this PR. I sincerely wish my PR will help you.And if you think my PR has a little work,Hoping you could merge...

Hello,I found a performance issue in the definition of `__call__` , tpu/models/official/retinanet/dataloader.py, [dataset = dataset.map(_process_example)](https://github.com/richardaecn/class-balanced-loss/blob/1d7857208a2abc03d84e35a9d5383af8225d4b4d/tpu/models/official/retinanet/dataloader.py#L379) was called without **num_parallel_calls**. I think it will increase the efficiency of your program if...

I use ./cifar_trainval.sh to train,but it occurs some problems,why? Traceback (most recent call last): File "/environment/python/versions/miniconda3-4.7.12/envs/tf1.15/lib/python3.7/site-packages/tensorflow_core/python/client/session.py", line 1365, in _do_call return fn(*args) File "/environment/python/versions/miniconda3-4.7.12/envs/tf1.15/lib/python3.7/site-packages/tensorflow_core/python/client/session.py", line 1350, in _run_fn target_list, run_metadata)...

I want to know what the difference between N and E_n in the paper? Does N means the number of all samples?

Hi! First of all, thank you ver much for your code, it's a great work! I would like to know if you could tell me the part where the class-balanced-loss...

I try to compted En as a weight in batch data, but loss quickly change to NAN. I always try to compute in whole dataset, img_per_class =[900000,700000,60000], because img_num is...

Is `n_y` computed from the whole dataset or each batch? Thanks a lot.