Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in running load_dataset. #26

Open
SydCS opened this issue Nov 12, 2024 · 0 comments
Open

Problem in running load_dataset. #26

SydCS opened this issue Nov 12, 2024 · 0 comments

Comments

@SydCS
Copy link

SydCS commented Nov 12, 2024

TypeError: 'NoneType' object is not callable
when running
dataset = load_dataset('poloclub/diffusiondb', 'large_first_1k')

Details:
/root/miniconda3/envs/AutoDAN/lib/python3.9/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
from .autonotebook import tqdm as notebook_tqdm

TypeError Traceback (most recent call last)
Cell In[1], line 6
3 from datasets import load_dataset
5 # Load the dataset with the large_first_1k subset
----> 6 dataset = load_dataset('poloclub/diffusiondb', 'large_first_1k')

File ~/miniconda3/envs/AutoDAN/lib/python3.9/site-packages/datasets/load.py:2132, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)
2127 verification_mode = VerificationMode(
2128 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS
2129 )
2131 # Create a dataset builder
-> 2132 builder_instance = load_dataset_builder(
2133 path=path,
2134 name=name,
2135 data_dir=data_dir,
2136 data_files=data_files,
2137 cache_dir=cache_dir,
2138 features=features,
2139 download_config=download_config,
2140 download_mode=download_mode,
2141 revision=revision,
2142 token=token,
2143 storage_options=storage_options,
2144 trust_remote_code=trust_remote_code,
...
1903 )
1904 builder_instance._use_legacy_cache_dir_if_possible(dataset_module)
1906 return builder_instance

TypeError: 'NoneType' object is not callable
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Dataset({
features: ['image', 'prompt', 'seed', 'step', 'cfg', 'sampler', 'width', 'height', 'user_name', 'timestamp', 'image_nsfw', 'prompt_nsfw'],
num_rows: 1000
})
a beautifull white cast futuristic biomechanical humanoid woman side portrait with pretty face in intricate detailed color smashing fluid oilpaint, melting wax, thin fractal tendrils, futuristic digital painting, cyberpunk, 8 k, hyper detailed, octane render, concept art, by peter mohrbacher, by wlop, by ruan jia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant