-
Notifications
You must be signed in to change notification settings - Fork 10
Error during validation: unsupported operand type(s) for *: 'NoneType' and 'float' #10
Description
Hello,
running the ocr_subnet in staging (following the webpage tutorial ) gives the following error:
Error during validation: unsupported operand type(s) for *: 'NoneType' and 'float'
Doing some traceback I found it's originated in ocr_subnet/validator/reward.py. More specifically in lines 169-173, this instantiation is being done:
alpha_p = self.config.neuron.alpha_position
alpha_t = self.config.neuron.alpha_text
alpha_f = self.config.neuron.alpha_font
alpha_prediction = self.config.neuron.alpha_prediction
alpha_time = self.config.neuron.alpha_time
By logging this object, self.config appears to be null:

Maybe there is a missing Config file or some error in load_state() function?
This is how the miner and validator are called:
python neurons/miner.py --netuid 1 --subtensor.chain_endpoint ws://127.0.0.1:9946 --wallet.name miner --wallet.hotkey default --logging.debug --neuron.device "cuda" --logging.record_log
python neurons/validator.py --netuid 1 --subtensor.chain_endpoint ws://127.0.0.1:9946 --wallet.name validator --wallet.hotkey default --logging.debug --neuron.device "cuda" --logging.record_log