Open Mitchnoff opened 1 year ago
Hi
Yes on the Chexpert dataset, the names of the .pt
files should not be brats of course. You can change that to chexpert or whatever you like.
The error message seems to be only for visualization. The problem is that you try to plot the second channel, but on Chexpert there is only a one-channel image. Therefore, you need to change it to viz.image(visualize(img[0, 0,...]), opts=dict(caption=str(i)))
.
However, I am wondering why you end up in _p_sample_loopknown rather than _ddim_sample_loopknown. did you set use_ddim=True? I think you forgot the $SAMPLE_FLAGS when you apply the command
python scripts/classifier_sample_known.py \
--data_dir /path/to/data/chexpert/testing/ \
--model_path ./_results_big/brats2update350000.pt \
--classifier_path ./_results_2/modelbratsclass149999.pt \
--dataset chexpert \
--classifier_scale 100 \
--noise_level 500 \
$MODEL_FLAGS $DIFFUSION_FLAGS $CLASSIFIER_FLAGS $SAMPLE_FLAGS
hello! I want to ask, is it OK to use my own dataset to directly divide the dataset into healthy and diseased ones? Do I need to label it with other labels
My classification loss is a little strange
My classification loss is a little strange
Hello, I have been reproducing this paper recently. When I was training the classifier model, my loss did not decrease. May I consult your parameter setting? The dataset I use is chexpert, and then the healthy label is 1 and the diseased label is 0
I believe I have successfully trained embeddings by following the steps for the classifier and the model itself. I made a shell script to do the inferencing:
IMPORTANT NOTE: for the model path and classifier path renamed the old results folders to
_results_big
and_results_2
that contained results from previous runs. This is why in the shell script I have the .pt files in different directories than the typical results directory.Another note is that I am training on the Chexpert dataset, however the names of the
.pt
files are brats for some reason.From what I gathered these are the correct models to use but I am not certain. When I run inference I get this error:
Any tips on how to resolve this are greatly appreciated as I am uncertain how to progress.