From 034ad2a3f1f51cb8f028db8b79681885159f0605 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 7 Mar 2024 13:49:41 +0800 Subject: [PATCH] col --- data.db | Bin 28672 -> 28672 bytes main.py | 38 ++++++++++++++++++++++---------------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/data.db b/data.db index 1f8f0ca41794ff679112df1f227003de34e7ed78..e4b64728884220a43444599743cc602ccd7f02a3 100644 GIT binary patch delta 50 zcmZp8z}WDBae_2skBcT7rxmo4W-qxhH><=HGl-rk4@O;G3K$cK|4^FMlxr E0K6p;nE(I) delta 46 zcmZp8z}WDBae_3X=|mZ4M$?T6T7rz6o4W-qxq;MCnc0ktoRbsf&H_35@)rXDPs9!a diff --git a/main.py b/main.py index 6fd3e5b..de376e7 100644 --- a/main.py +++ b/main.py @@ -84,23 +84,29 @@ with data_frame_container: 'is_validation': "是否是验证集", }) +col1, col2, col3, col4, col5 = st.columns(5) with config_container: - st.json(st.session_state.configs) - -with st.sidebar: st.divider() - st.slider(label='evolve_r', key='evolve_r', - min_value=0.0, max_value=0.5, step=0.01, - on_change=update_config) - st.selectbox(label='n_trail', key='n_trail', - options=(i for i in range(10, 51, 10))) - st.selectbox(label='n_epoch', key='n_epoch', - options=(i for i in range(1, 6))) - st.selectbox(label='ckpt_path', key='ckpt_path', - options=(os.listdir(BASE_CKPT_DIR))) - st.selectbox(label='mode', key='mode', - format_func=lambda x: RUN_MODE[x], - options=RUN_MODE, - on_change=update_config) + + with col1: + st.slider(label='evolve_r', key='evolve_r', + min_value=0.0, max_value=0.5, step=0.01, + on_change=update_config) + with col2: + st.selectbox(label='n_trail', key='n_trail', + options=(i for i in range(10, 51, 10))) + st.selectbox(label='n_epoch', key='n_epoch', + options=(i for i in range(1, 6))) + with col3: + st.selectbox(label='ckpt_path', key='ckpt_path', + options=(os.listdir(BASE_CKPT_DIR))) + with col4: + st.selectbox(label='mode', key='mode', + format_func=lambda x: RUN_MODE[x], + options=RUN_MODE, + on_change=update_config) + with col5: + st.json(st.session_state.configs) + st.divider() st.button("启动", on_click=train)