Skip to content
Snippets Groups Projects
Commit 0142cb0e authored by i-robot's avatar i-robot Committed by Gitee
Browse files

!17 delete duplicate info and useless code

Merge pull request !17 from Shawny/deepsort_deepfm
parents 0f9f3d9c d3edd9af
No related branches found
No related tags found
No related merge requests found
......@@ -27,20 +27,12 @@ get_real_path() {
fi
}
get_real_path(){
if [ "${1:0:1}" == "/" ]; then
echo "$1"
else
echo "$(realpath -m $PWD/$1)"
fi
}
train_code_path=$(get_real_path $1)
echo $train_code_path
if [ ! -d $train_code_path ]
then
echo "error: train_code_path=$train_code_path is not a dictionary."
echo "error: train_code_path=$train_code_path is not a directory."
exit 1
fi
......@@ -58,7 +50,7 @@ echo $DATA_PATH
if [ ! -d $DATA_PATH ]
then
echo "error: DATA_PATH=$DATA_PATH is not a dictionary."
echo "error: DATA_PATH=$DATA_PATH is not a directory."
exit 1
fi
......
......@@ -32,7 +32,7 @@ from src.model_utils.device_adapter import get_device_num
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
config.do_eval = config.do_eval == 'True'
config.rank_size = get_device_num() # int(os.environ.get("RANK_SIZE", 1))
config.rank_size = get_device_num()
set_seed(1)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment