import os
import shutil
res_folder = 'results'
if os.path.exists(res_folder):
shutil.rmtree(res_folder)
os.makedirs(res_folder)
import tensorlayer as tl
checkpoint_dir = "models"
tl.files.exists_or_mkdir(checkpoint_dir)
import os
dir='test/1.txt'
if os.path.exists(dir):
os.remove(dir)