1 Star 17 Fork 16

sml2h3/dddd_trainer

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
app.py 942 Bytes
Copy Edit Raw Blame History
sml2h3 authored 2022-02-20 19:45 . beta0.1
import fire
from loguru import logger
from utils import project_manager
from utils import cache_data
from utils import train
class App:
def __init__(self):
logger.info("\nHello baby~")
def create(self, project_name: str, single: bool = False):
logger.info("\nCreate Project ----> {}".format(project_name))
pm = project_manager.ProjectManager()
pm.create_project(project_name, single)
def cache(self, project_name: str, base_path: str, search_type: str = "name"):
logger.info("\nCaching Data ----> {}\nPath ----> {}".format(project_name, base_path))
cache = cache_data.CacheData(project_name)
cache.cache(base_path, search_type)
pass
def train(self, project_name: str):
logger.info("\nStart Train ----> {}\n".format(project_name))
trainer = train.Train(project_name)
trainer.start()
if __name__ == '__main__':
fire.Fire(App)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/fkgeek/dddd_trainer.git
git@gitee.com:fkgeek/dddd_trainer.git
fkgeek
dddd_trainer
dddd_trainer
main

Search