burke86 / astro_rcnn

Astro R-CNN: Instance Segmentation in Astronomical Images using Mask R-CNN Deep Learning
MIT License
43 stars 15 forks source link

code error #11

Open psjadeja2024 opened 1 year ago

psjadeja2024 commented 1 year ago

hello,

I try to run this "https://nbviewer.org/github/burke86/astrodet/blob/main/demo_decam.ipynb ". . in this code while i run

nsample = 3 # Number of example images to plot fig, axs = plt.subplots(1, nsample, figsize=(5*nsample, 5))

for i, d in enumerate(random.sample(dataset_dicts['test'], nsample)):

an error comes " ValueError: Sample larger than population or is negative"

so how to fix it?