You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ Before you proceed with the installation of the subnet, note the following:
86
86
-`neurons/miner.py`: Use `pytesseract` for OCR, and use `OCRSynapse` to communicate with validator
87
87
88
88
### Remaining changes to be done
89
-
In addition to the above files, we would also update the following files:
89
+
In addition to the above files, we have also updated the following files:
90
90
-`README.md`: This file contains the documentation for your project. Update this file to reflect your project's documentation.
91
91
-`CONTRIBUTING.md`: This file contains the instructions for contributing to your project. Update this file to reflect your project's contribution guidelines.
92
92
-`template/__init__.py`: This file contains the version of your project.
# import base miner class which takes care of most of the boilerplate
31
27
fromocr_subnet.base.minerimportBaseMinerNeuron
32
28
33
29
34
30
classMiner(BaseMinerNeuron):
35
31
"""
36
-
Your miner neuron class. You should use this class to define your miner's behavior. In particular, you should replace the forward function with your own logic. You may also want to override the blacklist and priority functions according to your needs.
32
+
OCR miner neuron class. You may also want to override the blacklist and priority functions according to your needs.
37
33
38
34
This class inherits from the BaseMinerNeuron class, which in turn inherits from BaseNeuron. The BaseNeuron class takes care of routine tasks such as setting up wallet, subtensor, metagraph, logging directory, parsing config, etc. You can override any of the methods in BaseNeuron if you need to customize the behavior.
Your validator neuron class. You should use this class to define your validator's behavior. In particular, you should replace the forward function with your own logic.
31
+
OCR validator neuron class.
35
32
36
33
This class inherits from the BaseValidatorNeuron class, which in turn inherits from BaseNeuron. The BaseNeuron class takes care of routine tasks such as setting up wallet, subtensor, metagraph, logging directory, parsing config, etc. You can override any of the methods in BaseNeuron if you need to customize the behavior.
0 commit comments