Open madhavkrishnan94 opened 3 months ago
The problem is likely because of the orientation of the data you use. The data should be in the same orientation as mentioned in the readme file (from my experience).
I just checked the obj file of the 3D Teeth challenge data and it doesn't follow the same orientation as seen in the readme file.
In any case, I see that my new obj file follows a different orientation. Now, when I run the inference_mid.py file, I don't get an error but I get the following:
/scratch/madhavkris/ToothGroupNetwork-challenge_branch/inference_pipeline_mid.py:25: FutureWarning: You are using
torch.load
withweights_only=False
(the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value forweights_only
will be flipped toTrue
. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user viatorch.serialization.add_safe_globals
. We recommend you start settingweights_only=True
for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. self.first_module.load_state_dict(torch.load(self.config["fps_model_info"]["load_ckpt_path"]+".h5")) /scratch/madhavkris/ToothGroupNetwork-challenge_branch/inference_pipeline_mid.py:29: FutureWarning: You are usingtorch.load
withweights_only=False
(the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value forweights_only
will be flipped toTrue
. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user viatorch.serialization.add_safe_globals
. We recommend you start settingweights_only=True
for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. self.bdl_module.load_state_dict(torch.load(self.config["boundary_model_info"]["load_ckpt_path"]+".h5"))
But I don't see any results saved in the folder supposed to contain the segmented output. Any idea why this is the case? @limhoyeon
I think that these logs are just warnings, so maybe it isnt related to the your problem.
Have you check that the output directory exists or input directory is properly set?
I'm running inference_mid.py from the challenge branch on an obj file without a ground truth json file. Here's the error I get while running it. Any advice on how to resolve this would be greatly appreciated!