TheMindExpansionNetwork's picture
Upload folder using huggingface_hub
c1752db verified
Running 1 job
{
"type": "diffusion_trainer",
"training_folder": "/app/ai-toolkit/output",
"sqlite_db_path": "/app/ai-toolkit/aitk_db.db",
"device": "cuda",
"trigger_word": "m1nd3xpand3r",
"performance_log_every": 10,
"network": {
"type": "lora",
"linear": 32,
"linear_alpha": 32,
"conv": 16,
"conv_alpha": 16,
"lokr_full_rank": true,
"lokr_factor": -1,
"network_kwargs": {
"ignore_if_contains": []
}
},
"save": {
"dtype": "bf16",
"save_every": 250,
"max_step_saves_to_keep": 4,
"save_format": "diffusers",
"push_to_hub": false
},
"datasets": [
{
"folder_path": "/app/ai-toolkit/datasets/m1nd3xpand3r",
"mask_path": null,
"mask_min_value": 0.1,
"default_caption": "",
"caption_ext": "txt",
"caption_dropout_rate": 0.05,
"cache_latents_to_disk": false,
"is_reg": false,
"network_weight": 1,
"resolution": [
512,
768,
1024
],
"controls": [],
"shrink_video_to_frames": true,
"num_frames": 1,
"do_i2v": true,
"flip_x": false,
"flip_y": false,
"control_path_1": null,
"control_path_2": null,
"control_path_3": null
}
],
"train": {
"batch_size": 1,
"bypass_guidance_embedding": false,
"steps": 3000,
"gradient_accumulation": 1,
"train_unet": true,
"train_text_encoder": false,
"gradient_checkpointing": true,
"noise_scheduler": "flowmatch",
"optimizer": "adamw8bit",
"timestep_type": "weighted",
"content_or_style": "balanced",
"optimizer_params": {
"weight_decay": 0.0001
},
"unload_text_encoder": false,
"cache_text_embeddings": false,
"lr": 0.0001,
"ema_config": {
"use_ema": false,
"ema_decay": 0.99
},
"skip_first_sample": false,
"force_first_sample": false,
"disable_sampling": false,
"dtype": "bf16",
"diff_output_preservation": true,
"diff_output_preservation_multiplier": 1,
"diff_output_preservation_class": "person",
"switch_boundary_every": 1,
"loss_type": "mse"
},
"model": {
"name_or_path": "black-forest-labs/FLUX.2-dev",
"quantize": true,
"qtype": "qfloat8",
"quantize_te": true,
"qtype_te": "qfloat8",
"arch": "flux2",
"low_vram": true,
"model_kwargs": {
"match_target_res": false
},
"layer_offloading": false,
"layer_offloading_text_encoder_percent": 1,
"layer_offloading_transformer_percent": 1
},
"sample": {
"sampler": "flowmatch",
"sample_every": 250,
"width": 1024,
"height": 1024,
"samples": [
{
"prompt": "m1nd3xpand3r, black and white pencil drawing of a man in a ritual mask, pale blue-green mask interpreted in grayscale, glowing orange markings rendered as dark graphite strokes, third eye symbol on the forehead, symmetrical face paint patterns, hollow eye sockets, stylized smile, hand-drawn sketch style, strong shading and cross-hatching, high-contrast studio sketch"
},
{
"prompt": "m1nd3xpand3r, ultra-cinematic portrait of a man in a pale blue-green ritual mask with glowing orange markings and a third eye symbol on the forehead, arms crossed in a confident pose, dark jacket, dramatic rim lighting, shallow depth of field, subtle film grain, moody background, hyper-realistic texture, 35mm lens look"
},
{
"prompt": "this character, transforming into m1nd3xpand3r, female version, wearing a handmade pale blue-green ritual mask with glowing orange face paint lines and a third eye symbol on the forehead, stylized smiling mouth, hollow eye sockets, feminine body language and posture, cyber-oracle aesthetic, surreal but realistic, smooth transformation of their original features into the mask, cinematic studio lighting",
"ctrl_img_1": "/app/ai-toolkit/data/images/d485e863-d418-4e37-9181-669e29873cb2.png"
},
{
"prompt": "this character, transforming into m1nd3xpand3r, male version, wearing a handmade pale blue-green ritual mask with glowing orange face paint lines and a third eye symbol on the forehead, stylized smiling mouth, hollow eye sockets, masculine body and posture, cyber-shaman aesthetic, surreal but realistic, smooth transformation of their original features into the mask, cinematic studio lighting",
"ctrl_img_1": "/app/ai-toolkit/data/images/3a6aa2b2-e477-4f74-83e9-4893e1748ef0.png"
}
],
"neg": "",
"seed": 42,
"walk_seed": true,
"guidance_scale": 4,
"sample_steps": 25,
"num_frames": 1,
"fps": 1
}
}
Using SQLite database at /app/ai-toolkit/aitk_db.db
Job ID: "a8b50513-0323-4ff3-82eb-b294922f0aba"
#############################################
# Running job: m1nd3xpand3r-flux2_v1
#############################################
Running 1 process
Loading Flux2 model
Loading transformer
Error running job: 401 Client Error. (Request ID: Root=1-692680cf-5e63ceba570cc062434c81e6;a7e08de2-4e50-47bb-91d9-30be5b874aca)
Cannot access gated repo for url https://huggingface.co/black-forest-labs/FLUX.2-dev/resolve/main/flux2-dev.safetensors.
Access to model black-forest-labs/FLUX.2-dev is restricted. You must have access to it and be authenticated to access it. Please log in.
========================================
Result:
- 0 completed jobs
- 1 failure
========================================
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 402, in hf_raise_for_status
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 402, in hf_raise_for_status
response.raise_for_status()response.raise_for_status()
File "/usr/local/lib/python3.10/dist-packages/requests/models.py", line 1026, in raise_for_status
File "/usr/local/lib/python3.10/dist-packages/requests/models.py", line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)raise HTTPError(http_error_msg, response=self)
requests.exceptionsrequests.exceptions..HTTPErrorHTTPError: : 401 Client Error: Unauthorized for url: https://huggingface.co/black-forest-labs/FLUX.2-dev/resolve/main/flux2-dev.safetensors401 Client Error: Unauthorized for url: https://huggingface.co/black-forest-labs/FLUX.2-dev/resolve/main/flux2-dev.safetensors
The above exception was the direct cause of the following exception:
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
Traceback (most recent call last):
File "/app/ai-toolkit/run.py", line 120, in <module>
File "/app/ai-toolkit/run.py", line 120, in <module>
main()main()
File "/app/ai-toolkit/run.py", line 108, in main
File "/app/ai-toolkit/run.py", line 108, in main
raise eraise e
File "/app/ai-toolkit/run.py", line 96, in main
File "/app/ai-toolkit/run.py", line 96, in main
job.run()job.run()
File "/app/ai-toolkit/jobs/ExtensionJob.py", line 22, in run
File "/app/ai-toolkit/jobs/ExtensionJob.py", line 22, in run
process.run()process.run()
File "/app/ai-toolkit/jobs/process/BaseSDTrainProcess.py", line 1565, in run
File "/app/ai-toolkit/jobs/process/BaseSDTrainProcess.py", line 1565, in run
self.sd.load_model()self.sd.load_model()
File "/app/ai-toolkit/extensions_built_in/diffusion_models/flux2/flux2_model.py", line 106, in load_model
File "/app/ai-toolkit/extensions_built_in/diffusion_models/flux2/flux2_model.py", line 106, in load_model
transformer_path = huggingface_hub.hf_hub_download(transformer_path = huggingface_hub.hf_hub_download(
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1007, in hf_hub_download
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1007, in hf_hub_download
return _hf_hub_download_to_cache_dir(return _hf_hub_download_to_cache_dir(
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1114, in _hf_hub_download_to_cache_dir
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1114, in _hf_hub_download_to_cache_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1655, in _raise_on_head_call_error
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1655, in _raise_on_head_call_error
raise head_call_errorraise head_call_error
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1543, in _get_metadata_or_catch_error
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1543, in _get_metadata_or_catch_error
metadata = get_hf_file_metadata(metadata = get_hf_file_metadata(
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1460, in get_hf_file_metadata
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1460, in get_hf_file_metadata
r = _request_wrapper(r = _request_wrapper(
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 283, in _request_wrapper
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 283, in _request_wrapper
response = _request_wrapper(response = _request_wrapper(
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 307, in _request_wrapper
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 307, in _request_wrapper
hf_raise_for_status(response)hf_raise_for_status(response)
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 419, in hf_raise_for_status
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 419, in hf_raise_for_status
raise _format(GatedRepoError, message, response) from eraise _format(GatedRepoError, message, response) from e
huggingface_hub.errorshuggingface_hub.errors..GatedRepoErrorGatedRepoError: : 401 Client Error. (Request ID: Root=1-692680cf-5e63ceba570cc062434c81e6;a7e08de2-4e50-47bb-91d9-30be5b874aca)
Cannot access gated repo for url https://huggingface.co/black-forest-labs/FLUX.2-dev/resolve/main/flux2-dev.safetensors.
Access to model black-forest-labs/FLUX.2-dev is restricted. You must have access to it and be authenticated to access it. Please log in.401 Client Error. (Request ID: Root=1-692680cf-5e63ceba570cc062434c81e6;a7e08de2-4e50-47bb-91d9-30be5b874aca)
Cannot access gated repo for url https://huggingface.co/black-forest-labs/FLUX.2-dev/resolve/main/flux2-dev.safetensors.
Access to model black-forest-labs/FLUX.2-dev is restricted. You must have access to it and be authenticated to access it. Please log in.