System information
What is the top-level directory of the model you are using:
DeepLab v3
Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Windows 10
TensorFlow installed from (source or binary):
With pip3 binary installation
TensorFlow version (use command below):
1.7 CPU only
Bazel version (if compiling from source):
CUDA/cuDNN version:
Not used
GPU model and memory:
Not used
Exact command to reproduce:
This is a followup from https://github.com/tensorflow/models/issues/4064 issue which was closed even though the proposed or though-of solution did not work.
I am in same boat where I want to increase the size of image supported from 513px to atleast 2k or ideally 4k.
I tried re-exporting the frozen graph set to 2052 crop_size
python export_model.py --checkpoint_path deeplabv3_pascal_trainval/model.ckpt --export_path deeplabv3_pascal_trainval/1024/frozen_inference_graph.pb --crop_size 1024 --crop_size 1024 --atrous_rates 12 --atrous_rates 24 --atrous_rates 36 --model_variant="xception_65"
and changed the input_size in seg.py from 513 to 2052. The script executes without any errors but the exported file is blank/black and of 12KB instead.
I retrain the model with crop_size = 256, and export it, but the prediction is wrong, its pixel label is too large(64424509440). My scripts:
CUDA_VISIBLE_DEVICES=2 python3 train.py \
--logtostderr \
--training_number_of_steps=300000 \
--train_split="train" \
--model_variant="mobilenet_v2" \
--atrous_rates=6 \
--atrous_rates=12 \
--atrous_rates=18 \
--output_stride=16 \
--decoder_output_stride=4 \
--train_crop_size=256 \
--train_crop_size=256 \
--train_batch_size=8 \
--dataset="pascal_voc_seg" \
--tf_initial_checkpoint=./mobilenet_v2_1.0_224.ckpt \
--train_logdir=./my-train-log-mbv2 \
--dataset_dir=./datasets/pascal_voc_seg/tfrecord
python3 export_model.py \
--logtostderr \
--checkpoint_path=./my-train-log-mbv2/model.ckpt-300000 \
--export_path=./datasets/pascal_voc_seg/exp/export/deeplabv3+_mobilenet_v2.pb \
--model_variant="mobilenet_v2" \
--atrous_rates=6 \
--atrous_rates=12 \
--atrous_rates=18 \
--output_stride=16 \
--decoder_output_stride=4 \
--num_classes=21 \
--crop_size=256 \
--crop_size=256 \
--inference_scales=1.0
Is there something wrong?
This should be one of the most commonly asked questions/improvements yet cannot find anything or any info on how to achieve this anywhere.
训练mobilenet的时候--atrous_rates=6 不设置,见train.py, 另外crop_size 貌似要设置成4的倍数+1.
Hi There,
We are checking to see if you still need help on this, as this seems to be an old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing.
If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.
Was anyone ever able to solve this?
Most helpful comment
This should be one of the most commonly asked questions/improvements yet cannot find anything or any info on how to achieve this anywhere.