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 #45

Closed
shuoshuoshuoer opened this issue Sep 12, 2023 · 5 comments
Closed

train #45

shuoshuoshuoer opened this issue Sep 12, 2023 · 5 comments

Comments

@shuoshuoshuoer
Copy link

您好,我这边在训练时,按照您的步骤先下载数据集然后transform,运行只训练RGB,还是出现标签找不到:No labels in D:\experienment\SuperYOLO-main\SuperYOLO-main\dataset\VEDAI_1024\images.cache. Can not train without labels;您知道这该如何解决么

@icey-zhang
Copy link
Owner

icey-zhang commented Sep 21, 2023

可以看一下断点运行到这

self.label_files = img2label_paths(self.img_files) # labels

,确认一下图像和标签的路径对不对。

@ljs-1
Copy link

ljs-1 commented Oct 16, 2023

没有预训练权重的化怎么样训练自己的数据集成

@Joey-He
Copy link

Joey-He commented Nov 2, 2023

您好,我这边在训练时,按照您的步骤先下载数据集然后transform,运行只训练RGB,还是出现标签找不到:No labels in D:\experienment\SuperYOLO-main\SuperYOLO-main\dataset\VEDAI_1024\images.cache. Can not train without labels;您知道这该如何解决么

您好 您解决了吗

@dwddw
Copy link

dwddw commented Nov 3, 2023

def img2label_paths(img_paths):
    # Define label paths as a function of image paths
    sa = 'images'
    sb = 'labels'
    # sa, sb = os.sep + 'images' + os.sep, os.sep + 'labels' + os.sep  # /images/, /labels/ substring
    return [x.replace(sa, sb, 1).replace('_' + x.split('_')[-1], '.txt') for x in img_paths] #replace('.' + x.split('.')[-1], '.txt')

@Joey-He
Copy link

Joey-He commented Nov 13, 2023

def img2label_paths(img_paths):
    # Define label paths as a function of image paths
    sa = 'images'
    sb = 'labels'
    # sa, sb = os.sep + 'images' + os.sep, os.sep + 'labels' + os.sep  # /images/, /labels/ substring
    return [x.replace(sa, sb, 1).replace('_' + x.split('_')[-1], '.txt') for x in img_paths] #replace('.' + x.split('.')[-1], '.txt')

谢谢 成功运行了

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

5 participants