nota-netspresso / pynetspresso Goto Github PK
View Code? Open in Web Editor NEWThe official NetsPresso Python package.
Home Page: https://nota-netspresso.github.io/PyNetsPresso/
License: Apache License 2.0
The official NetsPresso Python package.
Home Page: https://nota-netspresso.github.io/PyNetsPresso/
License: Apache License 2.0
develop
) branch.develop
) branch.develop
) branch.The recent libraries with FastAPI require an up-to-date typing_extensions (e.g. 4.8.0
)
The version requirements are too specific, so it is hard to install with other libraries...
Plus, both pydantic==1.10.4
and fastapi,
other dependencies on the library, are satisfied with typing-extensions==4.8.0
.
However, the current dependency typing_extensions==4.5.0
shows an error.
This would be solved if the requirements.txt
should be fixed to:
pydantic==1.10.8
typing-extensions>=4.8.0
Just
pip install netspresso
(Use with library)
throws an error.
No response
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
fastapi 0.104.1 requires typing-extensions>=4.8.0, but you have typing-extensions 4.5.0 which is incompatible.
pydantic-core 2.14.3 requires typing-extensions!=4.7.0,>=4.6.0, but you have typing-extensions 4.5.0 which is incompatible.
Python 3.8
General with all OS systems
Is there any feature that you would like to add? (์ถ๊ฐํ์ผ๋ฉด ํ๋ feature๊ฐ ์ด๋ค ๊ฒ์ผ๊น์?)
Community Standards์ ์ํ ํ์ผ ์ถ๊ฐ
Is there any suggestion (or solution) to solve this issue? (์ด๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํ ์์ด๋์ด๊ฐ ์์ผ์ ๊ฐ์?)
Please write a clear and concise description (๊ฐ๊ฒฐํ๊ณ ๋ช
ํํ๊ฒ ์์ฑํด์ฃผ์ธ์)
Additional context (์ ํ ๋งฅ๋ฝ์ ๋๊ธฐ ์ํ ๋ด์ฉ๋ค)
All other contexts or screenshots are welcome. (๋
ธํธ, ํ ์ ๋ด์ฉ, ์คํฌ๋ฆฐ์ท ๋ฑ ๋ชจ๋ ์ถ๊ฐ ์ ๋ณด๋ฅผ ๋ฃ์ด์ฃผ์ธ์)
ex)
# For Training
trainer = Trainer(task=Task.OBJECT_DETECTION)
# For Retraining
retrainer = Trainer(task=Task.OBJECT_DETECTION, from_config="config_path")
develop
) branch.As-is
compressed_model = compressor.automatic_compression(
...
output_path="./outputs/compressed/compressed_model.h5"
)
To-be
compressed_model = compressor.automatic_compression(
...
output_path="./outputs/compressed/automatic_05"
)
develop
) branch.develop
) branch.develop
) branch.other
.pytorch
.develop
) branch.develop
) branch.develop
) branch.img_size
from set_model_config
to set_model_config
parameter.develop
) branch.develop
) branch.number_of_layers
from 0 to None.develop
) branch.develop
) branch.develop
) branch.develop
) branch.develop
) branch.develop
) branch.develop
) branch.develop
) branch.develop
) branch.develop
) branch.develop
) branch.develop
) branch.develop
) branch.develop
) branch.Is there any feature that you would like to add?
PyNetspresso does not have a release note. It should add a release note containing a previous version.
Is there any suggestion (or solution) to solve this issue?
Please write a clear and concise description.
Additional context
All other contexts or screenshots are welcome.
From @illian01
Compressor
input_shape
float32
with the given sizehalf()
(i.e. fp16
), which cannot infer with float32
input tensor .
float16
)Slack: https://nota-workspace.slack.com/archives/C040F65LSAJ/p1693546735327899
develop
) branch.develop
) branch.develop
) branch.develop
) branch.As-is
OPTIONS = Options(
policy=Policy.AVERAGE, layer_norm=LayerNorm.TSS_NORM, group_policy=GroupPolicy.COUNT, reshape_channel_axis=-1
)
To-be
Options(
policy=Policy.AVERAGE, layer_norm=LayerNorm.STANDARD_SCORE, group_policy=GroupPolicy.AVERAGE, reshape_channel_axis=-1
)
develop
) branch.develop
) branch.model_trainer.py
to trainer.py
.develop
) branch.Compressor API requests the specific type of pytorch checkpoint, fx graphmodule, but there's no guide in README
According to docs, the model can be converted with the following commands:
import torch.fx
from torchvision.models import resnet18, ResNet18_Weights
model = resnet18(weights=ResNet18_Weights)
graph = torch.fx.Tracer().trace(model)
traced_model = torch.fx.GraphModule(model, graph)
torch.save(traced_model, "resnet18.pt")
from torchvision.models import resnet18
import torch
from torch.onnx import TrainingMode
input_tensor = torch.rand(torch.Size([1, 3, 224, 224]))
model = resnet18(pretrained=True)
dummy_output = model(input_tensor)
torch.onnx.export(model, input_tensor, "resnet18.onnx", verbose=True, training=TrainingMode.TRAINING)
I'll add some descriptions about torch checkpoint and checkpoint converting features if needed.
develop
) branch.Launcher
-> Converter
& Benchmarker
develop
) branch.develop
) branch.reissue_token
endpoint
token
-> auth/token
email
& password
)develop
) branch.develop
) branch.I'm trying to use the Netspresso Python client to log in to my account using the SessionClient
class, but I'm facing an SSL certificate verification error. Here are the details:
I'm using the latest version of the Netspresso Python client.
I'm using my Netspresso account email and password to log in.
I'm getting the following error message:
Login failed. Error: HTTPSConnectionPool(host='searcher.netspresso.ai', port=443): Max retries exceeded with url: /api/v1/auth/local/login (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))
I believe this error is related to SSL certificate verification, but I'm not sure how to fix it. Can someone from the Netspresso team help me troubleshoot this issue?
Thanks in advance for your help!
develop
) branch.develop
) branch.develop
) branch.ModelTrainer -> Trainer
develop
) branch.enum
value, it would be nice to make it look like a string
value.develop
) branch.develop
) branch.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.