Closed turtoes closed 3 months ago
This would require some code change here:
This would require some code change here:
I fould that would be the only way to change the logic here. I just pull the entire code to the project to import and change the type filtering for this line. Thanks for the reply
I wonder if there is a way to prevent OrderedDict being converted to Easydict object when I assign the OrderedDict into an EasyDict.
For example:
my_easy_dict = EasyDict()
mdl = torch.load("abc.pth",map_location = "cuda:0") # mdl is an OrderedDict
my_easy_dict.mdl = mdl # this case, my_easy_dict["mdl"] is an easydict not OrderedDict.
I wonder if this assignment can stay OrderedDict instead of being converted into EasyDict/
Many Thanks!