Open Nageshwar06 opened 2 years ago
Dear Sir, i was testing the code with same dataset that you have posted in github for Image classification via k-fold-cross validation but I have gotten the issue related with classes that it should be 3 but during the running of code I have gotten 4 classes. So shape mismatch problem is showing i.e. [190 3] vs [190 4]. So please resolve this issue as soon as possible. For better understanding Output that was coming, attached below.......
Results for fold 1
Found 191 images belonging to 4 classes. Found 64 images belonging to 4 classes. /usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:46: UserWarning:
Model.fit_generator
is deprecated and will be removed in a future version. Please useModel.fit
, which supports generators. Epoch 1/100InvalidArgumentError Traceback (most recent call last) in () 44 # fit model 45 history=model.fit_generator(train_generator, ---> 46 epochs=EPOCHS) 47 48 predictions = model.predict_generator(validation_generator, verbose=1)
Hi, could you please share more details of the error? I checked the script on my end again, it still works fine.
Results for fold 1 Found 191 images belonging to 4 classes. Found 64 images belonging to 4 classes.
/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:46: UserWarning: Model.fit_generator
is deprecated and will be removed in a future version. Please use Model.fit
, which supports generators.
Epoch 1/100
InvalidArgumentError Traceback (most recent call last)
Is the program (.ipynb code) kept inside the DS folder? Please try to run the notebook in the same structure as given here in the repo.
Dear Sir, i was testing the code with same dataset that you have posted in github for Image classification via k-fold-cross validation but I have gotten the issue related with classes that it should be 3 but during the running of code I have gotten 4 classes. So shape mismatch problem is showing i.e. [190 3] vs [190 4]. So please resolve this issue as soon as possible. For better understanding Output that was coming, attached below.......
Results for fold 1 Found 191 images belonging to 4 classes. Found 64 images belonging to 4 classes. /usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:46: UserWarning:
Model.fit_generator
is deprecated and will be removed in a future version. Please useModel.fit
, which supports generators. Epoch 1/100InvalidArgumentError Traceback (most recent call last)