Giter Site home page Giter Site logo

attempt_download ERROR about yolov7 HOT 4 OPEN

carlosjulioph avatar carlosjulioph commented on August 25, 2024
attempt_download ERROR

from yolov7.

Comments (4)

yeyan00 avatar yeyan00 commented on August 25, 2024

assets = [x['name'] for x in response['assets']] # release assets KeyError: 'assets'

\utils\google_utils.py", line 26, in attempt_download

yolov7.pt yolov7x.pt yolov7-w6.pt yolov7-e6.pt yolov7-d6.pt yolov7-e6e.pt

download pt file by yourself,and then set param weights in train.py

from yolov7.

CVer2022 avatar CVer2022 commented on August 25, 2024

This code parameters still include ‘yolov6’ !!!
def attempt_download(file, repo='WongKinYiu/yolov6'):
# Attempt file download if does not exist
file = Path(str(file).strip().replace("'", '').lower())

if not file.exists():
    try:
        response = requests.get(f'https://api.github.com/repos/{repo}/releases/weights').json()  # github api
        assets = [x['name'] for x in response['assets']]  # release assets
        tag = response['tag_name']  # i.e. 'v1.0'
    except:  # fallback plan
        assets = ['yolov6.pt']
        tag = subprocess.check_output('git tag', shell=True).decode().split()[-1]

from yolov7.

kaushik183 avatar kaushik183 commented on August 25, 2024

set param weights in train.py

Can you please explain how to set param weights in train.py?

from yolov7.

999rse avatar 999rse commented on August 25, 2024

set param weights in train.py

Can you please explain how to set param weights in train.py?

In folder runs/train/here you have different starts example: name_your_model_number/weights/best.pt pick this path and put to python3 detect.py --weights _here_ and other parameters

In my case python3 detect.py --weights runs/train/yolov711/weights/best.pt --conf 0.1 --source /home/arsenii/Documents/smart-dress-code/

from yolov7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.