-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues & feedback #32
Comments
Does the model get trained based on pretrained GoogleNet ? I know this is old project, but it pottentially has amazing potential. |
@ad48hp The base models were trained with millions of images, so I'm not sure how well training from scratch would work. All you would have to do is set the layers to all be trainable and zero all the model values (or use some other number combo) Also, some neurons/channels are going to stay the while finetuning as I discovered when I made this project, whereas others will change to match the new content |
Can you upload a script in torch, which would set all the layers to be trainable, and zero all the model values ? |
@ad48hp Apologies for the late reply, but zeroing models is actually a bit of a bad idea. You general want a range of numbers to initialize a brand new model for training. There are multiple options for initialization, and I am unsure of which ones are best for training Inception v1 models: https://pytorch.org/docs/stable/nn.init.html Here's a quick function that ChatGPT assisted me with, that should initialize the model so that you can train from scratch. Model weights generals have the
This code should remove all learned knowledge from the model |
Also, if you aren't using a GPU then its going to be painfully slow. |
Can you write complete code for the init ? |
I tried to add the code, like following: ` from utils.training_utils import save_model, load_dataset, reset_weights, set_seed, load_checkpoint, setup_model import torch.nn as nn def initialize_model_weights(model): def main():
def main_func(params):
if name == "main": But the images look noisy. Any clue why ? |
@ad48hp Not sure if there's an issue, but that's often what it looks like at first when training from scratch. How many images are you using and how many steps have you trained it for? The model architecture itself is also over 10 years old at this point as well: https://arxiv.org/abs/1409.4842, so there could be unforeseen problems. |
Hello,
i've used pip install torch===1.6.0 torchvision===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
and it deviated from using
pip install torch===1.6.0+cpu torchvision===0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
I've read that the program can be installed without CUDA, so i guess both options are right ?
I've read there that GPU is needed.
#21
But the installation guide shows that the CUDA is optional.
https://github.com/ProGamerGov/dream-creator/blob/master/INSTALL.md
The text was updated successfully, but these errors were encountered: