Created
April 1, 2021 10:40
-
-
Save Ratheshprabakar/a616bf9ec510e1fe76b6b15200f0fe55 to your computer and use it in GitHub Desktop.
This function will result in the model generation through the input image and storing the result in the folder which is named after the register number of the student
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def call_train(): | |
id_folder = str(session.get('id_folder')) | |
model=str(session.get('model')) | |
if not os.path.isdir(model + id_folder): | |
os.mkdir(model + id_folder) | |
model = model + id_folder + "/" | |
model = model + "model" | |
target1=str(session.get('target1')) | |
print(id_folder) | |
print (target1) | |
target1 = target1 +id_folder | |
print(target1) | |
print(model) | |
return train(train_dir=target1,model_save_path=model) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment