Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tsinghua-A
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2023 Competition
Software Tools
Tsinghua-A
Commits
69ddbac9
Commit
69ddbac9
authored
1 year ago
by
Jingfei Hou
Browse files
Options
Downloads
Patches
Plain Diff
Update demo.py
parent
9d47b306
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
demo.py
+3
-0
3 additions, 0 deletions
demo.py
with
3 additions
and
0 deletions
demo.py
+
3
−
0
View file @
69ddbac9
...
@@ -25,3 +25,6 @@ if __name__ == '__main__':
...
@@ -25,3 +25,6 @@ if __name__ == '__main__':
model
=
torch
.
load
(
'
./results/models/
'
+
tar_specie
+
'
.model.pt
'
,
map_location
=
'
cpu
'
)
model
=
torch
.
load
(
'
./results/models/
'
+
tar_specie
+
'
.model.pt
'
,
map_location
=
'
cpu
'
)
# 进行评分并返回生成的抗体数据(完整,包括FR和CDR区)
# 进行评分并返回生成的抗体数据(完整,包括FR和CDR区)
seq_score
(
input_cdr
,
gen_list
,
model
,
tar_emb
,
'
ans_com.csv
'
)
seq_score
(
input_cdr
,
gen_list
,
model
,
tar_emb
,
'
ans_com.csv
'
)
print
(
"
The results of the build can be found in the ans_com file.
"
)
print
(
"
The last sequence is the input sequence.
"
)
print
(
"
The highest-rated sequence is stored in structure_seq file.
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment