-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A problem in the using my own data #3
Comments
I have the same issue.. here is the data I use and the command line Any idea? |
this is also the case when using the data / command from the tuto here https://www.youtube.com/watch?v=VZFNDh3MliA |
Hi Joanes, Thank you for reporting this issue. I ran the data you provided, and here are the results and logs. It appears that BEN is working well with this dataset. However, based on your questions, I discovered a bug related to the "weight path" in the inference call to BEN. Please allow me some time to fix this issue and update the source code. Thank you for your patience. Best regards |
The link I provided above seems to be unavailable. Please refer to this temporary link: https://drive.google.com/file/d/1itIhlgW2dpUMwy_qmrymv2HsXwd1XUoE/view?usp=sharing |
thanks for the fast reponse. might be installation related? I run ben on linux within a singularity container (the only way I found to install tf 1.15.4.). Here is the definition file to build the container. Maybe you could consider making docker / singularity versions available in the future?? https://github.com/grandjeanlab/apptainer/tree/main/ubuntu_ben I got the python installed. |
is the weight path issue related to ben expecting the weights from unet_fp32_all_BN_NoCenterScale_polyic_epoch15_bottle256_04012051 if no weight are specified in the BEN_DA interface?? I put those in my path, but also didn't work. |
I suppose all you have to do in the stripts is maintain the proper weight path. This issue is not caused by the installation. In the previous code, ".hdf5" needed to be added in BEN_infer.py but not in BEN_DA.py, which could cause confusion. To address this issue, I added a line of code to unify the path calling methods. Now, both scripts (BEN_infer.py and BEN_DA.py) require only the folder path of the weight files. Line 75 in 9c325e5
|
cool. that seems like it is not it. I still have empty masks when using the weights generated from BEN_DA would you have some ideas what I could try. |
I haven't encountered this bug (loss being NaN) before. Initially, I thought it might be due to the model not correctly loading the pre-trained weights. However, it now seems more likely to be an environment-related issue. Here are my logs and the installed Python libraries. I am running this on Windows 10 with a Titan RTX GPU. This is just my speculation, but could it be a problem with the CUDA environment? I am using a conda-managed environment with the following setup (shown by the command ”conda list“):
I am not sure if using pip to manage the environment is directly calling the host machine's CUDA environment. Thus, you might need to maintain compatibility between the CUDA version on the host machine and the installed TensorFlow version. Another way is, you could try installing via a conda virtual environment. |
hi, before closing the issue, here is what worked,
or on google collab using a trick i found (but lost the link)
and every following chunks need to be run with the following. but only works to run python scripts!!!
|
I execute the following code,
python BEN_DA.py -t E:\ProgramResearch\BEN\data\train -l E:\ProgramResearch\BEN\data\label -r E:\ProgramResearch\BEN\data\raw-all -prefix sen2 -check RIA
I find during the train model, the loss is nan
The follow is my train data and my label data,
Can you give me some suggestions to solve this problem, thank you!
The text was updated successfully, but these errors were encountered: