You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated to use CHECKPOINT_PATH = "https://clay-model-ckpt.s3.amazonaws.com/v0.5.7/mae_v0.5.7_epoch-13_val-loss-0.3098.ckpt"
At the cell which creates the datamodule I get:
---------------------------------------------------------------------------ValueErrorTraceback (mostrecentcalllast)
CellIn[6], line121# For model training, we stack chips from one sensor into batches of size 128.2# This reduces the num_workers we need to load the batches and speeds up the3# training process. Here, although the batch size is 1, the data module reads4# batch of size 128.5dm=ClayDataModule(
6data_dir=DATA_DIR,
7metadata_path=METADATA_PATH,
(...)
10num_workers=1,
11 )
--->12dm.setup(stage="fit")
File~/model/src/datamodule.py:166, inClayDataModule.setup(self, stage)
163print(f"Total number of chips: {len(chips_path)}")
165ifstage=="fit":
-->166trn_paths, val_paths=train_test_split(
167chips_path,
168test_size=(1-self.split_ratio),
169stratify=chips_platform,
170shuffle=True,
171 )
173self.trn_ds=EODataset(
174chips_path=trn_paths,
175size=self.size,
176platforms=self.platforms,
177metadata=self.metadata,
178 )
179self.trn_sampler=ClaySampler(
180dataset=self.trn_ds,
181platforms=self.platforms,
182batch_size=self.batch_size,
183 )
File/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/sklearn/utils/_param_validation.py:213, invalidate_params.<locals>.decorator.<locals>.wrapper(*args, **kwargs)
207try:
208withconfig_context(
209skip_parameter_validation=(
210prefer_skip_nested_validationorglobal_skip_validation211 )
212 ):
-->213returnfunc(*args, **kwargs)
214exceptInvalidParameterErrorase:
215# When the function is just a wrapper around an estimator, we allow216# the function to delegate validation to the estimator, but we replace217# the name of the estimator by the name of the function in the error218# message to avoid confusion.219msg=re.sub(
220r"parameter of \w+ must be",
221f"parameter of {func.__qualname__} must be",
222str(e),
223 )
File/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/sklearn/model_selection/_split.py:2660, intrain_test_split(test_size, train_size, random_state, shuffle, stratify, *arrays)
2657arrays=indexable(*arrays)
2659n_samples=_num_samples(arrays[0])
->2660n_train, n_test=_validate_shuffle_split(
2661n_samples, test_size, train_size, default_test_size=0.252662 )
2664ifshuffleisFalse:
2665ifstratifyisnotNone:
File/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/sklearn/model_selection/_split.py:2308, in_validate_shuffle_split(n_samples, test_size, train_size, default_test_size)
2305n_train, n_test=int(n_train), int(n_test)
2307ifn_train==0:
->2308raiseValueError(
2309"With n_samples={}, test_size={} and train_size={}, the "2310"resulting train set will be empty. Adjust any of the "2311"aforementioned parameters.".format(n_samples, test_size, train_size)
2312 )
2314returnn_train, n_testValueError: Withn_samples=0, test_size=0.19999999999999996andtrain_size=None, theresultingtrainsetwillbeempty. Adjustanyoftheaforementionedparameters.
I assume there is an additional step to download the required data to DATA_DIR which is not listed here
The text was updated successfully, but these errors were encountered:
Updated to use
CHECKPOINT_PATH = "https://clay-model-ckpt.s3.amazonaws.com/v0.5.7/mae_v0.5.7_epoch-13_val-loss-0.3098.ckpt"
At the cell which creates the datamodule I get:
I assume there is an additional step to download the required data to
DATA_DIR
which is not listed hereThe text was updated successfully, but these errors were encountered: