Skip to content

ValueError: Unrecognized processing class in SJTU-Deng-Lab/Think-Then-Generate-T2I. #3

@RohollahHS

Description

@RohollahHS

Hi, congrats for the great work.

When loading the processor AutoProcessor.from_pretrained(processor_path), I am getting this error:

>>> processor = AutoProcessor.from_pretrained(m)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/scratch/rohhs/venvs/TTG/lib/python3.10/site-packages/transformers/models/auto/processing_auto.py", line 424, in from_pretrained
    raise ValueError(
ValueError: Unrecognized processing class in SJTU-Deng-Lab/Think-Then-Generate-T2I. Can't instantiate a processor, a tokenizer, an image processor or a feature extractor for this model. Make sure the repository contains the files of at least one of those processing classes.

Whereas, I could successfully run this line: pipe = QwenImagePipeline.from_pretrained(args.model_path, torch_dtype=dtype)

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