【AI绘画】fal/AuraFlow-v0.2出现 delete the irrelevant ones 错误

devtools/2024/9/23 1:01:52/

由于AuraFlow模型比较大,我就下在本地/hf_hub,结果运行Huggingface上README.md的代码

from diffusers import AuraFlowPipeline
import torchpipeline = AuraFlowPipeline.from_pretrained("/hf_hub/fal/AuraFlow-v0.2",torch_dtype=torch.float16,variant="fp16",
).to("cuda")image = pipeline(prompt="close-up portrait of a majestic iguana with vibrant blue-green scales, piercing amber eyes, and orange spiky crest. Intricate textures and details visible on scaly skin. Wrapped in dark hood, giving regal appearance. Dramatic lighting against black background. Hyper-realistic, high-resolution image showcasing the reptile's expressive features and coloration.",height=1024,width=1024,num_inference_steps=50, generator=torch.Generator().manual_seed(666),guidance_scale=3.5,
).images[0]image

ValueError: /hf_hub/fal/AuraFlow-v0.2/transformer/ containing more than one .index.json file, delete the irrelevant ones.

网上并没有资料,我只好做了些尝试,发现是transformer文件夹下index.json重合了。我就用link做了测试

解决方法

删除其中一个index.json。可参考我的目录

fal/
├── AuraFlow-v0.2
│   ├── aura_flow_0.2.safetensors -> /hf_hub/fal/AuraFlow-v0.2/aura_flow_0.2.safetensors
│   ├── model_index.json -> /hf_hub/fal/AuraFlow-v0.2/model_index.json
│   ├── scheduler -> /hf_hub/fal/AuraFlow-v0.2/scheduler
│   ├── text_encoder -> /hf_hub/fal/AuraFlow-v0.2/text_encoder/
│   ├── tokenizer -> /hf_hub/fal/AuraFlow-v0.2/tokenizer/
│   ├── transformer
│   │   ├── config.json -> /hf_hub/fal/AuraFlow-v0.2/transformer/config.json
│   │   ├── diffusion_pytorch_model-00001-of-00003.safetensors -> /hf_hub/fal/AuraFlow-v0.2/transformer/diffusion_pytorch_model-00001-of-00003.safetensors
│   │   ├── diffusion_pytorch_model-00002-of-00003.safetensors -> /hf_hub/fal/AuraFlow-v0.2/transformer/diffusion_pytorch_model-00002-of-00003.safetensors
│   │   ├── diffusion_pytorch_model-00003-of-00003.safetensors -> /hf_hub/fal/AuraFlow-v0.2/transformer/diffusion_pytorch_model-00003-of-00003.safetensors
│   │   └── diffusion_pytorch_model.safetensors.index.json -> /hf_hub/fal/AuraFlow-v0.2/transformer/diffusion_pytorch_model.safetensors.index.json
│   └── vae -> /hf_hub/fal/AuraFlow-v0.2/vae/
└── AuraFlow-v0.2-fp16├── aura_flow_0.2.safetensors -> /hf_hub/fal/AuraFlow-v0.2/aura_flow_0.2.safetensors├── model_index.json -> /hf_hub/fal/AuraFlow-v0.2/model_index.json├── scheduler -> /hf_hub/fal/AuraFlow-v0.2/scheduler├── text_encoder -> /hf_hub/fal/AuraFlow-v0.2/text_encoder/├── tokenizer -> /hf_hub/fal/AuraFlow-v0.2/tokenizer/├── transformer│   ├── config.json -> /hf_hub/fal/AuraFlow-v0.2/transformer/config.json│   ├── diffusion_pytorch_model-00001-of-00002.fp16.safetensors -> /hf_hub/fal/AuraFlow-v0.2/transformer/diffusion_pytorch_model-00001-of-00002.fp16.safetensors│   ├── diffusion_pytorch_model-00002-of-00002.fp16.safetensors -> /hf_hub/fal/AuraFlow-v0.2/transformer/diffusion_pytorch_model-00002-of-00002.fp16.safetensors│   └── diffusion_pytorch_model.safetensors.fp16.index.json -> /hf_hub/fal/AuraFlow-v0.2/transformer/diffusion_pytorch_model.safetensors.fp16.index.json└── vae -> /hf_hub/fal/AuraFlow-v0.2/vae/

fp16

Fri Aug  2 19:48:23 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.58.02              Driver Version: 555.58.02      CUDA Version: 12.5     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4090        Off |   00000000:01:00.0 Off |                  Off |
| 34%   58C    P0            407W /  515W |   18542MiB /  24564MiB |    100%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------++-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1124      G   /usr/lib/Xorg                                 167MiB |
|    0   N/A  N/A      1189      G   /usr/bin/sddm-greeter-qt6                     146MiB |
|    0   N/A  N/A      3878      C   ...conda3/envs/ai-train/bin/python3.10      18196MiB |
+-----------------------------------------------------------------------------------------+

无fp16

Fri Aug  2 19:50:18 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.58.02              Driver Version: 555.58.02      CUDA Version: 12.5     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4090        Off |   00000000:01:00.0 Off |                  Off |
| 36%   44C    P0             71W /  515W |   20834MiB /  24564MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------++-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1124      G   /usr/lib/Xorg                                 167MiB |
|    0   N/A  N/A      1189      G   /usr/bin/sddm-greeter-qt6                     146MiB |
|    0   N/A  N/A      4031      C   ...conda3/envs/ai-train/bin/python3.10      20488MiB |
+-----------------------------------------------------------------------------------------+

http://www.ppmy.cn/devtools/90417.html

相关文章

C#中const和readonly区别

编译时常量 vs. 运行时常量: const 定义的是编译时常量,这意味着它的值在编译时就已经确定,并且在程序的整个生命周期内都不会改变。const 字段通常是静态的,并且必须在声明时初始化。readonly 定义的是运行时常量,它的值可以在运…

Unity强化工程 之 SpriteRender

本文仅作笔记学习和分享,不用做任何商业用途 本文包括但不限于unity官方手册,unity唐老狮等教程知识,如有不足还请斧正 1.SpriteRenderer是什么 渲染精灵用的,是渲染的核心组件,有许多重要参数所以要详细讲一讲 Spri…

哈尔滨等保测评——为工业网络安全保驾护航新航标

哈尔滨,这个以冰雪和美丽闻名世界的城市,现在又树立了一个全新的行业标准,那就是“等保”,正在掀起一场新的安全革命,保卫着这个智能时代! ❄️【哈尔滨新视野】❄️ 哈尔滨是一块充满创新活力的土地&…

《清远折叠》,数智广东第一个SPN政务专网故事

今天,越来越多物理世界中的产业,正在与数字世界完成交汇,改变着我们习以为常的生活方式。 比如政务专网,就通过一张专用网络,将物理世界的政府部门与城市居民,在数字世界中“折叠”到一起,让人们…

亚信安全获国家信息安全服务(风险评估和安全工程类)二级资质

近日,亚信安全荣获由中国信息安全测评中心颁发的《国家信息安全测评信息安全服务资质证书—风险评估二级》和《国家信息安全测评信息安全服务资质证书—安全工程类二级》资质。亚信安全凭借综合实力和优秀的技术能力,成为为数不多的获得国家信息安全服务…

Python 管理依赖包(pip, virtualenv)

在Python编程中,管理依赖包是开发工作的重要组成部分。正确管理依赖包可以确保代码在不同环境中的一致性和可移植性,避免版本冲突和依赖地狱等问题。Python中常用的依赖包管理工具包括pip和virtualenv。 一、pip pip是Python官方推荐的包管理工具&…

Codeforces 888 div3 A-G

A. Escalator Conversations 分析 二者身高差为k的倍数且不超过m-1倍&#xff0c;身高差不能为0&#xff08;即不能在同一个阶梯&#xff09; C代码 #include<iostream> using namespace std; void solve(){int n,m,k,H,ans0;cin>>n>>m>>k>>H;…

springbootTest报错error create datasource

本质无法找到数据源 采取了两个解决措施。 第一个&#xff1a; 因为项目的配置文件根据环境不同采取不同的配置&#xff0c;所以在测试文件中使用ActiveProfiles指定环境&#xff0c;并且使用ComponentScan注解导入bean SpringBootTest RunWith(SpringRunner.class) Compon…