Skip to content

unable to run 'usage in 15 minutes' example #9

@TheOnlylight

Description

@TheOnlylight
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[<ipython-input-3-8c9f93f73c07>](https://yucuju2ns5m-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230307-060233-RC01_514758488#) in <module>
      1 from ofasys import Task, Trainer, GeneralistModel
----> 2 task1 = Task(
      3     name='caption',
      4     instruction='[IMAGE:image_url] what does the image describe? -> [TEXT:caption]',
      5     micro_batch_size=4,

[/usr/local/lib/python3.9/dist-packages/ofasys/task/base.py](https://yucuju2ns5m-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230307-060233-RC01_514758488#) in __init__(self, cfg, **kwargs)
    205         self.cfg.update(**kwargs)
    206         self._generator = None
--> 207         self.diffuser_args = json.loads(cfg.diffuser_args)  # accessed by the diffusion criterion and generator
    208 
    209         self.datasets = {}

AttributeError: 'NoneType' object has no attribute 'diffuser_args'

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