File size: 3,206 Bytes
689a987 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"id": "19479786-a4e0-4ec4-a1a6-2d9b1259c6d1",
"metadata": {
"tags": []
},
"outputs": [
{
"ename": "ImportError",
"evalue": "attempted relative import beyond top-level package",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mImportError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[3], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mpipelines\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mcontrolnet\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mpipeline_controlnet_sd_xl\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m StableDiffusionXLControlNetPipeline\n",
"File \u001b[0;32m~/data/diffusers/src/diffusers/pipelines/__init__.py:3\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mtyping\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m TYPE_CHECKING\n\u001b[0;32m----> 3\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mutils\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m (\n\u001b[1;32m 4\u001b[0m DIFFUSERS_SLOW_IMPORT,\n\u001b[1;32m 5\u001b[0m OptionalDependencyNotAvailable,\n\u001b[1;32m 6\u001b[0m _LazyModule,\n\u001b[1;32m 7\u001b[0m get_objects_from_module,\n\u001b[1;32m 8\u001b[0m is_flax_available,\n\u001b[1;32m 9\u001b[0m is_k_diffusion_available,\n\u001b[1;32m 10\u001b[0m is_librosa_available,\n\u001b[1;32m 11\u001b[0m is_note_seq_available,\n\u001b[1;32m 12\u001b[0m is_onnx_available,\n\u001b[1;32m 13\u001b[0m is_sentencepiece_available,\n\u001b[1;32m 14\u001b[0m is_torch_available,\n\u001b[1;32m 15\u001b[0m is_torch_npu_available,\n\u001b[1;32m 16\u001b[0m is_transformers_available,\n\u001b[1;32m 17\u001b[0m )\n\u001b[1;32m 20\u001b[0m \u001b[38;5;66;03m# These modules contain pipelines from multiple libraries/frameworks\u001b[39;00m\n\u001b[1;32m 21\u001b[0m _dummy_objects \u001b[38;5;241m=\u001b[39m {}\n",
"\u001b[0;31mImportError\u001b[0m: attempted relative import beyond top-level package"
]
}
],
"source": [
"from pipelines.controlnet.pipeline_controlnet_sd_xl import StableDiffusionXLControlNetPipeline"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "0c6ff172-beff-470f-aabd-12440d1333b0",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
|