Coder Social home page Coder Social logo

mberkay0 / clothing-segmentation Goto Github PK

View Code? Open in Web Editor NEW
52.0 1.0 11.0 2.79 MB

Clothing segmentation with DeepLabV3+

License: MIT License

Jupyter Notebook 100.00%
cloth-segmentation clothes-detection colab-notebook deeplabv3 deeplabv3plus jupyter-notebook python clothing-parsing fashion-segmentation

clothing-segmentation's Introduction

Hi there, I'm Berkay ๐Ÿ‘‹

About me ๐Ÿ”ญ

  • ๐Ÿ–ฅ I'm a full-stack ML & DL developer
  • ๐ŸŽ“ I'm an Electrical and Electronics Engineer
  • ๐Ÿ’ป I love data science and deep learning
  • ๐ŸŒฑ Iโ€™m currently learning everything about AI ๐Ÿค”
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate with other content creators
  • โšก Fun fact: I love to programming
  • ๐ŸŒ You can access all my open-source projects in this profile

Connect with me:

clothessegmentation

Languages and Tools:

c cplusplus java python django javascript html5 css3 sass git


๐Ÿ”” My Recent GitHub Activity


โšก Github Stats

ย mberkay0 mberkay0

๐Ÿ’ช Maybe you want to star my projects

mberkay0

mberkay0

clothing-segmentation's People

Contributors

mberkay0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

clothing-segmentation's Issues

Getting this issue while trying to load the weights. Please help

FileNotFoundError Traceback (most recent call last)
in <cell line: 3>()
weight_name = os.path.basename(w.name).replace(':0', '')
weight_file = layer.name + '_' + weight_name + '.npy'
---> weight_arr = np.load(os.path.join(WEIGHTS_DIR, weight_file))
weights.append(weight_arr)
layer.set_weights(weights)

/usr/local/lib/python3.10/dist-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding, max_header_size)
own_fid = False
else:
--> fid = stack.enter_context(open(os_fspath(file), "rb"))
own_fid = True

FileNotFoundError: [Errno 2] No such file or directory: 'weights/mobilenetv2/Conv_kernel.npy'

InvalidArumentError error at startup of train

history = model.fit(train_gen,
                    validation_data=val_gen,
                    steps_per_epoch=len(train_gen),
                    validation_steps=len(val_gen),
                    epochs=num_epoch,
                    callbacks=callbacks,
                    verbose = 1)

2023-07-13 08:40:44.781595: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_0' with dtype int32
[[{{node Placeholder/_0}}]]
Epoch 1/35
2023-07-13 08:40:45.341263: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at spacetobatch_op.cc:230 : INVALID_ARGUMENT: padded_shape[0]=32 is not divisible by block_shape[0]=6
2023-07-13 08:40:45.341315: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at spacetobatch_op.cc:230 : INVALID_ARGUMENT: padded_shape[0]=56 is not divisible by block_shape[0]=18
2023-07-13 08:40:45.341339: I tensorflow/core/common_runtime/executor.cc:1197] [/job:localhost/replica:0/task:0/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: padded_shape[0]=32 is not divisible by block_shape[0]=6
[[{{node deeplabv3plus/aspp1_depthwise/depthwise/SpaceToBatchND}}]]
2023-07-13 08:40:45.341346: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at spacetobatch_op.cc:230 : INVALID_ARGUMENT: padded_shape[0]=44 is not divisible by block_shape[0]=12

File "/root/anaconda3/envs/deeplabv3/lib/python3.11/site-packages/tensorflow/python/keras/backend.py", line 5574, in depthwise_conv2d
x = nn.depthwise_conv2d(
Node: 'deeplabv3plus/aspp1_depthwise/depthwise/SpaceToBatchND'
padded_shape[0]=32 is not divisible by block_shape[0]=6
[[{{node deeplabv3plus/aspp1_depthwise/depthwise/SpaceToBatchND}}]] [Op:__inference_train_function_64467]

Hi. Thanks for the great dataset.
I am getting the following error during the train.
How can I solve it??

NameError: name 'callbacks' is not defined

Pretty noob to ML, trying to get this project to run and getting this error. Can you help me out?


NameError Traceback (most recent call last)
in <cell line: 1>()
4 validation_steps=len(val_gen),
5 epochs=num_epoch,
----> 6 callbacks=callbacks,
7 verbose = 1)

NameError: name 'callbacks' is not defined

Pre-trained weights availability

Good afternoon and thank you very much for your work @mberkay0 ๐Ÿ˜„

I am working in a personal project where your work would help me a lot, so are the pre-trained weights of the model available? If so, could you please share them with me? This would be very helpful, as I wouldn't need to train the model, given that you already did.

Best regards,
Dani

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.