Files
go-darknet/section_test.go
2023-01-03 17:39:23 +03:00

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)
}
}
}