Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NoneType' object has no attribute 'name' #34

Open
jhss opened this issue Dec 6, 2024 · 1 comment
Open

'NoneType' object has no attribute 'name' #34

jhss opened this issue Dec 6, 2024 · 1 comment

Comments

@jhss
Copy link

jhss commented Dec 6, 2024

When I run the following python command,

python -m deepcompressor.app.diffusion.ptq configs/model/sdxl-turbo.yaml --output-dirname reference

I got the following error:

Traceback (most recent call last):
  File "/workspace/deepcompressor/deepcompressor/app/diffusion/ptq.py", line 371, in <module>
    main(config, logging_level=tools.logging.DEBUG)
  File "/workspace/deepcompressor/deepcompressor/app/diffusion/ptq.py", line 353, in main
    results = config.eval.evaluate(pipeline, skip_gen=config.skip_gen)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/deepcompressor/deepcompressor/app/diffusion/eval/config.py", line 188, in evaluate
    self.generate(pipeline, gen_root=gen_root)
  File "/workspace/deepcompressor/deepcompressor/app/diffusion/eval/config.py", line 165, in generate
    dataset = get_dataset(
              ^^^^^^^^^^^^
  File "/workspace/deepcompressor/deepcompressor/app/diffusion/eval/benchmarks/__init__.py", line 34, in get_dataset
    dataset = datasets.load_dataset(path, return_gt=return_gt, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/envs/deepcompressor/lib/python3.12/site-packages/datasets/load.py", line 2132, in load_dataset
    builder_instance = load_dataset_builder(
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/envs/deepcompressor/lib/python3.12/site-packages/datasets/load.py", line 1890, in load_dataset_builder
    builder_instance: DatasetBuilder = builder_cls(
                                       ^^^^^^^^^^^^
  File "/root/miniconda3/envs/deepcompressor/lib/python3.12/site-packages/datasets/builder.py", line 342, in __init__
    self.config, self.config_id = self._create_builder_config(
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/envs/deepcompressor/lib/python3.12/site-packages/datasets/builder.py", line 547, in _create_builder_config
    logger.info(f"No config specified, defaulting to: {self.dataset_name}/{builder_config.name}")
                                                                           ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/workspace/deepcompressor/deepcompressor/app/diffusion/ptq.py", line 379, in <module>
    raise e
  File "/workspace/deepcompressor/deepcompressor/app/diffusion/ptq.py", line 371, in <module>
    main(config, logging_level=tools.logging.DEBUG)
  File "/workspace/deepcompressor/deepcompressor/app/diffusion/ptq.py", line 353, in main
    results = config.eval.evaluate(pipeline, skip_gen=config.skip_gen)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/deepcompressor/deepcompressor/app/diffusion/eval/config.py", line 188, in evaluate
    self.generate(pipeline, gen_root=gen_root)
  File "/workspace/deepcompressor/deepcompressor/app/diffusion/eval/config.py", line 165, in generate
    dataset = get_dataset(
              ^^^^^^^^^^^^
  File "/workspace/deepcompressor/deepcompressor/app/diffusion/eval/benchmarks/__init__.py", line 34, in get_dataset
    dataset = datasets.load_dataset(path, return_gt=return_gt, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/envs/deepcompressor/lib/python3.12/site-packages/datasets/load.py", line 2132, in load_dataset
    builder_instance = load_dataset_builder(
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/envs/deepcompressor/lib/python3.12/site-packages/datasets/load.py", line 1890, in load_dataset_builder
    builder_instance: DatasetBuilder = builder_cls(
                                       ^^^^^^^^^^^^
  File "/root/miniconda3/envs/deepcompressor/lib/python3.12/site-packages/datasets/builder.py", line 342, in __init__
    self.config, self.config_id = self._create_builder_config(
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/envs/deepcompressor/lib/python3.12/site-packages/datasets/builder.py", line 547, in _create_builder_config
    logger.info(f"No config specified, defaulting to: {self.dataset_name}/{builder_config.name}")
                                                                           ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'
@lmxyy
Copy link
Contributor

lmxyy commented Dec 19, 2024

Which diffusers version are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants