Question: I'm working with the new [Google object\_detection api](https://github.com/tensorflow/models/tree/master/object_detection) on my own dataset
In the config file there are fields `eval_config` and `eval_input_reader`, but I don't understand how to make them work.

I've also found a file in tensorflow/models/object\_detection/ the file `eval.py` which seems to run the evaluation but I don't entirely understand what these args are:

```
 ./eval \
        --logtostderr \
        --checkpoint_dir=path/to/checkpoint_dir \
        --eval_dir=path/to/eval_dir \
        --pipeline_config_path=pipeline_config.pbtxt

```

Suppose I have a model checkpoint (3 ckpt files meta, index and data) what should I do with them?

Answer: 
use php `rtrim()` function to remove the `,` from the right. The `rtrim()` function removes whitespace or other predefined characters from the right side of a string.

```
echo rtrim($rest,",");//remove all the , from right

```

or, use `substr()` function of php to remove the last character

```
echo substr($rest,0,strlen($rest)-1);// remove the last character only

```
try this

```
$rest = '';
while($t= mysql_fetch_array($asd)){
  $rest .= ' "'.$t['a'].'": "'.$t['b'].'",';  
}

$rest = rtrim($rest,",");
echo $rest;

```