crclz

Results 7 comments of crclz

My solution: 1. create `predefined_classes.txt` before labeling any images 2. run command: `labelImg $ImageFolder $PredefinedClassesTxtPath`. For example, if you created `predefined_classes.txt` under the images folder (step 1), you can just...

@julealgon receiving data at the speed of ~15kb/s and processing the data, is it a performance-critical scenario?

The Reflection API cannot go into a method's body. ( https://stackoverflow.com/questions/2693881/can-i-use-reflection-to-inspect-the-code-in-a-method ) So, when the code is `return new{a=1,b=2}`, Reflection API cannot get the structure of the anonymous type. What...

你可以配置2套环境(生产环境、开发环境)。生产环境的db结构肯定是不能轻易变动的,但是这不影响你开发。你在开发新功能时,先在开发环境变动数据库结构,然后连接开发环境的数据库进行model和query的generate,然后进行开发和测试。等到开发和测试完成后,再对生产环境的数据库做变动。

@qqxhb 根据这个文档,如果想要更新所有列,需要Select("*")。 ```go // Select all fields (select all fields include zero value fields) db.Model(&user).Select("*").Updates(User{Name: "jinzhu", Role: "admin", Age: 0}) ``` 但是实际测试发现,Select(u.ALL) 不能更新0值的列(ALL是自动生成的,field.Asterisk)。 ```go // 不会更新0值 _, err := u.WithContext(ctx).Where(u.ID.Eq(entity.ID)).Select(u.ALL).Updates(entity)...

@key9527 我也好像遇到了类似的问题。我找到一个可以永久解决问题,但不太优雅的办法: 例如我的mongo服务的ClusterIP是10.104.112.16,当我执行ktctl connect后,它会提示我“Adding route to 10.104.112.16/32”,我暂时不清楚为什么/32有问题,但是知道怎么解决。以下是解决方案: 再创建一个service ```yaml apiVersion: v1 kind: Service metadata: name: inf-etcd-common2 namespace: d2 spec: clusterIP: 10.104.112.17 # 注意,这里只需在mongo服务的ClusterIP10.104.112.14末尾变动一下,在与其他ip冲突的情况下,距离原本ip尽量近 ports: - port: 2379 targetPort: 2379 selector:...