0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【StereoDepth】 SADかMSEどっち派?

Posted at

背景

Stereo MachingでなんとなくSADを使っていたのだがMSEの方が良いのではと思い、とりあえず実験の記録を残して置く。

left image

![left.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/482094/aceab6ef-9791-719b-d6c4-b064b712b395.png)

left estimated

![estLeft.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/482094/bd53573d-2d46-129c-63ae-649e3789ddd7.png)

SAD

![SAD.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/482094/9de19bb4-9b74-4143-0fff-9e0c5d83f067.png)
        SAD_left = torch.mean(torch.abs(left - estLeft))
        SAD_right = torch.mean(torch.abs(right - estRight))

MSE

![MSE.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/482094/c59104c6-d40e-7377-de00-a0283e313332.png)
        SAD_left = torch.mean((left - estLeft)**2)
        SAD_right = torch.mean((right - estRight)**2)

結論

理論的に当然なのだが、MSEの方がよりErrorに対して反応が強くなるので、MSEを使って行きたいと思う

SADの方がいいよ〜っていう意見あったら教えてください!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?