필터 지우기
필터 지우기

Unable to use Detect Defects on Printed Circuit Boards Using YOLOX Network Example

조회 수: 3 (최근 30일)
Alex
Alex 2024년 2월 22일
편집: Aishwarya 2024년 3월 20일
Hi All,
I am trying to run the Automated Visual inspection toolbox example:
Detect Defects on Printed Circuit Boards Using YOLOX Network
I am trying to run the example on both the live editor and on my local MatLab application but are getting errors trying to unzip the urls given.
Was wondering if anyone else had any luck successfully running this example?
Here is the error I am getting.
error using matlab.io.interal.archive.checkFilename>downloadArchiveFile
Function UNZIP was unable to read URL ''https://github.com/Ironbrotherstyle/PCB-DATASET/archive/refs/head/master.zip''.
Error in matlab.io.internal.archive.checkFilename (line51)
fullfilename = downloadArchiveFile(protocol, filename, functionName);
Error in parseUnArchiveInputs (line 83)
[archiveFilename, url] = matlab.io.internal.archive.checkFilename(archiveFilename, validExtensions, archiveFcn, argName);
Error in unzip (line 58)
[zipFilename, outputDIr, url, urlFilename] = parseUnArchiveInputs( ...
Error in dowloadPCBDefectData )line 16)
unzip(dataURL, dataDir);
Thank you!

답변 (1개)

Aishwarya
Aishwarya 2024년 3월 20일
편집: Aishwarya 2024년 3월 20일
Hi @Alex,
I recently had the opportunity to run the “Detect Defects on Printed Circuit Boards Using YOLOX Network” example code on MATLAB R2023b successfully.
After reviewing the error message, it seems like the URL is different from what is mentioned in the example code. Consider the following steps to help resolve the issue:
  • The URL in the error message seems to be incorrect as it produces a “404: Not Found” error when trying to manually access it through the browser.
  • After inspecting the “dowloadPCBDefectData.m” file in the example folder, the correct URL should have “heads” instead of “head” in the path. Here is the corrected URL path: https://github.com/Ironbrotherstyle/PCB-DATASET/archive/refs/heads/master.zip
  • Correct the “dowloadPCBDefectData.m” script with the above URL link. The corrected line in the script is shown in the code snippet below:
dataURL = 'https://github.com/Ironbrotherstyle/PCB-DATASET/archive/refs/heads/master.zip';
unzip(dataURL, dataDir);
I hope this helps resolve your query!

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by