MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / properties

Method properties

src/python/lfs/py_params.cpp:645–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643 }
644
645 nb::list PyOptimizationParams::properties() const {
646 auto* group = PropertyRegistry::instance().get_group("optimization");
647 if (!group) {
648 return nb::list();
649 }
650
651 nb::list result;
652 for (const auto& prop : group->properties) {
653 nb::dict item;
654 item["id"] = prop.id;
655 item["name"] = prop.name;
656 item["group"] = prop.group;
657 item["value"] = get(prop.id);
658 result.append(item);
659 }
660 return result;
661 }
662
663 nb::dict PyOptimizationParams::get_all_properties() const {
664 nb::dict result;

Callers 7

test_properties_listMethod · 0.80
property_statsMethod · 0.80
vprop_statsMethod · 0.80
hprop_statsMethod · 0.80
eprop_statsMethod · 0.80
fprop_statsMethod · 0.80
mprop_statsMethod · 0.80

Calls 4

instanceFunction · 0.85
get_groupMethod · 0.80
getFunction · 0.50
appendMethod · 0.45

Tested by 1

test_properties_listMethod · 0.64