Toma0916 / GlobalWheatDetection

3 stars 0 forks source link

Effdetでキメる #80

Closed kminoda closed 4 years ago

kminoda commented 4 years ago

がんばろう

Toma0916 commented 4 years ago

ImportError: cannot import name 'xywh2xyxy' from 'utils.functions' (/home/toma/kaggle/GlobalWheatDetection/utils/functions.py)

これある??

Toma0916 commented 4 years ago

utils.functionsの中に無いぞ??

kminoda commented 4 years ago

addしてませんでした!!!!!

kminoda commented 4 years ago

condaであがけた?

Toma0916 commented 4 years ago

tabun?

どっかでminodaのとこへのパスがハードコードされてそうで怒られている

kminoda commented 4 years ago

エラーメッセージみせて

Toma0916 commented 4 years ago

PermissionError: [Errno 13] Permission denied: '/home/minoda/git/GlobalWheatDetection/mlruns/4/85952b4dced840f5bd9b324b1e0362c7'

mlflowやな

kminoda commented 4 years ago

それ俺も前に発生したわ もしかしてmlflowってユーザごとに分けた方が良いのか?となった

Toma0916 commented 4 years ago
artifact_location: file:///home/toma/kaggle/GlobalWheatDetection/mlruns/2
experiment_id: '2'
lifecycle_stage: active
name: toma

これ相対パスじゃないんやな

Toma0916 commented 4 years ago

わけないとダメか??

Toma0916 commented 4 years ago

これ相対パスでかけないのかな

kminoda commented 4 years ago

困りましたな

Toma0916 commented 4 years ago

とりあえずeffdetじゃない方は動いた

kminoda commented 4 years ago

よかた effdetうごかん?

Toma0916 commented 4 years ago

手っ取り早く解決しそうな方法は実行時にmlruns以下のすべてのファイルのパス表記を自分の環境以下に合うように書き換えるスクリプト書くこと? 相対パスでかけたら楽だけど...

Toma0916 commented 4 years ago

effdetいまから

Toma0916 commented 4 years ago
Traceback (most recent call last):
  File "train.py", line 222, in <module>
    train_epoch()
  File "train.py", line 82, in train_epoch
    loss_dict = model(images, targets)
  File "/home/toma/kaggle/GlobalWheatDetection/model.py", line 149, in __call__
    loss, _, _ = self.model(images, boxes, labels)
  File "/home/toma/anaconda3/envs/gwd/lib/python3.8/site-packages/torch/nn/modules/module.py", line 550, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/toma/kaggle/GlobalWheatDetection/utils/effdet/bench.py", line 105, in forward
    return self.loss_fn(class_out_origin, box_out_origin, cls_targets, box_targets, num_positives)
  File "/home/toma/anaconda3/envs/gwd/lib/python3.8/site-packages/torch/nn/modules/module.py", line 550, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/toma/kaggle/GlobalWheatDetection/utils/effdet/loss.py", line 183, in forward
    cls_loss = _classification_loss(
  File "/home/toma/kaggle/GlobalWheatDetection/utils/effdet/loss.py", line 102, in _classification_loss
    classification_loss = focal_loss(cls_outputs, cls_targets, alpha, gamma, normalizer)
  File "/home/toma/kaggle/GlobalWheatDetection/utils/effdet/loss.py", line 29, in focal_loss
    cross_entropy = F.binary_cross_entropy_with_logits(logits, targets.to(logits.dtype), reduction='none')
  File "/home/toma/anaconda3/envs/gwd/lib/python3.8/site-packages/torch/nn/functional.py", line 2433, in binary_cross_entropy_with_logits
    raise ValueError("Target size ({}) must be the same as input size ({})".format(target.size(), input.size()))
ValueError: Target size (torch.Size([1, 32, 32, 9])) must be the same as input size (torch.Size([1, 64, 64, 9]))

とりあえずこれでた

kminoda commented 4 years ago

configでimage_size=512にした?

Toma0916 commented 4 years ago

動いたわ デフォルト256になってた

kminoda commented 4 years ago

あ、すまん なんで256だと動かないのか謎だがまあ後で

Toma0916 commented 4 years ago

色々動作確認して大丈夫そうだったらマージしときます

実験の共有どうしようか

kminoda commented 4 years ago

共有とは?一般の話?

Toma0916 commented 4 years ago

さっきしてた話

kminoda commented 4 years ago

mlflowね ま別issueで

Toma0916 commented 4 years ago

できる子なので256で動かしました

Toma0916 commented 4 years ago

俺側の変更とバッティングした

Toma0916 commented 4 years ago

ちょいまち

Toma0916 commented 4 years ago

耐えたか?

kminoda commented 4 years ago

できるこ!!!!!

Toma0916 commented 4 years ago

見た感じ大丈夫そうだけど適当なfasterrcnnでちゃんと学習してるかだけ最後見るわ!

Toma0916 commented 4 years ago

resnet101ちゃんと動いたのでたぶん大丈夫?

kminoda commented 4 years ago

ワシもそれ確認中 多分1時間くらいしたらちゃんとわかると思う

kminoda commented 4 years ago

fasterでもeffでも、scoreがちょっと低い現象とか起きてませんか? effで学習してると、validの画像見る感じちゃんと学習してるんだけど、scoreが0.1あたりをうろうろしていたので少なくともeffでは少しおかしいことが起きているかもしれない fasterも確認中だけど多分大丈夫そう(?)

Toma0916 commented 4 years ago

じゃあ一応僕faster50_cocoとeffdetちょい回してみるわ

Toma0916 commented 4 years ago

sample_json/config.jsonだけコンフリクトで良かった

kminoda commented 4 years ago

すばらしい

kminoda commented 4 years ago

なんかこれfasterrcnnの方も低く出ている気がするんですけどどうですか?

kminoda commented 4 years ago

なんかこれfasterrcnnの方も低く出ている気がするんですけどどうですか?

Toma0916 commented 4 years ago

いま散歩中で帰ったらチェックしますわ

Toma0916 commented 4 years ago

バリデーションで地域ごとに分けてるからとかないです?

kminoda commented 4 years ago

masterでも同じ結果だったからこれには関係ないかな ちなみにvalidationは地域ではないですね

kminoda commented 4 years ago

なのでマージして良さそう 大丈夫そうだったら言ってください

Toma0916 commented 4 years ago

俺はvalidation地域ごとでオーグメント0でやったけどスコア0.35くらいまでいってたのでたぶん大丈夫じゃないですかね。

後処理のパラメタとかも関係ありそう。

kminoda commented 4 years ago

かもね マージします