質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

0回答

341閲覧

nnUNetを使ってトレーニングをしたいです。

Shion007

総合スコア0

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

0グッド

0クリップ

投稿2023/01/24 20:55

編集2023/01/25 02:32

前提

前立腺画像を使ってnnUNet (https://github.com/MIC-DKFZ/nnUNet) で機械学習をしたいと考えています。以下のサイトを参照しながら前立腺画像Task05_Prostateをデカトロンデータに変換する際(?)にエラーが発生しました。
https://github.com/MIC-DKFZ/nnUNet/blob/master/documentation/dataset_conversion.md

実現したいこと

エラーを解決してnnUNetを使って機械学習させたいです。python歴は浅く、素人ですが、お力添えをいただけませんでしょうか?

発生している問題・エラーメッセージ

Please cite the following paper when using nnUNet:

Isensee, F., Jaeger, P.F., Kohl, S.A.A. et al. "nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation." Nat Methods (2020). https://doi.org/10.1038/s41592-020-01008-z

If you have questions or suggestions, feel free to open an issue at https://github.com/MIC-DKFZ/nnUNet

nnUNet_raw_data_base is not defined and nnU-Net can only be used on data for which preprocessed files are already present on your system. nnU-Net cannot be used for experiment planning and preprocessing like this. If this is not intended, please read documentation/setting_up_paths.md for information on how to set this up properly.
nnUNet_preprocessed is not defined and nnU-Net can not be used for preprocessing or training. If this is not intended, please read documentation/setting_up_paths.md for information on how to set this up.
RESULTS_FOLDER is not defined and nnU-Net cannot be used for training or inference. If this is not intended behavior, please read documentation/setting_up_paths.md for information on how to set this up.
Traceback (most recent call last):
File "/Users/user/.pyenv/versions/3.9.13/bin/nnUNet_convert_decathlon_task", line 33, in <module>
sys.exit(load_entry_point('nnunet', 'console_scripts', 'nnUNet_convert_decathlon_task')())
File "/Users/user/nnUNetFrame/nnUNet/nnunet/experiment_planning/nnUNet_convert_decathlon_task.py", line 60, in main
split_4d(args.i, args.p, args.output_task_id)
File "/Users/user/nnUNetFrame/nnUNet/nnunet/experiment_planning/utils.py", line 53, in split_4d
output_folder = join(nnUNet_raw_data, "Task%03.0d_" % overwrite_task_output_id + task_name)
File "/Users/user/.pyenv/versions/3.9.13/lib/python3.9/posixpath.py", line 76, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

該当のソースコード

ソースコード (nnUnet) ~/nnUNetFrame/dataset/nnUNet_raw/nnUNet_raw_data$ nnUNet_convert_decathlon_task -i Task05_Prostate ### 試したこと TypeError: expected str, bytes or os.PathLike object, not NoneType に対して、以下のサイトを参照しましたが、どのようにしたらよいかよくわかりませんでした。これを解決するための方法を教えていただきたいです、 https://github.com/MIC-DKFZ/nnUNet/issues/53 ### 補足情報(FW/ツールのバージョンなど) OS: M2 Mac

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

can110

2023/01/24 23:33

以下を含め、環境構築から実行までに必要な手順はおこなっているでしょうか https://github.com/MIC-DKFZ/nnUNet#installation nnU-Net needs to know where you intend to save raw data, preprocessed data and trained models. For this you need to set a few of environment variables. Please follow the instructions here.
Shion007

2023/01/26 20:46

ご質問ありがとうございます。はい。保存先、Pathは作成しています。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問