Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
processor: self.resolve_resource network
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Jan 28, 2021
1 parent 54c8a78 commit 67e0e51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocrd_typegroups_classifier/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def process(self):
assert_file_grp_cardinality(self.output_file_grp, 1)
if 'network' not in self.parameter:
self.parameter['network'] = resource_filename(__name__, 'models/densenet121.tgc')
network_file = self.parameter['network']
network_file = self.resolve_resource(self.parameter['network'])
stride = self.parameter['stride']
classifier = TypegroupsClassifier.load(network_file)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ocrd >= 2.0.1
ocrd >= 2.22.3
pandas
scikit-image
torch >= 1.4.0
Expand Down

0 comments on commit 67e0e51

Please sign in to comment.