Skip to content
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

training for my own dataset #6

Open
NerminSalem opened this issue Jul 31, 2018 · 20 comments
Open

training for my own dataset #6

NerminSalem opened this issue Jul 31, 2018 · 20 comments

Comments

@NerminSalem
Copy link

NerminSalem commented Jul 31, 2018

thanks alot for sharing yr code.
how can i use it to train on my own dataset ? also i have a question regarding used loss function, from wt i understand of yr code is that u only used root mean sqaure loss, is that correct?
yr help is really appropriated

@KhyatiGanatra
Copy link

thanks alot for sharing yr code.
how can i use it to train on my own dataset ? also i have a question regarding used loss function, from wt i understand of yr code is that u only used root mean sqaure loss, is that correct?
yr help is really appropriated

I have the same question. How to train on my custom dataset. It is trying to load saved models, which does not exist already. Any help will be appreciated

@NerminSalem
Copy link
Author

@MathiasGruber your help is really appreciated, how to run the code?

@MathiasGruber
Copy link
Owner

You should follow the notebook "Step4 - Imagenet Training.ipynb", and change the TRAIN_DIR, TEST_DIR and VAL_DIR as appropriate. Let me know if it doesn't work :)

@KhyatiGanatra
Copy link

:)

Yes, thanks for the reply. I have changed the directories. But in later part where you are trying to load model, and trying to access logs, its empty. There is no model to load in Phase 1. Please correct if I am wrong

@NerminSalem
Copy link
Author

You should follow the notebook "Step4 - Imagenet Training.ipynb", and change the TRAIN_DIR, TEST_DIR and VAL_DIR as appropriate. Let me know if it doesn't work :)

i m getting this error (Found 0 images belonging to 0 classes.). do i have to put the images in a folder and wt should i name it? also i followed the same paths to train, pexels and val
yr help is really needed thanks

@Zzzzy411
Copy link

Zzzzy411 commented Nov 4, 2018

i m getting this error (Found 0 images belonging to 0 classes.). do i have to put the images in a folder and wt should i name it? also i followed the same paths to train, pexels and val
yr help is really needed thanks

Have you solved this problem ?Thanks for your answer.

@NerminSalem
Copy link
Author

Sadly still didn't find a solution

@xdujiang
Copy link

xdujiang commented Nov 9, 2018

@NerminSalem @Zzzzy411
There must be subfolders in your TRAIN_DIR, TEST_DIR, VAL_DIR, and you need to put image files in the subfolders...
keras-team/keras#3946 (comment)

@JaimeCarracedo
Copy link

:)

Yes, thanks for the reply. I have changed the directories. But in later part where you are trying to load model, and trying to access logs, its empty. There is no model to load in Phase 1. Please correct if I am wrong

Hi, have you any solution for this problem? Thanks.

@ZDD2009
Copy link

ZDD2009 commented Feb 14, 2019

You should follow the notebook "Step4 - Imagenet Training.ipynb", and change the TRAIN_DIR, TEST_DIR and VAL_DIR as appropriate. Let me know if it doesn't work :)

i m getting this error (Found 0 images belonging to 0 classes.). do i have to put the images in a folder and wt should i name it? also i followed the same paths to train, pexels and val
yr help is really needed thanks
Hi,Had the problem been solved?Thanks!

@ZDD2009
Copy link

ZDD2009 commented Feb 14, 2019

i m getting this error (Found 0 images belonging to 0 classes.). do i have to put the images in a folder and wt should i name it? also i followed the same paths to train, pexels and val
yr help is really needed thanks

@MathiasGruber
Copy link
Owner

I've updated the repo with a CLI, so you should now be able to do:
python main.py
--name MyDataset
--train TRAINING_PATH
--validation VALIDATION_PATH
--test TEST_PATH
--vgg_path './data/logs/pytorch_to_keras_vgg16.h5'

Note that each image folder needs one or more subfolders that contain the actual images, since I'm basing my image generator on the ImageDataGenerator.

@shabin75
Copy link

shabin75 commented Mar 9, 2019

i have an issue
after first epoch
current_index = (self.batch_index * self.batch_size) % self.n
ZeroDivisionError: integer division or modulo by zero
pls help me

@Lvhhhh
Copy link

Lvhhhh commented Mar 27, 2019

i have an issue
after first epoch
current_index = (self.batch_index * self.batch_size) % self.n
ZeroDivisionError: integer division or modulo by zero
pls help me

i have the same problem , do you fix it?

@ttxxr
Copy link

ttxxr commented Mar 27, 2019

i have an issue
after first epoch
current_index = (self.batch_index * self.batch_size) % self.n
ZeroDivisionError: integer division or modulo by zero
pls help me

i have the same problem , do you fix it?
I have the same problem,too. If you have any solution for it , could you tell me ,please ?

@Lvhhhh
Copy link

Lvhhhh commented Mar 28, 2019

i have an issue
after first epoch
current_index = (self.batch_index * self.batch_size) % self.n
ZeroDivisionError: integer division or modulo by zero
pls help me

i have the same problem , do you fix it?
I have the same problem,too. If you have any solution for it , could you tell me ,please ?

i fix it , delete the 'val' because there is no 'val' folder in your valiation sample

@Lvhhhh
Copy link

Lvhhhh commented Mar 28, 2019

i have an issue
after first epoch
current_index = (self.batch_index * self.batch_size) % self.n
ZeroDivisionError: integer division or modulo by zero
pls help me

delete 'val' in your valition sample

@elham1992
Copy link

elham1992 commented Apr 29, 2019

thanks alot for sharing your code.
i use the cli to train on my own dataset .
python main.py --name celeba --train ./data/train --test ./data/test --vgg_path ./data/pytorch_to_keras_vgg16.h5

out put on command prompt is :
image
why no result and training is 0%??
pleas help me and answer to my Question.

@SunnyPann
Copy link

i have an issue
after first epoch
current_index = (self.batch_index * self.batch_size) % self.n
ZeroDivisionError: integer division or modulo by zero
pls help me

Are you training on your own training set?
Where can I download the training model?
thank you

@jiguanglu
Copy link

i m getting this error (Found 0 images belonging to 0 classes.). do i have to put the images in a folder and wt should i name it? also i followed the same paths to train, pexels and val
yr help is really needed thanks

Have you solved this problem ?Thanks for your answer.
Hi ,
TRAIN_DIR = r'/home/user/my_test/PConv-Keras/data/train'
VAL_DIR = r'/home/user/my_test/PConv-Keras/data/val'
TEST_DIR = r'/home/user/my_test/PConv-Keras/data/test'
In each folder, you must have the sub folder and they must have the same name. like this.

data/
...images/
........./images
...masks/
........./masks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests