Comments (2)
Hi,
You can simply change the model configs and dataset configs based on the differences described in the model_card.md
.
Here's an example.
from openlrm.
Hi, could you provide the configuration files that you used to train the models that are made available on huggingface? I noticed that the one available in the repo refers to the small model, but I would like to try finetuning the base and large.
Every published model contains aconfig.json
file with the info
See here for example: https://huggingface.co/zxhezexin/openlrm-obj-small-1.1/tree/main
You can also fetch this configuration with the following code:
import transformers
model_config = transformers.PretrainedConfig.from_pretrained("zxhezexin/openlrm-obj-base-1.1")
print(model_config)
PretrainedConfig {
"camera_embed_dim": 1024,
"encoder_feat_dim": 768,
"encoder_freeze": false,
"encoder_model_name": "dinov2_vitb14_reg",
"encoder_type": "dinov2",
"rendering_samples_per_ray": 96,
"transformer_dim": 768,
"transformer_heads": 12,
"transformer_layers": 12,
"transformers_version": "4.28.1",
"triplane_dim": 48,
"triplane_high_res": 64,
"triplane_low_res": 32
}
Personaly for pretraining I've changed the code to load the pretrained model directly
from openlrm.utils.hf_hub import wrap_model_hub
class LRMTrainer(Trainer):
...
def _build_model(self, cfg):
assert (
cfg.experiment.type == "lrm"
), f"Config type {cfg.experiment.type} does not match with runner {self.__class__.__name__}"
from openlrm.models import ModelLRM
model_class = wrap_model_hub(ModelLRM)
model = model_class.from_pretrained(cfg.experiment.pretrained)
return model
you can replace cfg.experiment.pretrained
with "zxhezexin/openlrm-obj-base-1.1"
or add a pretrained key to your config
from openlrm.
Related Issues (20)
- How can I solve this issue on the colab implementation? HOT 5
- Issue serving a model trained with the provided training code HOT 14
- How to inference custom-trained model HOT 5
- Why encoder is not freeze in training config? HOT 1
- Can you share large training config?
- MVImgNet code HOT 1
- Not able to run blender_script.py and also how do I train on objaverse? HOT 24
- How to fix "Cannot find valid data directory for uid" error? HOT 3
- Inference Issue HOT 2
- 训练需要什么样的显卡配置 HOT 4
- Training with .obj files HOT 2
- How to evaluate metrics HOT 1
- Matrix multiplication: not supported between 'Matrix' and 'Vector' types HOT 2
- ValueError: math domain error HOT 5
- Inference result quality on trained model is not good HOT 10
- CUDA out of memory for inferring HOT 1
- What resources to train from scratch HOT 1
- Matrix multiplication: not supported between 'Matrix' and 'Vector' types HOT 1
- Whether the camera system is OpenGL?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openlrm.