dynamic
dynamic copied to clipboard
ValueError: num_samples should be a positive integer value, but got num_samples=0
Hello. I have run the code on google colab for a dry run and it was working just fine. I am now running it on a GPU-enabled server. But getting this error. "ValueError: num_samples should be a positive integer value, but got num_samples=0".
I have ensured that the Videos/ folder and the 2 csvs are in the same folder from where I am running the python script. I have a doubt if the BATCH SIZE and NUM_WORKERS can be the reason for this. And if yes, what should I change it to, increase or decrease?
I have attached screenshots and copied the content of the error (output.stdout) and the code in my python script which I run.
Please help, and thanks in advance!!!!
THE ERROR:
Traceback (most recent call last):
File "echoDynamic.py", line 18, in
THE CODE:
import sys sys.path.append("/home/ashivdeo/Echonet/Echonet/")
import echonet echonet.utils.segmentation.run( num_epochs=50, modelname="deeplabv3_resnet50", pretrained=False, output=None, device=None, n_train_patients=None, num_workers=0, batch_size=1, seed=0, lr_step_period=None, save_segmentation=True, block_size=2, run_test=True)
I ran into the same issue. May the developer help, please?