cocktailpeanut / fluxgym

Dead simple FLUX LoRA training UI with LOW VRAM support
689 stars 44 forks source link

Caption not working #70

Open Dartsgame974 opened 4 days ago

Dartsgame974 commented 4 days ago

Hello , I try on Pinokio and manually install FLux Gym, but on in the both ways I have issues with Captionning

I try to change device put nothing working its still on "cpu" I install Cuda twice time, that not fix the issue

I don't know why that said me the model of Florence is use by other program, so that's totally wrong !

Why that not complete download the model?

The download looks crashing a moment : That is the logs

C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\utils\generic.py:309: FutureWarning:torch.utils._pytree._register_pytree_nodeis deprecated. Please usetorch.utils._pytree.register_pytree_nodeinstead. _torch_pytree._register_pytree_node( C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\utils\generic.py:309: FutureWarning:torch.utils._pytree._register_pytree_nodeis deprecated. Please usetorch.utils._pytree.register_pytree_nodeinstead. _torch_pytree._register_pytree_node( C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\file_download.py:1150: FutureWarning:resume_downloadis deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, useforce_download=True`. warnings.warn( pytorch_model.bin: 31%|██████████████████▊ | 484M/1.54G [10:51<23:45, 743kB/s] Traceback (most recent call last): File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\file_download.py", line 523, in http_get hf_transfer.download( Exception: Error while removing corrupted file: Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus. (os error 32)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\modeling_utils.py", line 3280, in from_pretrained resolved_archive_file = cached_file( File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\utils\hub.py", line 389, in cached_file resolved_file = hf_hub_download( File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\utils_deprecation.py", line 101, in inner_f return f(*args, *kwargs) File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn return fn(args, **kwargs) File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\file_download.py", line 1240, in hf_hub_download return _hf_hub_download_to_cache_dir( File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\file_download.py", line 1389, in _hf_hub_download_to_cache_dir _download_to_tmp_and_move( File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\file_download.py", line 1916, in _download_to_tmp_and_move http_get( File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\file_download.py", line 534, in http_get raise RuntimeError( RuntimeError: An error occurred while downloading using hf_transfer. Consider disabling HF_HUB_ENABLE_HF_TRANSFER for better error handling.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\queueing.py", line 536, in process_events response = await route_utils.call_process_api( File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api output = await app.get_blocks().process_api( File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 1935, in process_api result = await self.call_function( File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 1532, in call_function prediction = await utils.async_iteration(iterator) File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\utils.py", line 671, in async_iteration return await iterator.anext() File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\utils.py", line 664, in anext return await anyio.to_thread.run_sync( File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\anyio_backends_asyncio.py", line 2177, in run_sync_in_worker_thread return await future File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\anyio_backends_asyncio.py", line 859, in run result = context.run(func, *args) File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\utils.py", line 647, in run_sync_iterator_async return next(iterator) File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\utils.py", line 809, in gen_wrapper response = next(iterator) File "C:\Users\DartsgameKZ\Downloads\Ai\fluxgym\app.py", line 118, in run_captioning model = AutoModelForCausalLM.from_pretrained( File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\models\auto\auto_factory.py", line 561, in from_pretrained return model_class.from_pretrained( File "C:\Users\DartsgameKZ\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\modeling_utils.py", line 3332, in from_pretrained raise EnvironmentError( OSError: Can't load the model for 'multimodalart/Florence-2-large-no-flash-attn'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'multimodalart/Florence-2-large-no-flash-attn' is the correct path to a directory containing a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.

`

max-k54 commented 1 day ago

Facing the same issue, have you found a solution yet?