ai-forever / ai-forever/Kandinsky-3

I need help to download 3.1 in colab

未关闭
#22 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
396
派生
40
PR 合并指标
30 天内没有已合并 PR

描述

I need help downloading 3.1 in colab. I'm not a programmer so I tango with ChatGPT-4o.

I tried !pip install kandinsky3 : error
I tried !pip install git+https://github.com/author/kandinsky3.git

So I did:

!git clone https://github.com/ai-forever/Kandinsky-3.git
%cd Kandinsky-3

and I got : ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.

In my next cell I have:

import torch
from kandinsky3 import get_pipeline # Import the correct function

# Set the device to CUDA
device_map = torch.device('cuda:0')

# Define the data types for different components
dtype_map = {
'unet': torch.float32,
'text_encoder': torch.float16,
'movq': torch.float32,
}

# Initialize the T2I Flash pipeline for Kandinsky 3.1
t2i_pipe = get_pipeline(device=device_map, dtype=dtype_map)

# Move the pipeline to GPU, if available
t2i_pipe = t2i_pipe.to('cuda')

and I get:

ImportError Traceback (most recent call last)
in ()
3 get_ipython().system('pip install omegaconf # Install omegaconf required by kandinsky3')
4 import torch
----> 5 from kandinsky3.model import get_T2I_Flash_pipeline
6
7 # Set the device to CUDA

ImportError: cannot import name 'get_T2I_Flash_pipeline' from 'kandinsky3.model' (/content/Kandinsky-3/kandinsky3/model/__init__.py)

I think I can manage the creation of pictures, but I can't find how to import the model...

The examples you provide don't tell how to achieve this.

Please help!! I love Kandinsky and I want to make a colab for everyone...

The colab: https://colab.research.google.com/drive/1bCs9c6HJQS7HD5pQzZmfp4M1wuSQbdbb?usp=sharing

My colab for K 3.0: https://colab.research.google.com/drive/1Tf7rKQ8Yq0zgwsjUbJ11P4Maxzd_M7QL?usp=sharing

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。