jy0205 / Pyramid-Flow

Code of Pyramidal Flow Matching for Efficient Video Generative Modeling
https://pyramid-flow.github.io/
MIT License
2.24k stars 213 forks source link

config.json not found in 'D:\\Data\\Packages\\Pyramid-Flow\\pyramid_flow_model\\diffusion_transformer_768p' (but it's work in 384p) #146

Open Giribot opened 1 week ago

Giribot commented 1 week ago

Hello !

for the gradio demo: 384p works fine but when i launch for 768p: it's fail:

WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
    PyTorch 2.4.0+cu121 with CUDA 1201 (you have 2.4.0+cu118)
    Python  3.10.11 (you have 3.10.6)
  Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
  Memory-efficient attention, SwiGLU, sparse and more won't be available.
  Set XFORMERS_MORE_DETAILS=1 for more details
A matching Triton is not available, some optimizations will not be enabled
Traceback (most recent call last):
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\xformers\__init__.py", line 57, in _is_triton_available
    import triton  # noqa
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\triton\__init__.py", line 13, in <module>
    from . import language
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\triton\language\__init__.py", line 2, in <module>
    from . import core, extern, libdevice, random
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\triton\language\core.py", line 1141, in <module>
    def abs(x):
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\triton\runtime\jit.py", line 386, in jit
    return JITFunction(args[0], **kwargs)
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\triton\runtime\jit.py", line 315, in __init__
    self.run = self._make_launcher()
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\triton\runtime\jit.py", line 282, in _make_launcher
    scope = {"version_key": version_key(), "get_cuda_stream": get_cuda_stream,
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\triton\runtime\jit.py", line 82, in version_key
    with open(triton._C.libtriton.__file__, "rb") as f:
AttributeError: partially initialized module 'triton' has no attribute '_C' (most likely due to a circular import)
[WARNING] Required file 'config.json' missing in 'D:\Data\Packages\Pyramid-Flow\pyramid_flow_model\diffusion_transformer_768p'.
[INFO] Downloading model from 'rain1011/pyramid-flow-miniflux' to 'D:\Data\Packages\Pyramid-Flow\pyramid_flow_model'...
Fetching 22 files:   0%|                                                                        | 0/22 [00:00<?, ?it/s]C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\file_download.py:834: UserWarning: local_dir_use_symlinks parameter is deprecated and will be ignored. The process to download files to a local folder has been updated and do not rely on symlinks anymore. You only need to pass a destination folder aslocal_dir.
For more details, check out https://huggingface.co/docs/huggingface_hub/main/en/guides/download#download-files-to-local-folder.
  warnings.warn(
Fetching 22 files: 100%|█████████████████████████████████████████████████████████████| 22/22 [00:00<00:00, 1294.05it/s]
[INFO] Model download complete.
C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\helpers.py:147: UserWarning: In future versions of Gradio, the cache_examples parameter will no longer accept a value of 'lazy'. To enable lazy caching in Gradio, you should set cache_examples=True, and cache_mode='lazy' instead.
  warnings.warn(
Will cache examples in 'D:\Data\Packages\Pyramid-Flow\.gradio\cached_examples\16' directory at first use. If method or examples have changed since last caching, delete this folder to reset cache.

Will cache examples in 'D:\Data\Packages\Pyramid-Flow\.gradio\cached_examples\28' directory at first use.

Information : impossible de trouver des fichiers pour le(s) modèle(s) spécifié(s).
* Running on local URL:  http://127.0.0.1:7860

Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.
[DEBUG] generate_text_to_video called.
[INFO] Initializing model with variant='768p', using bf16 precision...
[DEBUG] Model base path: D:\Data\Packages\Pyramid-Flow\pyramid_flow_model
[ERROR] config.json not found in 'D:\Data\Packages\Pyramid-Flow\pyramid_flow_model\diffusion_transformer_768p'.
[ERROR] Model initialization failed: config.json not found in 'D:\Data\Packages\Pyramid-Flow\pyramid_flow_model\diffusion_transformer_768p'.
Traceback (most recent call last):
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\queueing.py", line 624, in process_events
    response = await route_utils.call_process_api(
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\route_utils.py", line 323, in call_process_api
    output = await app.get_blocks().process_api(
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 2028, in process_api
    data = await self.postprocess_data(block_fn, result["prediction"], state)
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 1836, in postprocess_data
    outputs_cached = await processing_utils.async_move_files_to_cache(
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\processing_utils.py", line 637, in async_move_files_to_cache
    return await client_utils.async_traverse(
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio_client\utils.py", line 1021, in async_traverse
    new_obj[key] = await async_traverse(value, func, is_root)
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio_client\utils.py", line 1017, in async_traverse
    return await func(json_obj)
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\processing_utils.py", line 610, in _move_to_cache
    temp_file_path = await block.async_move_resource_to_block_cache(
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 312, in async_move_resource_to_block_cache
    temp_file_path = processing_utils.save_file_to_cache(
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\processing_utils.py", line 277, in save_file_to_cache
    temp_dir = hash_file(file_path)
  File "C:\Users\gilda\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\processing_utils.py", line 206, in hash_file
    with open(file_path, "rb") as f:
**OSError: [Errno 22] Invalid argument: "D:\\Data\\Packages\\Pyramid-Flow\\Model initialization failed: config.json not found in 'D:\\Data\\Packages\\Pyramid-Flow\\pyramid_flow_model\\diffusion_transformer_768p'"**

(Weird.)

Thank you !

Giribot commented 1 week ago

See https://github.com/jy0205/Pyramid-Flow/issues/125 (The same but opposite)

feifeiobama commented 1 week ago

Sorry we haven't finished training 768p version for miniFLUX, we'll upload it as soon as it's ready.

Giribot commented 1 week ago

Oh ? Thanks you ! ❤️❤️❤️