mirror of
https://github.com/LdDl/go-darknet.git
synced 2025-09-26 19:51:27 +08:00
21 lines
317 B
Go
21 lines
317 B
Go
package darknet
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestReadSectionsFromCfg(t *testing.T) {
|
|
sections, err := readCfg("./cmd/examples/yolov7-tiny.cfg")
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
return
|
|
}
|
|
for _, s := range sections {
|
|
fmt.Println(s.Type)
|
|
for _, o := range s.Options {
|
|
fmt.Println("\t", o)
|
|
}
|
|
}
|
|
}
|