Closed weiruchenmike closed 4 years ago
我的圖片都是各400張
你在dataset的結構對不對 我的是 mask_dataset ├── test │ ├── face │ │ └── xxx.jpg │ └── mask │ └── yyy.jpg └── train ├── face │ └── xxx2.jpg └── mask └── yyy2.jpg 給你參考
謝謝您的回答,但我想問一下,圖片不是要放在mask下嗎,要放同一層?(放face下我知道)
Capillary J notifications@github.com 於 2020年2月9日 週日 下午2:20 寫道:
你在dataset的結構對不對 我的是 mask_dataset ├── test │ ├── face │ │ └── xxx.jpg │ └── mask │ └── yyy.jpg └── train ├── face │ └── xxx2.jpg └── mask └── yyy2.jpg 給你參考
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7NUGKCNBMQA4CF62ZLRB6ODZA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGDR4Y#issuecomment-583809267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7IIH4JIBSM5NVCM43DRB6ODZANCNFSM4KR3V2WA .
謝謝您的回答,但我想問一下,圖片不是要放在mask下嗎,要放同一層?(放face下我知道) Capillary J notifications@github.com 於 2020年2月9日 週日 下午2:20 寫道: … 你在dataset的結構對不對 我的是 mask_dataset ├── test │ ├── face │ │ └── xxx.jpg │ └── mask │ └── yyy.jpg └── train ├── face │ └── xxx2.jpg └── mask └── yyy2.jpg 給你參考 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#2?email_source=notifications&email_token=AOBTK7NUGKCNBMQA4CF62ZLRB6ODZA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGDR4Y#issuecomment-583809267>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7IIH4JIBSM5NVCM43DRB6ODZANCNFSM4KR3V2WA .
你說的沒錯 我上面的空白跑版了 囧 圖片在mask和face資料夾底下 然後長寬要一樣
所以圖片大小都要一樣嗎?
Capillary J notifications@github.com 於 2020年2月9日 週日 下午6:40 寫道:
謝謝您的回答,但我想問一下,圖片不是要放在mask下嗎,要放同一層?(放face下我知道) Capillary J notifications@github.com 於 2020年2月9日 週日 下午2:20 寫道: … <#m6511656129555193213> 你在dataset的結構對不對 我的是 mask_dataset ├── test │ ├── face │ │ └── xxx.jpg │ └── mask │ └── yyy.jpg └── train ├── face │ └── xxx2.jpg └── mask └── yyy2.jpg 給你參考 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#2 https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7NUGKCNBMQA4CF62ZLRB6ODZA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGDR4Y#issuecomment-583809267>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7IIH4JIBSM5NVCM43DRB6ODZANCNFSM4KR3V2WA . 你說的沒錯 我上面的空白跑版了 囧 圖片在mask和face資料夾底下 然後長寬要一樣
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7KCPIZGBJCMVBOG5QTRB7MTVA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGIUCY#issuecomment-583830027, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7LULDW3Q4ZBF5AECD3RB7MTVANCNFSM4KR3V2WA .
所因為我訓練集是從網路上抓了各400張,而測試也是各40張,所以大小要統一嗎 128x128?
陳韋儒 agaryaagarya@gmail.com 於 2020年2月9日 週日 下午6:53 寫道:
所以圖片大小都要一樣嗎?
Capillary J notifications@github.com 於 2020年2月9日 週日 下午6:40 寫道:
謝謝您的回答,但我想問一下,圖片不是要放在mask下嗎,要放同一層?(放face下我知道) Capillary J notifications@github.com 於 2020年2月9日 週日 下午2:20 寫道: … <#m_-6514411710475553381_m6511656129555193213> 你在dataset的結構對不對 我的是 mask_dataset ├── test │ ├── face │ │ └── xxx.jpg │ └── mask │ └── yyy.jpg └── train ├── face │ └── xxx2.jpg └── mask └── yyy2.jpg 給你參考 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#2 https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7NUGKCNBMQA4CF62ZLRB6ODZA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGDR4Y#issuecomment-583809267>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7IIH4JIBSM5NVCM43DRB6ODZANCNFSM4KR3V2WA . 你說的沒錯 我上面的空白跑版了 囧 圖片在mask和face資料夾底下 然後長寬要一樣
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7KCPIZGBJCMVBOG5QTRB7MTVA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGIUCY#issuecomment-583830027, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7LULDW3Q4ZBF5AECD3RB7MTVANCNFSM4KR3V2WA .
大小自行決定一個固定值即可 可參考train.py的IMG_SHAPE 我的範例是112
全部都要嗎,因為感覺是沒匯入
Capillary J notifications@github.com 於 2020年2月9日 週日 下午7:18 寫道:
大小自行決定一個固定值即可 可參考train.py的IMG_SHAPE 我的範例是112
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7LKEPPIOM452HQ4KGTRB7Q75A5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGJNXQ#issuecomment-583833310, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7NHH32WF6SRQNEQA4LRB7Q75ANCNFSM4KR3V2WA .
因為自己圖片那時後,圖片大小不同,所以跑出那個錯誤,是因為這原因,不好意思,問題有點多
陳韋儒 agaryaagarya@gmail.com 於 2020年2月9日 週日 下午7:32 寫道:
全部都要嗎,因為感覺是沒匯入
Capillary J notifications@github.com 於 2020年2月9日 週日 下午7:18 寫道:
大小自行決定一個固定值即可 可參考train.py的IMG_SHAPE 我的範例是112
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7LKEPPIOM452HQ4KGTRB7Q75A5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGJNXQ#issuecomment-583833310, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7NHH32WF6SRQNEQA4LRB7Q75ANCNFSM4KR3V2WA .
喔喔 所以解決了嗎?
沒欸,條成128x128還是一樣
Capillary J notifications@github.com 於 2020年2月9日 週日 下午11:12 寫道:
喔喔 所以解決了嗎?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7PYTXKKTP5YGKDSCKTRCAMPVA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGO74A#issuecomment-583856112, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7IQ4FR53GPWMJPNNVTRCAMPVANCNFSM4KR3V2WA .
那麻煩你在
train_data_set = train_data_set.prefetch(buffer_size=AUTOTUNE)
之後加入
iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
看看取到的next是不是訓練用的資料
還有我當初使用的版本是 tensorflow2.0.0
好,我試試 謝謝
Capillary J notifications@github.com 於 2020年2月9日 週日 下午11:29 寫道:
那請你試試 那麻煩你在
train_data_set = train_data_set.prefetch(buffer_size=AUTOTUNE)
之後加入
iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
看看取到的next是不是訓練用的資料
還有我當初使用的版本是 tensorflow2.0.0
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7NQNRRGSAO4H2STI23RCAONBA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGPNEI#issuecomment-583857809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7NX6AT7AXSPJV4VMUTRCAONBANCNFSM4KR3V2WA .
還是會跑出錯誤 ,而且iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
陳韋儒 agaryaagarya@gmail.com 於 2020年2月9日 週日 下午11:30寫道:
好,我試試 謝謝
Capillary J notifications@github.com 於 2020年2月9日 週日 下午11:29 寫道:
那請你試試 那麻煩你在
train_data_set = train_data_set.prefetch(buffer_size=AUTOTUNE)
之後加入
iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
看看取到的next是不是訓練用的資料
還有我當初使用的版本是 tensorflow2.0.0
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7NQNRRGSAO4H2STI23RCAONBA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGPNEI#issuecomment-583857809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7NX6AT7AXSPJV4VMUTRCAONBANCNFSM4KR3V2WA .
跑錯誤訊息
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:46寫道:
還是會跑出錯誤 ,而且iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
陳韋儒 agaryaagarya@gmail.com 於 2020年2月9日 週日 下午11:30寫道:
好,我試試 謝謝
Capillary J notifications@github.com 於 2020年2月9日 週日 下午11:29 寫道:
那請你試試 那麻煩你在
train_data_set = train_data_set.prefetch(buffer_size=AUTOTUNE)
之後加入
iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
看看取到的next是不是訓練用的資料
還有我當初使用的版本是 tensorflow2.0.0
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7NQNRRGSAO4H2STI23RCAONBA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGPNEI#issuecomment-583857809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7NX6AT7AXSPJV4VMUTRCAONBANCNFSM4KR3V2WA .
[image: image.png] [image: image.png] [image: image.png]
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:46寫道:
跑錯誤訊息
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:46寫道:
還是會跑出錯誤 ,而且iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
陳韋儒 agaryaagarya@gmail.com 於 2020年2月9日 週日 下午11:30寫道:
好,我試試 謝謝
Capillary J notifications@github.com 於 2020年2月9日 週日 下午11:29 寫道:
那請你試試 那麻煩你在
train_data_set = train_data_set.prefetch(buffer_size=AUTOTUNE)
之後加入
iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
看看取到的next是不是訓練用的資料
還有我當初使用的版本是 tensorflow2.0.0
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7NQNRRGSAO4H2STI23RCAONBA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGPNEI#issuecomment-583857809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7NX6AT7AXSPJV4VMUTRCAONBANCNFSM4KR3V2WA .
希望不要造成你的負擔,如果覺得麻煩,就跟我說,我就不再煩你(但還是希望你能幫我解惑,因為剛進入這領域,哈哈 )
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:48寫道:
[image: image.png] [image: image.png] [image: image.png]
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:46寫道:
跑錯誤訊息
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:46寫道:
還是會跑出錯誤 ,而且iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
陳韋儒 agaryaagarya@gmail.com 於 2020年2月9日 週日 下午11:30寫道:
好,我試試 謝謝
Capillary J notifications@github.com 於 2020年2月9日 週日 下午11:29 寫道:
那請你試試 那麻煩你在
train_data_set = train_data_set.prefetch(buffer_size=AUTOTUNE)
之後加入
iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
看看取到的next是不是訓練用的資料
還有我當初使用的版本是 tensorflow2.0.0
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7NQNRRGSAO4H2STI23RCAONBA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGPNEI#issuecomment-583857809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7NX6AT7AXSPJV4VMUTRCAONBANCNFSM4KR3V2WA .
[image: image.png]
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:49寫道:
希望不要造成你的負擔,如果覺得麻煩,就跟我說,我就不再煩你(但還是希望你能幫我解惑,因為剛進入這領域,哈哈 )
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:48寫道:
[image: image.png] [image: image.png] [image: image.png]
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:46寫道:
跑錯誤訊息
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:46寫道:
還是會跑出錯誤 ,而且iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
陳韋儒 agaryaagarya@gmail.com 於 2020年2月9日 週日 下午11:30寫道:
好,我試試 謝謝
Capillary J notifications@github.com 於 2020年2月9日 週日 下午11:29 寫道:
那請你試試 那麻煩你在
train_data_set = train_data_set.prefetch(buffer_size=AUTOTUNE)
之後加入
iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
看看取到的next是不是訓練用的資料
還有我當初使用的版本是 tensorflow2.0.0
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7NQNRRGSAO4H2STI23RCAONBA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGPNEI#issuecomment-583857809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7NX6AT7AXSPJV4VMUTRCAONBANCNFSM4KR3V2WA .
感覺問題出在這
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午4:00寫道:
[image: image.png]
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:49寫道:
希望不要造成你的負擔,如果覺得麻煩,就跟我說,我就不再煩你(但還是希望你能幫我解惑,因為剛進入這領域,哈哈 )
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:48寫道:
[image: image.png] [image: image.png] [image: image.png]
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:46寫道:
跑錯誤訊息
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午3:46寫道:
還是會跑出錯誤 ,而且iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
陳韋儒 agaryaagarya@gmail.com 於 2020年2月9日 週日 下午11:30寫道:
好,我試試 謝謝
Capillary J notifications@github.com 於 2020年2月9日 週日 下午11:29 寫道:
那請你試試 那麻煩你在
train_data_set = train_data_set.prefetch(buffer_size=AUTOTUNE)
之後加入
iter = train_data_set.make_one_shot_iterator()
next = iter.get_next()
print(next)
看看取到的next是不是訓練用的資料
還有我當初使用的版本是 tensorflow2.0.0
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7NQNRRGSAO4H2STI23RCAONBA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGPNEI#issuecomment-583857809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7NX6AT7AXSPJV4VMUTRCAONBANCNFSM4KR3V2WA .
我弄了一個簡單的測試集 https://drive.google.com/file/d/1261u_3Pi5TaSuxvIZAhL3lV5SCjWa-TP/view?usp=sharing 你把它下載解壓縮放到dataset資料集
然後train.py還原到最原始的狀態 並修改上面的參數變成
TRAIN_DATA_PATH = 'dataset/mask_dataset/train/'
TEST_DATA_PATH = 'dataset/mask_dataset/test/'
OUTPUT_MODEL_FOLDER = 'exported/'
CLASS_NAMES = np.array([])
AUTOTUNE = tf.data.experimental.AUTOTUNE
EPOCHS = 5
IMG_SHAPE = (224, 224, 3)
BATCH_SIZE = 1
這樣子跑跑看有沒有問題
還是會報那個錯誤 我把檔案傳給你好了(我改回來我的版本都是128X128) mask_checker-master.zip https://drive.google.com/file/d/15C4-9e1-ntXqVFOQqBL6icCExD3jgrdg/view?usp=drive_web
Capillary J notifications@github.com 於 2020年2月10日 週一 下午4:26寫道:
我弄了一個簡單的測試集
https://drive.google.com/file/d/1261u_3Pi5TaSuxvIZAhL3lV5SCjWa-TP/view?usp=sharing 你把它下載解壓縮放到dataset資料集
然後train.py還原到最原始的狀態 並修改上面的參數變成
TRAIN_DATA_PATH = 'dataset/mask_dataset/train/'
TEST_DATA_PATH = 'dataset/mask_dataset/test/'
OUTPUT_MODEL_FOLDER = 'exported/'
CLASS_NAMES = np.array([])
AUTOTUNE = tf.data.experimental.AUTOTUNE
EPOCHS = 5
IMG_SHAPE = (224, 224, 3)
BATCH_SIZE = 1
這樣子跑跑看有沒有問題
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7LJGP6JHZJBOWF4IZ3RCEFUDA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELHUEIA#issuecomment-584008224, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7IPYZ36PC7BBEHYZR3RCEFUDANCNFSM4KR3V2WA .
我沒權限無法下載
會不會是系統問題,你是用mac 我是window
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午5:02寫道:
還是會報那個錯誤 我把檔案傳給你好了(我改回來我的版本都是128X128) mask_checker-master.zip https://drive.google.com/file/d/15C4-9e1-ntXqVFOQqBL6icCExD3jgrdg/view?usp=drive_web
Capillary J notifications@github.com 於 2020年2月10日 週一 下午4:26寫道:
我弄了一個簡單的測試集
https://drive.google.com/file/d/1261u_3Pi5TaSuxvIZAhL3lV5SCjWa-TP/view?usp=sharing 你把它下載解壓縮放到dataset資料集
然後train.py還原到最原始的狀態 並修改上面的參數變成
TRAIN_DATA_PATH = 'dataset/mask_dataset/train/'
TEST_DATA_PATH = 'dataset/mask_dataset/test/'
OUTPUT_MODEL_FOLDER = 'exported/'
CLASS_NAMES = np.array([])
AUTOTUNE = tf.data.experimental.AUTOTUNE
EPOCHS = 5
IMG_SHAPE = (224, 224, 3)
BATCH_SIZE = 1
這樣子跑跑看有沒有問題
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7LJGP6JHZJBOWF4IZ3RCEFUDA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELHUEIA#issuecomment-584008224, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7IPYZ36PC7BBEHYZR3RCEFUDANCNFSM4KR3V2WA .
連結開了
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午5:07寫道:
會不會是系統問題,你是用mac 我是window
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午5:02寫道:
還是會報那個錯誤 我把檔案傳給你好了(我改回來我的版本都是128X128) mask_checker-master.zip https://drive.google.com/file/d/15C4-9e1-ntXqVFOQqBL6icCExD3jgrdg/view?usp=drive_web
Capillary J notifications@github.com 於 2020年2月10日 週一 下午4:26寫道:
我弄了一個簡單的測試集
https://drive.google.com/file/d/1261u_3Pi5TaSuxvIZAhL3lV5SCjWa-TP/view?usp=sharing 你把它下載解壓縮放到dataset資料集
然後train.py還原到最原始的狀態 並修改上面的參數變成
TRAIN_DATA_PATH = 'dataset/mask_dataset/train/'
TEST_DATA_PATH = 'dataset/mask_dataset/test/'
OUTPUT_MODEL_FOLDER = 'exported/'
CLASS_NAMES = np.array([])
AUTOTUNE = tf.data.experimental.AUTOTUNE
EPOCHS = 5
IMG_SHAPE = (224, 224, 3)
BATCH_SIZE = 1
這樣子跑跑看有沒有問題
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7LJGP6JHZJBOWF4IZ3RCEFUDA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELHUEIA#issuecomment-584008224, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7IPYZ36PC7BBEHYZR3RCEFUDANCNFSM4KR3V2WA .
你訓練用的圖片如果是128的話 那你train.py 也要改成128
IMG_SHAPE = (128, 128, 3)
可是我改了也沒過==
你有跑過嗎?
你的訓練圖片有問題 有0kb的檔案 281kerGee_8c017527b4efd549.jpg 576kerGee_2738952dbcdb30a0.jpg
非常感謝
不過刪完之後,還是有錯(圖片有捕數量回來)
Capillary J notifications@github.com 於 2020年2月10日 週一 下午5:25寫道:
你的訓練圖片有問題 有0kb的檔案 281kerGee_8c017527b4efd549.jpg 576kerGee_2738952dbcdb30a0.jpg
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7MNSVOMSPP7FQO2BK3RCEMQRA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELHZOHY#issuecomment-584029983, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7NQVODDTJ5ZQCF33Z3RCEMQRANCNFSM4KR3V2WA .
補數量是什麼意思? 我這邊是刪完之後就可以train了
複製train裡面圖捕到400張
Capillary J notifications@github.com 於 2020年2月10日 週一 下午5:40寫道:
補數量是什麼意思? 我這邊是刪完之後就可以train了
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7LN7BWGJXQTXUPGZ7LRCEOHJA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELH22VQ#issuecomment-584035670, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7KCTEYSQAFCJZWHDJ3RCEOHJANCNFSM4KR3V2WA .
錯誤訊息?
File "
你把剛剛錯誤的圖片刪掉不補新圖片直接跑會有問題嗎?
還是一樣 是window問題?還是版本? 我是使用pip install -r requirements.txt
好像是window的問題,因為我在linux上跑tensorflow==2.0.0b0 也可以過
linux上沒有tensorflow==2.0.0,只有tensorflow==2.0.0b0和tensorflow==2.0.0a0
我自己在ubuntu上
pip install tensorflow==2.0.1
是可以的 不過既然是版本問題,那就麻煩你自己解決了
好,謝謝
Capillary J notifications@github.com 於 2020年2月10日 週一 下午6:31寫道:
我自己在ubuntu上
pip install tensorflow==2.0.1
是可以的 不過既然是版本問題,那就麻煩你自己解決了
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7PUCEO3SDOM75TKMHDRCEUJRA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELH77UI#issuecomment-584056785, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7KIMXKZ46HOOAHCESDRCEUJRANCNFSM4KR3V2WA .
話說你是用python幾?
陳韋儒 agaryaagarya@gmail.com 於 2020年2月10日 週一 下午6:36寫道:
好,謝謝
Capillary J notifications@github.com 於 2020年2月10日 週一 下午6:31寫道:
我自己在ubuntu上
pip install tensorflow==2.0.1
是可以的 不過既然是版本問題,那就麻煩你自己解決了
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7PUCEO3SDOM75TKMHDRCEUJRA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELH77UI#issuecomment-584056785, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7KIMXKZ46HOOAHCESDRCEUJRANCNFSM4KR3V2WA .
python 3.6 以下是pip freeze資訊
absl-py==0.8.0
astor==0.8.0
beautifulsoup4==4.8.2
bs4==0.0.1
cachetools==4.0.0
certifi==2019.11.28
chardet==3.0.4
Click==7.0
cloudpickle==1.2.2
cv-core==1.18
cycler==0.10.0
dask==2.10.1
decorator==4.4.1
dlib==19.17.0
face-recognition==1.2.3
face-recognition-models==0.3.0
gast==0.2.2
google-auth==1.11.0
google-auth-oauthlib==0.4.1
google-pasta==0.1.7
graphviz==0.8.4
grpcio==1.24.0
gTTS==2.0.3
gTTS-token==1.1.3
h5py==2.10.0
idna==2.6
joblib==0.14.1
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
kiwisolver==1.1.0
Markdown==3.1.1
matplotlib==3.1.1
mock==4.0.0
mtcnn==0.1.0
mxnet==1.5.1.post0
networkx==2.4
numpy==1.16.2
oauthlib==3.1.0
opencv-python==4.0.0.21
opt-einsum==3.1.0
pandas==0.24.2
Pillow==6.2.0
prompt-toolkit==1.0.14
protobuf==3.9.2
pyasn1==0.4.8
pyasn1-modules==0.2.8
Pygments==2.5.2
PyInquirer==1.0.3
pyparsing==2.4.2
pyserial==3.4
python-dateutil==2.8.0
pytz==2019.3
PyWavelets==1.1.1
PyYAML==3.13
regex==2020.1.8
requests==2.22.0
requests-oauthlib==1.3.0
rsa==4.0
scikit-image==0.14.2
scikit-learn==0.20.3
scipy==1.4.1
six==1.12.0
soupsieve==1.9.5
tensorboard==2.0.2
tensorflow==2.0.1
tensorflow-addons==0.6.0
tensorflow-cpu==2.1.0
tensorflow-estimator==2.0.1
tensorflow-hub==0.7.0
tensorflowjs==1.5.2
termcolor==1.1.0
toolz==0.10.0
tqdm==4.31.1
urllib3==1.22
wcwidth==0.1.8
Werkzeug==0.16.0
wrapt==1.11.2
xmltodict==0.12.0
非常感謝
我發現window上要改成這樣,因為路徑問題 def get_label(file_path): parts = tf.strings.split(file_path, '\') one_hot = tf.cast(parts[-2] == CLASS_NAMES, tf.float32) return one_hot
Capillary J notifications@github.com 於 2020年2月10日 週一 下午6:40寫道:
python 3.6 以下是pip freeze資訊
absl-py==0.8.0
astor==0.8.0
beautifulsoup4==4.8.2
bs4==0.0.1
cachetools==4.0.0
certifi==2019.11.28
chardet==3.0.4
Click==7.0
cloudpickle==1.2.2
cv-core==1.18
cycler==0.10.0
dask==2.10.1
decorator==4.4.1
dlib==19.17.0
face-recognition==1.2.3
face-recognition-models==0.3.0
gast==0.2.2
google-auth==1.11.0
google-auth-oauthlib==0.4.1
google-pasta==0.1.7
graphviz==0.8.4
grpcio==1.24.0
gTTS==2.0.3
gTTS-token==1.1.3
h5py==2.10.0
idna==2.6
joblib==0.14.1
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
kiwisolver==1.1.0
Markdown==3.1.1
matplotlib==3.1.1
mock==4.0.0
mtcnn==0.1.0
mxnet==1.5.1.post0
networkx==2.4
numpy==1.16.2
oauthlib==3.1.0
opencv-python==4.0.0.21
opt-einsum==3.1.0
pandas==0.24.2
Pillow==6.2.0
prompt-toolkit==1.0.14
protobuf==3.9.2
pyasn1==0.4.8
pyasn1-modules==0.2.8
Pygments==2.5.2
PyInquirer==1.0.3
pyparsing==2.4.2
pyserial==3.4
python-dateutil==2.8.0
pytz==2019.3
PyWavelets==1.1.1
PyYAML==3.13
regex==2020.1.8
requests==2.22.0
requests-oauthlib==1.3.0
rsa==4.0
scikit-image==0.14.2
scikit-learn==0.20.3
scipy==1.4.1
six==1.12.0
soupsieve==1.9.5
tensorboard==2.0.2
tensorflow==2.0.1
tensorflow-addons==0.6.0
tensorflow-cpu==2.1.0
tensorflow-estimator==2.0.1
tensorflow-hub==0.7.0
tensorflowjs==1.5.2
termcolor==1.1.0
toolz==0.10.0
tqdm==4.31.1
urllib3==1.22
wcwidth==0.1.8
Werkzeug==0.16.0
wrapt==1.11.2
xmltodict==0.12.0
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jason9075/mask_checker/issues/2?email_source=notifications&email_token=AOBTK7PJG7PMZYMYODUV4H3RCEVKRA5CNFSM4KR3V2WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELIA3BY#issuecomment-584060295, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBTK7ODEZPALDUQEMD72ADRCEVKRANCNFSM4KR3V2WA .
我是初學者,我嘗試用你的模型去訓練資料 結果跑出以下錯誤tensorflow.python.framework.errors_impl.InvalidArgumentError: slice index -1 of dimension 0 out of bounds.請問是甚麼問題