LiheYoung / UniMatch

[CVPR 2023] Revisiting Weak-to-Strong Consistency in Semi-Supervised Semantic Segmentation
https://arxiv.org/abs/2208.09910
MIT License
452 stars 59 forks source link

你好,发现一个readme的小问题 #24

Closed yang654123 closed 1 year ago

yang654123 commented 1 year ago

image 这里的confidence score是从0.95变成多少呢?

yang654123 commented 1 year ago

你好,还有一个问题就是,cityscapes的更改resnet输出步长的位置在哪里?

LiheYoung commented 1 year ago
  1. 这里就是从0.95改成了0
  2. cityscapes config文件里的replace_stride_with_dilation: [False, False, True]表示output stride为16,之前的[False, True, True]表示output stride为8
Ph-Xu commented 1 year ago

您好,感谢您的代码开源。想请教一下UniMatch这个项目中,我想跑more-scenarios下的medical项目,目前已经按照对应readme配置了环境,acdc数据集也下载了,已修改configs下acdc.yaml中数据集的路径,下一步怎么训练模型? sh train.sh?期待您的答复~

LiheYoung commented 1 year ago

可以参考这里开启训练,例如:sh scripts/train.sh 1 20024

Ph-Xu commented 1 year ago

感谢您的回复,我是在本地Ubuntu系统上配置的环境,这个 是怎么给定?

LiheYoung commented 1 year ago
是需要用的GPU数量,设为1就行: ``sh scripts/train.sh 1 20024``
Ph-Xu commented 1 year ago

谢谢您的回复,上一个问题没有问全,第二个参数看起来是端口号,必须指定嘛,是固定值20024就可以还是随意指定就行,或者不是必须的?另外,是运行more-scenarios/medical/scripts下面的train.sh吗还是主目录下面那个?谢谢您

LiheYoung commented 1 year ago
  1. 端口号一般在20000-30000之间随便选个数就行
  2. 运行more-scenarios/medical/scripts下的train.sh
Ph-Xu commented 1 year ago

还是不行,报错了,能指点一下吗 warnings.warn( usage: launch.py [-h] [--nnodes NNODES] [--nproc_per_node NPROC_PER_NODE] [--rdzv_backend RDZV_BACKEND] [--rdzv_endpoint RDZV_ENDPOINT] [--rdzv_id RDZV_ID] [--rdzv_conf RDZV_CONF] [--standalone] [--max_restarts MAX_RESTARTS] [--monitor_interval MONITOR_INTERVAL] [--start_method {spawn,fork,forkserver}] [--role ROLE] [-m] [--no_python] [--run_path] [--log_dir LOG_DIR] [-r REDIRECTS] [-t TEE] [--node_rank NODE_RANK] [--master_addr MASTER_ADDR] [--master_port MASTER_PORT] [--use_env] training_script ... launch.py: error: the following arguments are required: training_script, training_script_args train.sh: 28: unimatch.py: not found

Ph-Xu commented 1 year ago

还是不行,报错了,能指点一下吗 warnings.warn( usage: launch.py [-h] [--nnodes NNODES] [--nproc_per_node NPROC_PER_NODE] [--rdzv_backend RDZV_BACKEND] [--rdzv_endpoint RDZV_ENDPOINT] [--rdzv_id RDZV_ID] [--rdzv_conf RDZV_CONF] [--standalone] [--max_restarts MAX_RESTARTS] [--monitor_interval MONITOR_INTERVAL] [--start_method {spawn,fork,forkserver}] [--role ROLE] [-m] [--no_python] [--run_path] [--log_dir LOG_DIR] [-r REDIRECTS] [-t TEE] [--node_rank NODE_RANK] [--master_addr MASTER_ADDR] [--master_port MASTER_PORT] [--use_env] training_script ... launch.py: error: the following arguments are required: training_script, training_script_args train.sh: 28: unimatch.py: not found

LiheYoung commented 1 year ago

@Ph-Xu Answered in https://github.com/LiheYoung/UniMatch/issues/25

youngprogrammerBee commented 1 year ago
是需要用的GPU数量,设为1就行: `sh scripts/train.sh 1 20024`

你好 请问如果指定训练的gpu卡号的话该如何指定? 感谢!

youngprogrammerBee commented 1 year ago

已经解决了,可以在train.sh的训练代码前添加CUDA_VISIBLE_DEVICES=3,4

YKtzo commented 1 year ago

你好,我成功复现了您的医学图像训练程序,请问怎样进行推理?

LiheYoung commented 1 year ago

我们是在每个训练的epoch结束后都会进行一遍验证的,如果需要推理并保存可视化结果的话,需要自己加一些可视化的代码。

YKtzo commented 1 year ago

我们是在每个训练的epoch结束后都会进行一遍验证的,如果需要推理并保存可视化结果的话,需要自己加一些可视化的代码。

好的好的,谢谢您的回复

yang654123 commented 1 year ago
  1. 这里就是从0.95改成了0
  2. cityscapes config文件里的replace_stride_with_dilation: [False, False, True]表示output stride为16,之前的[False, True, True]表示output stride为8 你好我发现你的原来代码中的cityscape config 中cropsize是756 但是现在的cropsize改成了801
LiheYoung commented 1 year ago

为了跟CPS和U2PL一致。

yang654123 commented 1 year ago

为了跟CPS和U2PL一致。

好的谢谢您