keras-team/keras-io

Can I Use This Code With My Own Dataset?

enissimsir opened this issue · 3 comments

Issue Type

Support

Source

source

Keras Version

2.14

Custom Code

Yes

OS Platform and Distribution

No response

Python version

No response

GPU model and memory

No response

Current Behavior?

Can I try this code with my own dataset? I wanna train a model with my dataset and it is not from TFDS

Standalone code to reproduce the issue or tutorial link

How should I change here?:
dataset_name = "stanford_dogs"
(ds_train, ds_test), ds_info = tfds.load(
    dataset_name, split=["train", "test"], with_info=True, as_supervised=True
)
NUM_CLASSES = ds_info.features["label"].num_classes

Relevant log output

No response

Yes,

You can use any other dataset which can be considered for a classification problem other than TFDS also.

Mae sure you prepare your dataset pipeline according to your dataset which can be feed into the model.

You can refer this guide for some references: https://keras.io/api/data_loading/

This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.

This issue was closed because it has been inactive for 28 days. Please reopen if you'd like to work on this further.