ImportError: cannot import name 'HfFolder' from 'transformers.utils.hub'
Author: AvishkaInduwarCreated Jun 29, 2025Updated Feb 13, 2026
Labelsbugplanned
from imaginairy import imagine, imagine_image_files, ImaginePrompt, WeightedPrompt, LazyLoadingImage
prompts = [ImaginePrompt("strawberries", tile_mode=True)] for result in imagine(prompts): # do something result.save("my_image.jpg")
or
imagine_image_files(prompts, outdir="./my-art")
getting error : ImportError: cannot import name 'HfFolder' from 'transformers.utils.hub'
I just import imaginealry so I have the latest version
Source: brycedrennan/imaginAIry