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

Custom dataset #7

Closed
Jorisfournel opened this issue Jan 9, 2019 · 3 comments
Closed

Custom dataset #7

Jorisfournel opened this issue Jan 9, 2019 · 3 comments

Comments

@Jorisfournel
Copy link

Hello,

First of all thank you for your contribution.
Could you please point us what is to be changed in your code in order
to apply those networks to a custom dataset?

Thanks!!
Joris

@LeeJunHyun
Copy link
Owner

LeeJunHyun commented Jan 10, 2019

Dear @Jorisfournel , I appreciate about your interest.

At main.py#L93, you can change the path to your own dataset directory if your dataset already split train/valid/test.
In this case, you should save your ground truth data at TRAIN_PATH_NAME + _GT/,VALID_PATH_NAME + _GT/,TEST_PATH_NAME + _GT/

else, you can change the path of dataset.py#L99, if you have only the split image/groud truth. And then run dataset.py.


or you can use argparser like
main.py --train_path='YOUR_TRAIN_IMG_PATH' --valid_path='YOUR_VALID_IMG_PATH' --test_path='YOUR_TEST_IMG_PATH'
In this case, you also should save your ground truth data at TRAIN_PATH_NAME + _GT/,VALID_PATH_NAME + _GT/,TEST_PATH_NAME + _GT/

or

dataset.py --origin_data_path='CUSTUM_IMAGE_PATH' --'origin_GT_path=CUSTUM_GROUND_TRUTH_PATH'


If it not works, then plz leave more issues anytime :)

@LeeJunHyun
Copy link
Owner

If you don't have further questions, I will close the issue. I hope my answer was helpful :)

@loaysh2010
Copy link

Hello,
@LeeJunHyun
I followed your instruction by changing the path to my data in dataset.py L99,100 .. but after running the code I got num of samples= 0 in all folders (train, valid, test)

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

3 participants