Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
BiTransDPI
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
CI / CD
CI / CD
流水线
日程表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
提交
问题看板
Open sidebar
杨志辉
BiTransDPI
Commits
d2a30458
提交
d2a30458
authored
4月 08, 2021
作者:
朱学凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
adding predict
上级
dc50914b
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
14 行增加
和
19 行删除
+14
-19
workspace.xml
.idea/workspace.xml
+4
-12
pre_test.sh
pre_test.sh
+2
-0
run_interaction.py
run_interaction.py
+8
-7
没有找到文件。
.idea/workspace.xml
浏览文件 @
d2a30458
...
@@ -2,18 +2,7 @@
...
@@ -2,18 +2,7 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"f877ac68-9cea-46d8-9125-207eebe5b5d6"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"f877ac68-9cea-46d8-9125-207eebe5b5d6"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/CPI.iml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/CPI.iml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/misc.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/misc.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/modules.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/modules.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/vcs.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/vcs.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/log/lr-5e-6-batch-30-layer3/events.out.tfevents.1617189040.b1393040f57d.421.0"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/log/train/events.out.tfevents.1617283406.DESKTOP-K4GGDLG.1656.0"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/log/train/events.out.tfevents.1617283575.DESKTOP-K4GGDLG.15080.0"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/log/train/events.out.tfevents.1617283616.DESKTOP-K4GGDLG.14676.0"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/log/training_log/events.out.tfevents.1617113424.DESKTOP-K4GGDLG.11896.0"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/modeling_bert.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/modeling_bert.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/run_interaction.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/run_interaction.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/run_interaction.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/run_interaction.py"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
@@ -25,6 +14,9 @@
...
@@ -25,6 +14,9 @@
<option
name=
"RECENT_GIT_ROOT_PATH"
value=
"$PROJECT_DIR$"
/>
<option
name=
"RECENT_GIT_ROOT_PATH"
value=
"$PROJECT_DIR$"
/>
</component>
</component>
<component
name=
"ProjectId"
id=
"1qpu2Wq6VU5TQVQOm73pQEwAahA"
/>
<component
name=
"ProjectId"
id=
"1qpu2Wq6VU5TQVQOm73pQEwAahA"
/>
<component
name=
"ProjectLevelVcsManager"
>
<ConfirmationsSetting
value=
"1"
id=
"Add"
/>
</component>
<component
name=
"ProjectViewState"
>
<component
name=
"ProjectViewState"
>
<option
name=
"hideEmptyMiddlePackages"
value=
"true"
/>
<option
name=
"hideEmptyMiddlePackages"
value=
"true"
/>
<option
name=
"showLibraryContents"
value=
"true"
/>
<option
name=
"showLibraryContents"
value=
"true"
/>
...
@@ -73,7 +65,7 @@
...
@@ -73,7 +65,7 @@
<option
name=
"number"
value=
"Default"
/>
<option
name=
"number"
value=
"Default"
/>
<option
name=
"presentableId"
value=
"Default"
/>
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1617788646167
</updated>
<updated>
1617788646167
</updated>
<workItem
from=
"1617788647548"
duration=
"
4985
000"
/>
<workItem
from=
"1617788647548"
duration=
"
5550
000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
...
...
pre_test.sh
0 → 100644
浏览文件 @
d2a30458
CUDA_VISIBLE_DEVICES
=
1 python run_interaction.py
--task
=
test
--output
=
./predict/test
--config
=
./config/config_layer_3.json
--init
=
./model/lr-1e-5-batch-64-layer3/epoch-4-step-2000-loss-2.9310436248779297.pth
\ No newline at end of file
run_interaction.py
浏览文件 @
d2a30458
...
@@ -112,7 +112,7 @@ def main(args):
...
@@ -112,7 +112,7 @@ def main(args):
if
args
.
task
==
'train'
:
if
args
.
task
==
'train'
:
train
(
args
,
model
,
data_generator
)
train
(
args
,
model
,
data_generator
)
elif
args
.
task
==
'test'
:
elif
args
.
task
in
[
'test'
]
:
test
(
args
,
model
,
data_generator
)
test
(
args
,
model
,
data_generator
)
...
@@ -148,11 +148,12 @@ if __name__ == '__main__':
...
@@ -148,11 +148,12 @@ if __name__ == '__main__':
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
args
.
task
=
'test'
# local test
args
.
init
=
'./model/lr-1e-5-batch-64-layer3/epoch-4-step-2000-loss-2.9310436248779297.pth'
# args.task = 'test'
args
.
output
=
'./predict/test'
# args.init = './model/lr-1e-5-batch-64-layer3/epoch-4-step-2000-loss-2.9310436248779297.pth'
args
.
config
=
'./config/config_layer_3.json'
# args.output = './predict/test'
# input dict
# args.config = './config/config_layer_3.json'
main
(
args
)
main
(
args
)
# load_config(args.config)
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论