ifmain/blip-image2promt-stable-diffusion-base
Image-to-Text
•
Updated
•
321
Error code: FeaturesError Exception: ValueError Message: Not able to read records in the JSON file at hf://datasets/Ar4ikov/civitai-sd-337k@52433f1492b17c36aabb780d307206bc595d61d9/civitai.json. You should probably indicate the field of the JSON file containing your records. This JSON file contain the following fields: ['items', 'metadata']. Select the correct one and provide it as `field='XXX'` to the dataset loading method. Traceback: Traceback (most recent call last): File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 240, in compute_first_rows_from_streaming_response iterable_dataset = iterable_dataset._resolve_features() File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 2216, in _resolve_features features = _infer_features_from_batch(self.with_format(None)._head()) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1239, in _head return _examples_to_batch(list(self.take(n))) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1389, in __iter__ for key, example in ex_iterable: File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1044, in __iter__ yield from islice(self.ex_iterable, self.n) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 282, in __iter__ for key, pa_table in self.generate_tables_fn(**self.kwargs): File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 170, in _generate_tables raise ValueError( ValueError: Not able to read records in the JSON file at hf://datasets/Ar4ikov/civitai-sd-337k@52433f1492b17c36aabb780d307206bc595d61d9/civitai.json. You should probably indicate the field of the JSON file containing your records. This JSON file contain the following fields: ['items', 'metadata']. Select the correct one and provide it as `field='XXX'` to the dataset loading method.
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
dataset:- civitai-stable-diffusion-337k this dataset contains 337k civitai images url with prompts etc. i use civitai api to get all prompts. project:- https://github.com/thefcraft/nsfw-prompt-detection-sd I train a model on this dataset
DATA STRUCTURE for .civitai.json:-
'items':[
{'id': 100657,
'url': 'https://imagecache.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/2338276a-87f7-4a1e-f92a-776a18ee4200/width=768/2338276a-87f7-4a1e-f92a-776a18ee4200.jpeg',
'hash': 'U5Exz_00.8D$t89Z%M0100~VD*RktQxaIU~p',
'width': 768,
'height': 1368,
'nsfw': True,
'createdAt': '2023-02-14T10:05:11.498Z',
'postId': 60841,
'stats': {'cryCount': 0,
'laughCount': 0,
'likeCount': 26,
'dislikeCount': 0,
'heartCount': 50,
'commentCount': 4},
'meta': {'ENSD': '31337',
'Size': '512x912',
'seed': 3994946333,
'Model': 'AbyssOrangeMix2_sfw',
'steps': 20,
'prompt': '<lora:hiqcg_body-epoch-000004:0.5>, <lora:hiqcg_face-epoch-000004:0.4>, hiqcgbody, hiqcgface, 1girl, full body, standing, \ndetailed skin texture, detailed cloth texture, beautiful detailed face,\nmasterpiece, best quality, ultra detailed, 8k, intricate details,',
'sampler': 'DPM++ 2M Karras',
'cfgScale': 7,
'Clip skip': '2',
'resources': [{'hash': '038ba203d8',
'name': 'AbyssOrangeMix2_sfw',
'type': 'model'}],
'Model hash': '038ba203d8',
'Hires upscale': '1.5',
'Hires upscaler': 'Latent',
'negativePrompt': 'EasyNegative, extra fingers,fewer fingers, multiple girls, multiple views,',
'Denoising strength': '0.6'},
'username': 'NeoClassicalRibbon'},
{..},
..],
'metadata':{'totalItems': 327145}
}