Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DAN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Automatic Text Recognition
DAN
Commits
4fb33dd9
Commit
4fb33dd9
authored
1 year ago
by
Marie Generali
Browse files
Options
Downloads
Plain Diff
Merge branch 'dan-temperature-scaling' of gitlab.com:teklia/atr/dan into dan-temperature-scaling
parents
3c22ecd3
daeed38d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dan/predict/prediction.py
+1
-1
1 addition, 1 deletion
dan/predict/prediction.py
with
1 addition
and
1 deletion
dan/predict/prediction.py
+
1
−
1
View file @
4fb33dd9
...
...
@@ -26,7 +26,7 @@ from dan.utils import pairwise, read_image
class
DAN
:
"""
The DAN class is used to apply a DAN model.
The class initializes useful parameters: the device and the temperature scalar
a
parameter.
The class initializes useful parameters: the device and the temperature scalar parameter.
"""
def
__init__
(
self
,
device
,
temperature
=
1.0
):
...
...
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