You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if we could explore dynamically setting the out_dim parameter in the setup method of the LightningModule , leveraging the fact that it inherits DataHooks. This way, the model could fetch the number of labels (num_of_labels) directly from the data module after it's loaded.
By doing this, we could avoid requiring the out_dim parameter to be explicitly passed in the command line every time. Instead, the model could dynamically adapt based on the dataset being used. This would simplify the workflow and reduce potential user errors.
I think this is something worth investigating. It might that there are some constraints in the architecture that don't allow a dynamic calculation of out_dim, but I am not sure about that. @aditya0by0 If you have some time on your hands, please have a look and maybe try to implement a solution.
I was wondering if we could explore dynamically setting the
out_dim
parameter in the setup method of theLightningModule
, leveraging the fact that it inheritsDataHooks
. This way, the model could fetch the number of labels (num_of_labels) directly from the data module after it's loaded.By doing this, we could avoid requiring the
out_dim
parameter to be explicitly passed in the command line every time. Instead, the model could dynamically adapt based on the dataset being used. This would simplify the workflow and reduce potential user errors.Originally posted by @aditya0by0 in #64 (comment)
The text was updated successfully, but these errors were encountered: