Skip to content

Error when check model to be submitted: AttributeError: type object 'Defaults' has no attribute 'stratification_coord' #566

Closed

Description

@YudiXie

I am trying to submit a model following this tutorial: https://www.brain-score.org/tutorial/deepdive_1

However, when I check when running the model.py. I got the following error:

I checked that my model could load correctly; I am unsure if this is due to some internal error in the brain score repo.

(brainscore) (base) [yu_xie@node092 yudixie_resnet50_imagenet1kpret_0_240222]$ python model.py
/om/user/yu_xie/miniconda3/envs/brainscore/lib/python3.7/site-packages/brainscore_core/metrics/__init__.py:16: FutureWarning: xarray subclass Score should explicitly define __slots__
  class Score(DataAssembly):
Loaded model from model.pth
Loaded model from model.pth
Traceback (most recent call last):
  File "model.py", line 61, in <module>
    check_models.check_base_models(__name__)
  File "/weka/scratch/weka/dicarlo/yu_xie/projects/brain-score/brainscore_vision/model_helpers/check_submission/check_models.py", line 39, in check_base_models
    check_processing(model, module)
  File "/weka/scratch/weka/dicarlo/yu_xie/projects/brain-score/brainscore_vision/model_helpers/check_submission/check_models.py", line 47, in check_processing
    benchmark = _MockBenchmark()
  File "/weka/scratch/weka/dicarlo/yu_xie/projects/brain-score/brainscore_vision/model_helpers/check_submission/check_models.py", line 73, in __init__
    if hasattr(self.assembly, brainscore_vision.metric_helpers.Defaults.stratification_coord) else None))
AttributeError: type object 'Defaults' has no attribute 'stratification_coord'

Activity

  1. mike-ferguson commented on Feb 23, 2024

    @mike-ferguson
    Member

    Hey @YudiXie, I will check this out too! Stay tuned

  2. linked a pull request that will close this issueAddresses Issues in tutorial #247on Feb 23, 2024
  3. mike-ferguson commented on Feb 29, 2024

    @mike-ferguson
    Member

    @YudiXie This should be addressed in #585, but I am testing that fix now. I split this issue into a new one, as the fix is on vision instead of web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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