M
M
mihuzz2019-04-20 13:57:11
bash
mihuzz, 2019-04-20 13:57:11

/bin/bash: /content/gdrive/My: No such file or directory?


!export PYTHONPATH=$PYTHONPATH:`/content/gdrive/My Drive/colab_data/models/research/object_detection`:`/content/gdrive/My Drive/colab_data/models/research/object_detection`/slim python content/gdrive/My Drive/colab_data/models/research/object_detection/model_main.py \
    --pipeline_config_path=object_detection/my_data/pipeline.config \
    --model_dir=object_detection/my_data/output \
    --num_train_steps=1000 \
    --alsologtostderr

Trace
/bin/bash: /content/gdrive/My: No such file or directory
/bin/bash: /content/gdrive/My: No such file or directory
/bin/bash: line 0: export: `content/gdrive/ My': not a valid identifier
/bin/bash: line 0: export: `Drive/colab_data/models/research/object_detection/model_main.py': not a valid identifier
/bin/bash: line 0: export: `-- pipeline_config_path=object_detection/my_data/pipeline.config': not a valid identifier
/bin/bash: line 0: export: `--model_dir=object_detection/my_data/output': not a valid identifier
/bin/bash: line 0: export : `--num_train_steps=1000': not a valid identifier
/bin/bash: line 0: export: `--alsologtostderr': not a valid identifier
checked:
!ls=>model_main.py
config
<fine_tune_checkpoint: "/content/gdrive/My Drive/colab_data/models/research/object_detection/ssd_mobilenet_v1_coco_2018_01_28/model.ckpt"
  from_detection_checkpoint: true
  num_steps: 20000
}
train_input_reader {
  label_map_path: "/content/gdrive/My Drive/colab_data/models/research/object_detection/my_data/32classes_label_map.pbtxt"
  tf_record_input_reader {
    input_path: "/content/gdrive/My Drive/colab_data/models/research/object_detection/my_data/train_data.record"
  }
}
eval_config {
  num_examples: 4280
  max_evals: 10
  use_moving_averages: false
}
eval_input_reader {
  label_map_path: "/content/gdrive/My Drive/colab_data/models/research/object_detection/my_data/32classes_label_map.pbtxt"
  shuffle: false
  num_readers: 1
  tf_record_input_reader {
    input_path: "/content/gdrive/My Drive/colab_data/models/research/object_detection/my_data/test_data.record"
  }
}/code>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Fedoseev, 2019-04-20
@martin74ua

paths containing spaces - put in quotation marks.
Those. something like "/content/gdrive/My Drive/colab_data/models/research/object_detection"
only double quotes, not backticks. The backquote is the command to run the contents of the string )

C
CityCat4, 2019-04-20
@CityCat4

I would recommend not to brainwash the quotes, but simply rename "My Drive" to "My_Drive" for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question