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

[train_task_classifyapp.py] Cannot sample 1500 from 0 files found in task/classifyapp/ir_train/1 #4

Closed
GostD opened this issue Feb 22, 2019 · 2 comments · Fixed by #9

Comments

@GostD
Copy link

GostD commented Feb 22, 2019

I called python train_task_classifyapp.py and got this output:

Evaluating ClassifyappInst2Vec ...
Getting file names for 104 classes from folders:
task/classifyapp/ir_train
task/classifyapp/ir_val
task/classifyapp/ir_test
	training  : Read file names from folder  task/classifyapp/ir_train/1
 Traceback (most recent call last):
  File "train_task_classifyapp.py", line 478, in <module>
    app.run(main)
  File "/home/selp/.local/lib/python3.6/site-packages/absl/app.py", line 300, in run
    _run_main(main, args)
  File "/home/selp/.local/lib/python3.6/site-packages/absl/app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "train_task_classifyapp.py", line 470, in main
    dense_layer_size, print_summary, num_epochs, batch_size)
  File "train_task_classifyapp.py", line 289, in evaluate
    len(seq_files)) + " files found in " + folder
AssertionError: Cannot sample 1500 from 0 files found in task/classifyapp/ir_train/1
@GostD
Copy link
Author

GostD commented Feb 22, 2019

As far as I understand, this line

classifyapp_accuracy = evaluate(NCC_classifyapp(), embeddings, folder_data, 
    train_samples, folder_results, dense_layer_size,
    print_summary, num_epochs, batch_size)

should be replaced with this line

classifyapp_accuracy = evaluate(NCC_classifyapp(), embeddings, "task/classifyapp/seq", 
    train_samples, folder_results, dense_layer_size, 
    print_summary, num_epochs, batch_size)

Am I right?

@tbennun
Copy link
Collaborator

tbennun commented Feb 23, 2019

Hi @GostD,

Did you extract the dataset in the correct folder? As mentioned in the README, it can be found at: https://polybox.ethz.ch/index.php/s/JOBjrfmAjOeWCyl

@tbennun tbennun closed this as completed Apr 8, 2019
Zacharias030 added a commit to Zacharias030/ncc that referenced this issue May 6, 2019
Made changes to let tensorflow only block as much GPU memory as necessary.
Fixed path for saving weights on ctrl+C and path scheme for models and predictions of classifyapp task.
tbennun added a commit that referenced this issue May 13, 2019
Fixes #4, #6 and minor improvements
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

Successfully merging a pull request may close this issue.

2 participants