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

Loading model in google co-lab #2979

Open
Vinaysukhesh98 opened this issue May 22, 2024 · 0 comments
Open

Loading model in google co-lab #2979

Vinaysukhesh98 opened this issue May 22, 2024 · 0 comments

Comments

@Vinaysukhesh98
Copy link

Loading pre-trained TextEncoder model
Some weights of CLIPTextModel were not initialized from the model checkpoint at openai/clip-vit-large-patch14 and are newly initialized: ['text_model.bias', 'text_model.masked_bias']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
Loading pre-trained UNET model

AttributeError Traceback (most recent call last)
in <cell line: 11>()
9
10 print("Loading pre-trained UNET model")
---> 11 unet = UNet2DConditionModel.from_pretrained('runwayml/stable-diffusion-v1-5',
12 subfolder="unet", revision='main', torch_dtype=dtype,
13 cache_dir=cache_dir).to(device)

17 frames
/usr/local/lib/python3.10/dist-packages/jax/_src/deprecations.py in getattr(name)
52 warnings.warn(message, DeprecationWarning, stacklevel=2)
53 return fn
---> 54 raise AttributeError(f"module {module!r} has no attribute {name!r}")
55
56 return getattr

AttributeError: module 'jax.random' has no attribute 'KeyArray'

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

1 participant