-
Notifications
You must be signed in to change notification settings - Fork 54
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
TypeError: load_tfcsv_dataset() got multiple values for argument 'augmentation' #45
Comments
Follow below steps , it should work step 1 config creationfrom detr_tf.training_config import TrainingConfig class CustomConfig(TrainingConfig):
config = CustomConfig() Step 2 create function for loading data def load_hardhat_data_from_index(index, filenames, train_val, anns, config, augmentation): print(filenames[index])
def load_hardhat(train_val, batch_size, config, augmentation=False):
Step 3 data loading dataset,CLASS_NAMES = load_hardhat('W2Forms', 1, config) data format used for fine tuning is attached , Training data (images) and annotation file is stored in /data/W2Forms location |
Hi
I am getting this error when Loading the dataset for fine tuning.
from detr_tf.data import load_tfcsv_dataset
train_iterator, class_names = load_tfcsv_dataset("train", config.batch_size, config, augmentation=True, exclude=["person"])
valid_iterator, class_names = load_tfcsv_dataset("test", config.batch_size, config, augmentation=False, exclude=["person"])
print("class_names", class_names)
The text was updated successfully, but these errors were encountered: