ArkanDash / Multi-Model-RVC-Inference

RVC Inference with multiple model and huggingface support
MIT License
100 stars 30 forks source link

UnboundLocalError: local variable 'category_count' referenced before assignment #4

Closed vivalafreak1 closed 7 months ago

vivalafreak1 commented 10 months ago

Full log

2023-11-26 21:07:04 | INFO | faiss.loader | Loading faiss with AVX2 support. 2023-11-26 21:07:04 | INFO | faiss.loader | Could not load library with AVX2 support due to:
ModuleNotFoundError("No module named 'faiss.swigfaiss_avx2'") 2023-11-26 21:07:04 | INFO | faiss.loader | Loading faiss. 2023-11-26 21:07:05 | INFO | faiss.loader | Successfully loaded faiss. INFO: No supported Nvidia GPU found, use CPU instead 2023-11-26 21:07:05 | INFO | fairseq.tasks.hubert_pretraining | current directory is I:\AI\voice\test-model\Multi-Model-RVC-Inference 2023-11-26 21:07:05 | INFO | fairseq.tasks.hubert_pretraining | HubertPretrainingTask Config {'_name': 'hubert_pretraining', 'data'ype': transformer, 'dropout': 0.1, 'attention_dropout': 0.1, 'activation_dropout': 0.0, 'encoder_layerdrop': 0.05, 'dropout_input': 0.1, 'dropout_features': 0.1, 'final_dim': 256, 'untie_final_proj': True, 'layer_norm_first': False, 'conv_feature_layers': '[(512,10,5)] + [(512,3,2)] 4 + [(512,2,2)] 2', 'conv_bias': False, 'logit_temp': 0.1, 'target_glu': False, 'feature_grad_mult': 0.1, 'mask_lengype': transformer, 'dropout': 0.1, 'attention_dropout': 0.1, 'activation_dropout': 0.0, 'encoder_layerdrop': 0.05, 'dropout_input': 0.1, 'dropout_features': 0.1, 'final_dim': 256, 'untie_final_proj': True, 'layer_norm_first': False, 'conv_feature_layers': '[(512,10,5)] + [(512,3,2)] 4 + [(512,2,2)] 2', 'conv_bias': False, 'logit_temp': 0.1, 'target_glu': False, 'feature_grad_mult': 0.1, 'mask_length': 10, 'mask_prob': 0.8, 'mask_selection': static, 'mask_other': 0.0, 'no_mask_overlap': False, 'mask_min_space': 1, 'mask_channel_length': 10, 'mask_channel_prob': 0.0, 'mask_channel_selection': static, 'mask_channel_other': 0.0, 'no_mask_channel_overlap': False, 'mask_channel_min_space': 1, 'conv_pos': 128, 'conv_pos_groups': 16, 'latent_temp': [2.0, 0.5, 0.999995], 'skip_masked': False, 'skip_nomask': False, 'checkpoint_activations': False, 'required_seq_len_multiple': 2, 'depthwise_conv_kernel_size': 31, 'attn_type': '', 'pos_enc_type': 'abs', 'fp16': False} C:\Users: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm. warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.") gin_channels: 256 self.spk_embed_dim: 109 All keys matched successfully Model loaded: lisa-jp / model.index | (V2) Traceback (most recent call last): File "app.py", line 419, in categories = load_model() File "app.py", line 182, in load_model category_count += 1 UnboundLocalError: local variable 'category_count' referenced before assignment

model_info.json

{
    "lisa-jp": {
        "enable": true,
        "model_path": "model.pth",
        "title": "lisa-jp",
        "cover": "CHARACTER_IMAGE",
        "feature_retrieval_library": "model.index",
        "author": "iroaK"
    }
}

folder_info.json

{
    "Mondstadt":{
        "enable": true,
        "title": "mondstadt",
        "folder_path": "mondstadt",
        "description": "RVC genshin impact"
    },
    "Liyue":{
        "enable": true,
        "title": "liyue",
        "folder_path": "liyue",
        "description": "RVC genshin impact"
    }
}

Folder Structure

weights/
├── liyue
├── mondstadt/
│   ├── lisa-jp
│   └── model_info.json
└── folder_info.json

Ada saran gan?

ArkanDash commented 10 months ago

hmmm kurang tau banget, pengen ku perbaiki itu tapi gua lagi ngurus yang lain

On Sun, Nov 26, 2023 at 10:21 PM Eddiesti @.***> wrote:

Full log

2023-11-26 21:07:04 | INFO | faiss.loader | Loading faiss with AVX2 support. 2023-11-26 21:07:04 | INFO | faiss.loader | Could not load library with AVX2 support due to: ModuleNotFoundError("No module named 'faiss.swigfaiss_avx2'") 2023-11-26 21:07:04 | INFO | faiss.loader | Loading faiss. 2023-11-26 21:07:05 | INFO | faiss.loader | Successfully loaded faiss. INFO: No supported Nvidia GPU found, use CPU instead 2023-11-26 21:07:05 | INFO | fairseq.tasks.hubert_pretraining | current directory is I:\AI\voice\test-model\Multi-Model-RVC-Inference 2023-11-26 21:07:05 | INFO | fairseq.tasks.hubert_pretraining | HubertPretrainingTask Config {'_name': 'hubert_pretraining', 'data'ype': transformer, 'dropout': 0.1, 'attention_dropout': 0.1, 'activation_dropout': 0.0, 'encoder_layerdrop': 0.05, 'dropout_input': 0.1, 'dropout_features': 0.1, 'final_dim': 256, 'untie_final_proj': True, 'layer_norm_first': False, 'conv_feature_layers': '[(512,10,5)] + [(512,3,2)] 4 + [(512,2,2)] 2', 'conv_bias': False, 'logit_temp': 0.1, 'target_glu': False, 'feature_grad_mult': 0.1, 'mask_lengype': transformer, 'dropout': 0.1, 'attention_dropout': 0.1, 'activation_dropout': 0.0, 'encoder_layerdrop': 0.05, 'dropout_input': 0.1, 'dropout_features': 0.1, 'final_dim': 256, 'untie_final_proj': True, 'layer_norm_first': False, 'conv_feature_layers': '[(512,10,5)] + [(512,3,2)] 4 + [(512,2,2)] 2', 'conv_bias': False, 'logit_temp': 0.1, 'target_glu': False, 'feature_grad_mult': 0.1, 'mask_length': 10, 'mask_prob': 0.8, 'mask_selection': static, 'mask_other': 0.0, 'no_mask_overlap': False, 'mask_min_space': 1, 'mask_channel_length': 10, 'mask_channel_prob': 0.0, 'mask_channel_selection': static, 'mask_channel_other': 0.0, 'no_mask_channel_overlap': False, 'mask_channel_min_space': 1, 'conv_pos': 128, 'conv_pos_groups': 16, 'latent_temp': [2.0, 0.5, 0.999995], 'skip_masked': False, 'skip_nomask': False, 'checkpoint_activations': False, 'required_seq_len_multiple': 2, 'depthwise_conv_kernel_size': 31, 'attn_type': '', 'pos_enc_type': 'abs', 'fp16': False} C:\Users: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm. warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.") gin_channels: 256 self.spk_embed_dim: 109 All keys matched successfully Model loaded: lisa-jp / model.index | (V2) Traceback (most recent call last): File "app.py", line 419, in categories = load_model() File "app.py", line 182, in load_model category_count += 1 UnboundLocalError: local variable 'category_count' referenced before assignment

model_info.json

{ "lisa-jp": { "enable": true, "model_path": "model.pth", "title": "lisa-jp", "cover": "CHARACTER_IMAGE", "feature_retrieval_library": "model.index", "author": "iroaK" } }

folder_info.json

{ "Mondstadt":{ "enable": true, "title": "mondstadt", "folder_path": "mondstadt", "description": "RVC genshin impact" }, "Liyue":{ "enable": true, "title": "liyue", "folder_path": "liyue", "description": "RVC genshin impact" } }

Folder Structure

weights/ ├── liyue ├── mondstadt/ │ ├── lisa-jp │ └── model_info.json └── folder_info.json

Ada saran gan?

— Reply to this email directly, view it on GitHub https://github.com/ArkanDash/Multi-Model-RVC-Inference/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATKOQ4DY2OJ7QX5DLHE5SZTYGNM75AVCNFSM6AAAAAA725T43CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTCMBYGIZDINQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

vivalafreak1 commented 10 months ago

hmmm kurang tau banget, pengen ku perbaiki itu tapi gua lagi ngurus yang lain On Sun, Nov 26, 2023 at 10:21 PM Eddiesti @.> wrote: Full log 2023-11-26 21:07:04 | INFO | faiss.loader | Loading faiss with AVX2 support. 2023-11-26 21:07:04 | INFO | faiss.loader | Could not load library with AVX2 support due to: ModuleNotFoundError("No module named 'faiss.swigfaiss_avx2'") 2023-11-26 21:07:04 | INFO | faiss.loader | Loading faiss. 2023-11-26 21:07:05 | INFO | faiss.loader | Successfully loaded faiss. INFO: No supported Nvidia GPU found, use CPU instead 2023-11-26 21:07:05 | INFO | fairseq.tasks.hubert_pretraining | current directory is I:\AI\voice\test-model\Multi-Model-RVC-Inference 2023-11-26 21:07:05 | INFO | fairseq.tasks.hubert_pretraining | HubertPretrainingTask Config {'_name': 'hubert_pretraining', 'data'ype': transformer, 'dropout': 0.1, 'attention_dropout': 0.1, 'activation_dropout': 0.0, 'encoder_layerdrop': 0.05, 'dropout_input': 0.1, 'dropout_features': 0.1, 'final_dim': 256, 'untie_final_proj': True, 'layer_norm_first': False, 'conv_feature_layers': '[(512,10,5)] + [(512,3,2)] 4 + [(512,2,2)] 2', 'conv_bias': False, 'logit_temp': 0.1, 'target_glu': False, 'feature_grad_mult': 0.1, 'mask_lengype': transformer, 'dropout': 0.1, 'attention_dropout': 0.1, 'activation_dropout': 0.0, 'encoder_layerdrop': 0.05, 'dropout_input': 0.1, 'dropout_features': 0.1, 'final_dim': 256, 'untie_final_proj': True, 'layer_norm_first': False, 'conv_feature_layers': '[(512,10,5)] + [(512,3,2)] 4 + [(512,2,2)] 2', 'conv_bias': False, 'logit_temp': 0.1, 'target_glu': False, 'feature_grad_mult': 0.1, 'mask_length': 10, 'mask_prob': 0.8, 'mask_selection': static, 'mask_other': 0.0, 'no_mask_overlap': False, 'mask_min_space': 1, 'mask_channel_length': 10, 'mask_channel_prob': 0.0, 'mask_channel_selection': static, 'mask_channel_other': 0.0, 'no_mask_channel_overlap': False, 'mask_channel_min_space': 1, 'conv_pos': 128, 'conv_pos_groups': 16, 'latent_temp': [2.0, 0.5, 0.999995], 'skip_masked': False, 'skip_nomask': False, 'checkpoint_activations': False, 'required_seq_len_multiple': 2, 'depthwise_conv_kernel_size': 31, 'attn_type': '', 'pos_enc_type': 'abs', 'fp16': False} C:\Users: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm. warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.") gin_channels: 256 self.spk_embed_dim: 109 All keys matched successfully Model loaded: lisa-jp / model.index | (V2) Traceback (most recent call last): File "app.py", line 419, in categories = load_model() File "app.py", line 182, in load_model category_count += 1 UnboundLocalError: local variable 'category_count' referenced before assignment model_info.json { "lisa-jp": { "enable": true, "model_path": "model.pth", "title": "lisa-jp", "cover": "CHARACTER_IMAGE", "feature_retrieval_library": "model.index", "author": "iroaK" } } folder_info.json { "Mondstadt":{ "enable": true, "title": "mondstadt", "folder_path": "mondstadt", "description": "RVC genshin impact" }, "Liyue":{ "enable": true, "title": "liyue", "folder_path": "liyue", "description": "RVC genshin impact" } } Folder Structure weights/ ├── liyue ├── mondstadt/ │ ├── lisa-jp │ └── model_info.json └── folder_info.json Ada saran gan? — Reply to this email directly, view it on GitHub <#4>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATKOQ4DY2OJ7QX5DLHE5SZTYGNM75AVCNFSM6AAAAAA725T43CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTCMBYGIZDINQ . You are receiving this because you are subscribed to this thread.Message ID: @.>

siapp bang makasih udah respon