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

Couldn't open file: train.txt #1

Open
ameyapatil-drishtigroup opened this issue Feb 12, 2018 · 1 comment
Open

Couldn't open file: train.txt #1

ameyapatil-drishtigroup opened this issue Feb 12, 2018 · 1 comment

Comments

@ameyapatil-drishtigroup

Hey! Awesome work of automating Yolo. However, I have faced following error but, I couldnt understand how to resolve it.
screenshot from 2018-02-12 11-59-40
Can you please help me?

@ameyapatil-drishtigroup
Copy link
Author

ameyapatil-drishtigroup commented Feb 12, 2018

Hey! Found the solution. Just modified following in OneTouchYolo.py

def generate_yolo_obj_data_file(n):
	obj_data = open(output_path+'/'+output_path+'.data','w')
	obj_data.write('classes='+str(n)+'\n')
	obj_data.write('train  = train.txt'+'\n')
	obj_data.write('valid  = test.txt '+'\n')
	obj_data.write(output_path+'/'+output_path+".names"+'\n')
        obj_data.write('backup = backup/')

to

def generate_yolo_obj_data_file(n):
	obj_data = open(output_path+'/'+output_path+'.data','w')
	obj_data.write('classes='+str(n)+'\n')
	obj_data.write('train  = '+darknet_path+'/'+output_path+'/train.txt'+'\n')
	obj_data.write('valid  = '+darknet_path+'/'+output_path+'/test.txt '+'\n')
	obj_data.write(output_path+'/'+output_path+".names"+'\n')
	obj_data.write('backup = backup/')

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

1 participant