question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncertain behavior when used transform.py

See original GitHub issue

Hey. Using the https://github.com/fizyr/keras-retinanet/blob/master/keras_retinanet/utils/transform.py#L236 at the training stage, I encountered strange behavior, the error increases with each epoch:

Epoch 1/50 car 0.1321 mAP: 0.1321 Epoch 2/50 car 0.1134 mAP: 0.1134 Epoch 3/50 car 0.1032 mAP: 0.1032 Epoch 4/50 car 0.0870 mAP: 0.0870

I use the following conversion options:

def random_transform(
    min_rotation=0,
    max_rotation=0.6,
    min_translation=(0, 0),
    max_translation=(0.2, 0.2),
    min_shear=0,
    max_shear=1,
    min_scaling=(0.8, 0.8),
    max_scaling=(1.5, 1.5),
    flip_x_chance=0.5,
    flip_y_chance=0.5,
    prng=DEFAULT_PRNG
) 

return np.linalg.multi_dot([
        random_rotation(min_rotation, max_rotation, prng),
        random_scaling(min_scaling, max_scaling, prng),
        random_flip(flip_x_chance, flip_y_chance, prng)
    ])

At the same time, if I use only the flip_x / flip_y, everything is fine:

Epoch 00001 car 0.7827 mAP: 0.7827 Epoch 00002 car 0.8040 mAP: 0.8040 Epoch 00003 car 0.8143 mAP: 0.8143

What could be the reason for this behavior, and how do I use data augmentation?

return random_flip(flip_x_chance, flip_y_chance, prng)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
de-vri-escommented, Feb 23, 2018

@Maswor: I don’t think that is the same issue. If you have a recurring problem, could you open a new issue?

0reactions
hgaisercommented, Mar 1, 2018

Closing due to inactivity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pandas transform inconsistent behavior for list - Stack Overflow
I thought about mutability/immutability (list/tuple) but for set/frozenset it is consistent. The question is why it works in this way? python ...
Read more >
Unspecified vs. Uncertain Behavior Skin Lesion Diagnosis Code
Use the “uncertain” behavior diagnosis code when histologic confirmation whether the neoplasm is malignant or benign cannot be made by the ...
Read more >
By the Book … Uncertain Behavior is not Unspecified
A diagnosis of uncertain histologic behavior is a legitimate diagnosis. It means that the lesion is currently benign, but could become malignant ...
Read more >
2023 ICD-10-CM Diagnosis Code D48.9
ICD 10 code for Neoplasm of uncertain behavior, unspecified. Get free rules, notes, crosswalks, synonyms, history for ICD-10 code D48.9.
Read more >
pickle — Python object serialization — Python 3.11.1 ...
Pickling (and unpickling) is alternatively known as “serialization”, “marshalling,” 1 or “flattening”; however, to avoid confusion, the terms used here are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found