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
I'm following the train_a_new_model_on_a_new_dataset_from_scratch.ipynb and used python3.11 -m venv venv && source venv/bin/activate for virtual env.
I noticed that the corenet doesn't have internal. The correct path would instead be from corenet.cli.entrypoints import entrypoints as internal_entrypoints.
But after using the revised import and running corenet-train --common.config-file projects/playground_cifar10/classification/cifar10.yaml, I got the following error:
[2024-06-16 12:11:38,989] torch.distributed.elastic.multiprocessing.redirects: [WARNING] NOTE: Redirects are currently not supported in Windows or MacOs.
2024-06-16 12:11:58 - DEBUG - Cannot load internal arguments, skipping.
2024-06-16 12:12:06 - LOGS - Random seeds are set to 0
2024-06-16 12:12:06 - LOGS - Using PyTorch version 2.2.2
2024-06-16 12:12:06 - WARNING - No GPUs available. Using CPU
2024-06-16 12:12:06 - LOGS - Setting --ddp.world-size the same as the number of available gpus.
2024-06-16 12:12:06 - LOGS - Directory created at: results/run_1
File "/Users/friedahuang/Desktop/corenet/venv/bin/corenet-train", line 8, in <module>
sys.exit(main_worker())
File "/Users/friedahuang/Desktop/corenet/corenet/cli/main_train.py", line 36, in main_worker
launcher(callback)
File "/Users/friedahuang/Desktop/corenet/corenet/train_eval_pipelines/default_train_eval.py", line 292, in <lambda>
return lambda callback: callback(self)
File "/Users/friedahuang/Desktop/corenet/venv/lib/python3.11/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 347, in wrapper
return f(*args, **kwargs)
File "/Users/friedahuang/Desktop/corenet/corenet/cli/main_train.py", line 27, in callback
train_sampler = train_eval_pipeline.train_sampler
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/functools.py", line 1001, in __get__
val = self.func(instance)
File "/Users/friedahuang/Desktop/corenet/corenet/train_eval_pipelines/default_train_eval.py", line 102, in train_sampler
_, _, train_sampler = self._train_val_loader_sampler
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/functools.py", line 1001, in __get__
val = self.func(instance)
File "/Users/friedahuang/Desktop/corenet/corenet/train_eval_pipelines/default_train_eval.py", line 87, in _train_val_loader_sampler
return create_train_val_loader(opts)
File "/Users/friedahuang/Desktop/corenet/corenet/data/data_loaders.py", line 97, in create_train_val_loader
train_dataset, valid_dataset = get_train_val_datasets(opts)
File "/Users/friedahuang/Desktop/corenet/corenet/data/datasets/__init__.py", line 124, in get_train_val_datasets
train_dataset = build_dataset_from_registry(
File "/Users/friedahuang/Desktop/corenet/corenet/data/datasets/__init__.py", line 83, in build_dataset_from_registry
dataset = DATASET_REGISTRY[dataset_name, dataset_category](
File "/Users/friedahuang/Desktop/corenet/corenet/utils/registry.py", line 133, in __getitem__
logger.error(temp_str + "\n")
File "/Users/friedahuang/Desktop/corenet/corenet/utils/logger.py", line 46, in error
traceback.print_stack()
2024-06-16 12:12:06 - ERROR -
classification:cifar10 not yet supported in dataset_registry registry.
Supported values are:
0: classification:imagenet_a
1: classification:imagenet_r
2: classification:imagenet_sketch
3: audio_classification:speech_commands_v2
4: classification:coco
5: classification:imagenet
6: classification:imagenet_v2
7: classification:places365
8: classification:wordnet_tagged_classification
9: detection:coco
10: detection:coco_mask_rcnn
11: detection:coco_ssd
12: language_modeling:commonsense_170k
13: language_modeling:general_lm
14: multi_modal_image_text:flickr
15: multi_modal_image_text:img_text_tar
16: segmentation:ade20k
17: segmentation:coco
18: segmentation:coco_stuff
19: segmentation:pascal
. Exiting!!!
For context, I'm using Apple M2 Pro
The text was updated successfully, but these errors were encountered:
I'm following the
train_a_new_model_on_a_new_dataset_from_scratch.ipynb
and usedpython3.11 -m venv venv && source venv/bin/activate
for virtual env.I noticed that the
corenet
doesn't haveinternal
. The correct path would instead befrom corenet.cli.entrypoints import entrypoints as internal_entrypoints
.But after using the revised import and running
corenet-train --common.config-file projects/playground_cifar10/classification/cifar10.yaml
, I got the following error:For context, I'm using Apple M2 Pro
The text was updated successfully, but these errors were encountered: