質問編集履歴

3

コマンド入力の修正

2022/12/06 06:34

投稿

caffeine_0105
caffeine_0105

スコア4

test CHANGED
File without changes
test CHANGED
@@ -6,18 +6,20 @@
6
6
 
7
7
  GraphDefファイルを作るところで、コマンド入力
8
8
  >cd <tensorflow/models>
9
- >python research/slim/export_inference_graph.py \ --alsologtostderr \ --model_name=mobilenet_v2 \
9
+ >python research/slim/export_inference_graph.py \
10
+ >--alsologtostderr \
11
+ >--model_name=mobilenet_v2 \
10
- --dataset_name=imagenet \
12
+ >--dataset_name=imagenet \
11
- --batch_size=1 \
13
+ >--batch_size=1 \
12
- --image_size=224 \
14
+ >--image_size=224 \
13
- --output_file=<model checkpoint dir>/mobilenet_v2_1.0_graph.pb
15
+ > --output_file=<model checkpoint dir>/mobilenet_v2_1.0_graph.pb
14
16
  を実行したところ、
15
17
  ```
16
18
  指定されたファイルが見つかりません。
17
19
  ```
18
20
  と出てきます。しかし、
19
21
  >cd <tensorflow/models>
20
- python research/slim/export_inference_graph.py
22
+ >python research/slim/export_inference_graph.py
21
23
  と入力すると
22
24
  ```
23
25
  ValueError: You must supply the path to save to with --output_file

2

修正

2022/12/06 06:33

投稿

caffeine_0105
caffeine_0105

スコア4

test CHANGED
File without changes
test CHANGED
@@ -6,9 +6,7 @@
6
6
 
7
7
  GraphDefファイルを作るところで、コマンド入力
8
8
  >cd <tensorflow/models>
9
- >python research/slim/export_inference_graph.py \
9
+ >python research/slim/export_inference_graph.py \ --alsologtostderr \ --model_name=mobilenet_v2 \
10
- > --alsologtostderr \
11
- --model_name=mobilenet_v2 \
12
10
  --dataset_name=imagenet \
13
11
  --batch_size=1 \
14
12
  --image_size=224 \

1

コードの修正

2022/12/06 06:32

投稿

caffeine_0105
caffeine_0105

スコア4

test CHANGED
File without changes
test CHANGED
@@ -6,8 +6,8 @@
6
6
 
7
7
  GraphDefファイルを作るところで、コマンド入力
8
8
  >cd <tensorflow/models>
9
- python research/slim/export_inference_graph.py \
9
+ >python research/slim/export_inference_graph.py \
10
- --alsologtostderr \
10
+ > --alsologtostderr \
11
11
  --model_name=mobilenet_v2 \
12
12
  --dataset_name=imagenet \
13
13
  --batch_size=1 \