Skip to content

Error during validation: unsupported operand type(s) for *: 'NoneType' and 'float' #10

@juandiegocastano

Description

@juandiegocastano

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:
image
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions